all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Incorrect value for auto-save-file-name-transforms
@ 2003-09-20  4:00 Joel Ray Holveck
  2003-09-20 12:19 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Ray Holveck @ 2003-09-20  4:00 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.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,
/usr/local/src/freebsd/ports/editors/emacs21/work/emacs-21.3/src/#elf-char#")

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
loads.

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>
Auto-saving...done
Auto-saving...done
Loading cl-indent...done
Loading emacsbug...done
byte-code: Quit

-- 
Joel Ray Holveck - joelh@piquan.org
   Fourth law of programming:
   Anything that can go wrong wi
sendmail: segmentation violation - core dumped

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Incorrect value for auto-save-file-name-transforms
  2003-09-20  4:00 Incorrect value for auto-save-file-name-transforms Joel Ray Holveck
@ 2003-09-20 12:19 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2003-09-20 12:19 UTC (permalink / raw)
  Cc: bug-gnu-emacs

Joel Ray Holveck wrote:

> In GNU Emacs 21.3.6 (i386-unknown-freebsd5.0, X toolkit)
[...]
> 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".

Thanks, this is already fixed in the CVS.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-20 12:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-20  4:00 Incorrect value for auto-save-file-name-transforms Joel Ray Holveck
2003-09-20 12:19 ` Glenn Morris

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.