🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98787

rmailout.el fix

#98787
From: Jonathan Freidin
Date: Wed, 27 Feb 1991 23:27
51 lines
2459 bytes
rmailout.el has always (18.53-18.57) had this problem that it
completes using the directory of the last-rmail-file, but then expands
using the current buffer's directory.

Here's a fix that we have used at KSR:

===================================================================
RCS file: RCS/rmailout.el,v
retrieving revision 1.1
diff -c -r1.1 rmailout.el
*** 1.1	1991/02/27 19:30:11
--- rmailout.el	1991/02/27 19:46:14
***************
*** 33,39 ****
  			      ") ")
  		      (file-name-directory rmail-last-rmail-file)
  		      rmail-last-rmail-file)))
!   (setq file-name (expand-file-name file-name))
    (setq rmail-last-rmail-file file-name)
    (rmail-maybe-set-message-counters)
    (or (get-file-buffer file-name)
--- 33,41 ----
  			      ") ")
  		      (file-name-directory rmail-last-rmail-file)
  		      rmail-last-rmail-file)))
!   (setq file-name
!     (expand-file-name file-name
! 		      (file-name-directory rmail-last-rmail-file)))
    (setq rmail-last-rmail-file file-name)
    (rmail-maybe-set-message-counters)
    (or (get-file-buffer file-name)
***************
*** 96,102 ****
  	       ": "))			
       (and rmail-last-file (file-name-directory rmail-last-file))
       rmail-last-file)))
!   (setq file-name (expand-file-name file-name))
    (setq rmail-last-file file-name)
    (let ((rmailbuf (current-buffer))
  	(tembuf (get-buffer-create " rmail-output"))
--- 98,107 ----
  	       ": "))			
       (and rmail-last-file (file-name-directory rmail-last-file))
       rmail-last-file)))
!   (setq file-name
!     (expand-file-name file-name
! 		      (and rmail-last-file
! 			   (file-name-directory rmail-last-file))))
    (setq rmail-last-file file-name)
    (let ((rmailbuf (current-buffer))
  	(tembuf (get-buffer-create " rmail-output"))
Technical Details
Message-ID: <9102272327.AA20136@kaos.ksr.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!sun-barr!apple!agate!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,694d257cf5a57335,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-02-27 15:27:20 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!sun-barr!apple!agate!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage
From: jonathan@ksr.com (Jonathan Freidin)
Newsgroups: gnu.emacs.bug
Subject: rmailout.el fix
Message-ID: <9102272327.AA20136@kaos.ksr.com>
Date: 27 Feb 91 23:27:20 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 51
Approved: bug-gnu-emacs@prep.ai.mit.edu