all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* auto-save-file-name-transforms
@ 2003-09-04 15:41 François Manchon
  0 siblings, 0 replies; only message in thread
From: François Manchon @ 2003-09-04 15:41 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing
list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.1 (i386-msvc-nt5.1.2600)
 of 2003-03-28 on buffy
configured using `configure --with-msvc (12.00)'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: FRA
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Symptoms: auto-save file name is consistently "c:\\#2#" for remote
files.

How to reproduce: 

Visit a file via ange-ftp, and check auto-save file name:

C-x C-f /anonymous@ftp.gnu.org:README RET
ESC : (make-auto-save-file-name) RET

=> Emacs displays "c:\\#2", instead of the expected
`temporary-file-directory'/#README# 

Proposed solution (sorry, I don't have diff on this PC):

1) Change the default value of auto-save-file-name-transforms (line
305 in files.el)

from
  `(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)"
     ,(expand-file-name "\\2" temporary-file-directory)))

to
  '(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)" 
     (expand-file-name 
       (file-name-nondirectory buffer-file-name)
temporary-file-directory)))

2) Change one line in the definition of make-auto-save-file-name (line
3315 in files.el)

from 
	(setq result (replace-match (cadr (car list)) t nil

to
	(setq result (replace-match (eval (cadr (car list))) t nil

Recent input:
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
(C:\emacs-21.3\bin\emacs.exe)
Loading regexp-opt...done
For information about the GNU Project and its goals, type C-h C-p.
Loading image...done
Loading emacsbug...done

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-04 15:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-04 15:41 auto-save-file-name-transforms François Manchon

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.