+2007-12-29 Thien-Thi Nguyen <ttn@gnuvola.org>
+
+ * files.el (cd-absolute): Fix omission bug:
+ Make `list-buffers-directory' buffer-local.
+
2007-12-29 Dan Nicolaescu <dann@ics.uci.edu>
* vc-hg.el (vc-hg-dir-state): Deal with the up-to-date state.
(if (file-exists-p dir)
(error "%s is not a directory" dir)
(error "%s: no such directory" dir))
- (if (file-executable-p dir)
- (setq default-directory dir
- list-buffers-directory dir)
- (error "Cannot cd to %s: Permission denied" dir))))
+ (unless (file-executable-p dir)
+ (error "Cannot cd to %s: Permission denied" dir))
+ (setq default-directory dir)
+ (set (make-local-variable 'list-buffers-directory) dir)))
(defun cd (dir)
"Make DIR become the current buffer's default directory.