[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Incorrect value for auto-save-file-name-transforms

From: Joel Ray Holveck
Subject: Incorrect value for auto-save-file-name-transforms
Date: Fri, 19 Sep 2003 21:00:38 -0700 (PDT)

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 address@hidden mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.6 (i386-unknown-freebsd5.0, X toolkit)
 of 2003-05-08 on thor.piqnet.org
configured using `configure  --with-iouid --with-x-toolkit=athena --with-xpm 
--with-jpeg --with-tiff --with-gif --with-png --without-toolkit-scroll-bars'
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: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

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

The value of auto-save-file-name-transforms is incorrect.  In my
version of Emacs, it is
  (("\\`/[^/]*:\\(.+/\\)*\\(.*\\)" "/usr/local/src/emacs-21.3/src/\\2"))

The latter string should be "/tmp/\\2".  The value shown is actually a
directory that no longer exists.  This prevents auto-saves from
succeeding when accessing files remotely using the third-party library
tramp, and possibly ange-ftp.  (Sample message, from a different box:
"Auto-saving elf-char: Opening output file: permission denied,

The variable is initialized in files.el, using expand-file-name and
temporary-file-directory.  However, when files.el is loaded (by
temacs), temporary-file-directory remains nil throughout.  This is
because it's set in filelock.c, in syms_of_filelock, so the defvar has
no effect.  In normal Emacs sessions, temporary-file-directory is set
unconditionally in startup.el, but that doesn't apply when temacs

My proposed fix is to set auto-save-file-name-transforms in
startup.el.  This seems like the best way to handle the problem.

An alternative fix would be to makunbound temporary-file-directory
just before the defvar in files.el, if it is bound but nil.  However,
this means that this variable would depend on the value of $TEMP when
Emacs was compiled, rather than when it was executed.  This does not
seem as useful.

Let me know if you want a patch.

Recent input:
b o u n d SPC ' t e m p o r a r y - f i l e - d i r 
e c t o r y ) ) RET C-p TAB C-p TAB C-p C-n C-b C-a 
C-f C-a C-p C-p C-k C-k ESC x r e p o r t - e m a c 
- DEL s - b i DEL u g RET C-g C-k C-x 2 C-x o C-x o 
C-x 1 ESC x r e p o r t - e m a c s - b u g RET

Recent messages:
Scanning buffer for index ( 96%)
Scanning buffer for index (100%)
Mark saved where search started
Note: file is write protected
Mark saved where search started
call-interactively: Buffer is read-only: #<buffer files.el,v>
Loading cl-indent...done
Loading emacsbug...done
byte-code: Quit

Joel Ray Holveck - address@hidden
   Fourth law of programming:
   Anything that can go wrong wi
sendmail: segmentation violation - core dumped

reply via email to

[Prev in Thread] Current Thread [Next in Thread]