From: Karl Chen <quarl@hkn.eecs.berkeley.edu>
Subject: bug fix for files.el change 1.633 (dired-directory not defined)
Date: Tue, 11 Feb 2003 23:53:11 -0800 [thread overview]
Message-ID: <15945.64871.469361.375781@hkn.eecs.berkeley.edu> (raw)
The recent change to files.el breaks `find-alternate-file' until dired.el is
loaded. It uses the variable `dired-directory' which is defined only in
dired.el. This patch below fixes it.
--- files.el.~1.633.~ 2003-02-06 00:58:29.000000000 -0800
+++ files.el 2003-02-11 23:19:13.000000000 -0800
@@ -940,7 +940,7 @@
(let ((obuf (current-buffer))
(ofile buffer-file-name)
(onum buffer-file-number)
- (odir dired-directory)
+ (odir (and (boundp 'dired-directory) dired-directory))
(otrue buffer-file-truename)
(oname (buffer-name)))
(if (get-buffer " **lose**")
--
Karl Chen / quarl@quarl.org
next reply other threads:[~2003-02-12 7:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-12 7:53 Karl Chen [this message]
2003-02-12 9:26 ` bug fix for files.el change 1.633 (dired-directory not defined) Juanma Barranquero
2003-02-13 10:09 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15945.64871.469361.375781@hkn.eecs.berkeley.edu \
--to=quarl@hkn.eecs.berkeley.edu \
--cc=quarl@quarl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.