# HG changeset patch # User Jan D. # Date 1265794458 -3600 # Node ID cb0891567332e907555841b0a808fb5d33dcb81d # Parent c7c70f9fa3d7fcbc9461e887bde2bde66aa3254e# Parent 12a12a93b1a318a578f3cb0f8c7446d66d56299e Merge from trunk diff -r c7c70f9fa3d7 -r cb0891567332 lisp/ChangeLog --- a/lisp/ChangeLog Wed Feb 10 10:29:28 2010 +0100 +++ b/lisp/ChangeLog Wed Feb 10 10:34:18 2010 +0100 @@ -1,3 +1,13 @@ +2010-02-10 Chong Yidong + + * iswitchb.el (iswitchb-completions): Revert last change. + +2010-02-10 Michael Albinus + + * ls-lisp.el (ls-lisp-insert-directory): Wen WILDCARD-REGEXP and + FULL-DIRECTORY-P are nil, and FILE is absolute, expand it. This + prevents file names like "~/" been listed literally. + 2010-02-10 Dan Nicolaescu * term/xterm.el (xterm-maybe-set-dark-background-mode): Remove diff -r c7c70f9fa3d7 -r cb0891567332 lisp/iswitchb.el --- a/lisp/iswitchb.el Wed Feb 10 10:29:28 2010 +0100 +++ b/lisp/iswitchb.el Wed Feb 10 10:34:18 2010 +0100 @@ -1274,7 +1274,7 @@ ;; consult the list of past visited files, to see if we can find ;; the file which the user might thought was still open. (when (and iswitchb-use-virtual-buffers (null comps) - (or recentf-list bookmark-alist)) + recentf-list) (setq iswitchb-virtual-buffers nil) (let ((head recentf-list) name) (while head @@ -1289,30 +1289,15 @@ (setq iswitchb-virtual-buffers (cons (cons name (car head)) iswitchb-virtual-buffers))) - (setq head (cdr head)))) - (let ((head bookmark-alist) name path) - (while head - (if (and (setq path (cdr (assq 'filename (cdar head)))) - (setq name (file-name-nondirectory path)) - (string-match (if iswitchb-regexp - iswitchb-text - (regexp-quote iswitchb-text)) name) - (null (get-file-buffer path)) - (not (assoc name iswitchb-virtual-buffers)) - (not (iswitchb-ignore-buffername-p name)) - (file-exists-p path)) - (setq iswitchb-virtual-buffers - (cons (cons name path) - iswitchb-virtual-buffers))) - (setq head (cdr head)))) - (setq iswitchb-virtual-buffers (nreverse iswitchb-virtual-buffers) - comps (mapcar 'car iswitchb-virtual-buffers)) + (setq head (cdr head))) + (setq iswitchb-virtual-buffers (nreverse iswitchb-virtual-buffers) + comps (mapcar 'car iswitchb-virtual-buffers)) (let ((comp comps)) (while comp (put-text-property 0 (length (car comp)) 'face 'iswitchb-virtual-matches (car comp)) - (setq comp (cdr comp))))) + (setq comp (cdr comp)))))) (cond ((null comps) (format " %sNo match%s" open-bracket-determined diff -r c7c70f9fa3d7 -r cb0891567332 lisp/ls-lisp.el --- a/lisp/ls-lisp.el Wed Feb 10 10:29:28 2010 +0100 +++ b/lisp/ls-lisp.el Wed Feb 10 10:34:18 2010 +0100 @@ -400,6 +400,7 @@ ;; If not full-directory-p, FILE *must not* end in /, as ;; file-attributes will not recognize a symlink to a directory, ;; so must make it a relative filename as ls does: + (if (file-name-absolute-p file) (setq file (expand-file-name file))) (if (eq (aref file (1- (length file))) ?/) (setq file (substring file 0 -1))) (let ((fattr (file-attributes file 'string)))