Commits

stephent  committed 1f3a7d4

Sync auctex trunk back to release 1.48.

  • Participants
  • Parent commits 470b7aa

Comments (0)

Files changed (3)

+2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
+
+	* erc-dcc.el (erc-dcc-find-file,erc-log-setup-logging):
+	Maintain buffer-file-name invariant.
+
 2006-05-02  Norbert Koch  <viteno@xemacs.org>
 
 	* Makefile (VERSION): XEmacs package 0.21 released.
 (defun erc-dcc-find-file (file)
   (with-current-buffer (generate-new-buffer (file-name-nondirectory file))
     (insert-file-contents-literally file)
-    (setq buffer-file-name file)
+    ;; XEmacs change: maintain invariant for truename vs. name.
+    (setq buffer-file-name file
+          buffer-file-truename (file-truename buffer-file-name))
     (current-buffer)))
 
 (defun erc-dcc-file-to-name (file)
   (when (erc-logging-enabled)
     (auto-save-mode -1)
     (setq buffer-offer-save t
-	  buffer-file-name "")
+	  buffer-file-name nil
+	  buffer-file-truename nil)
     (cond ((boundp 'write-file-functions)
 	   (set (make-local-variable 'write-file-functions)
 		'(erc-save-buffer-in-logs)))