aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/dired.el7
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e6155d7237a..9bf92ae1b58 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -7,6 +7,10 @@
7 (http://lists.gnu.org/archive/html/emacs-devel/2014-03/msg00488.html) 7 (http://lists.gnu.org/archive/html/emacs-devel/2014-03/msg00488.html)
8 (comment-start-skip): Update the docstring. 8 (comment-start-skip): Update the docstring.
9 9
102014-03-18 Richard Stallman <rms@gnu.org>
11
12 * dired.el (dired-display-file): Force use of other window.
13
102014-03-18 Daniel Colascione <dancol@dancol.org> 142014-03-18 Daniel Colascione <dancol@dancol.org>
11 15
12 * startup.el (tty-handle-args): Remove debug message from 2007. 16 * startup.el (tty-handle-args): Remove debug message from 2007.
@@ -1600,6 +1604,7 @@
1600 * net/shr.el (shr-tag-img): Prefer the title over the alt text 1604 * net/shr.el (shr-tag-img): Prefer the title over the alt text
1601 (bug#16537). 1605 (bug#16537).
1602 1606
1607>>>>>>> MERGE-SOURCE
16032014-01-24 Juanma Barranquero <lekktu@gmail.com> 16082014-01-24 Juanma Barranquero <lekktu@gmail.com>
1604 1609
1605 * net/eww.el (eww-download-callback): 1610 * net/eww.el (eww-download-callback):
diff --git a/lisp/dired.el b/lisp/dired.el
index 162c9beb0c0..7cb22b1cc9b 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -2136,7 +2136,8 @@ Otherwise, display it in another buffer."
2136(defun dired-display-file () 2136(defun dired-display-file ()
2137 "In Dired, display this file or directory in another window." 2137 "In Dired, display this file or directory in another window."
2138 (interactive) 2138 (interactive)
2139 (display-buffer (find-file-noselect (dired-get-file-for-visit)))) 2139 (display-buffer (find-file-noselect (dired-get-file-for-visit))
2140 t))
2140 2141
2141;;; Functions for extracting and manipulating file names in Dired buffers. 2142;;; Functions for extracting and manipulating file names in Dired buffers.
2142 2143
@@ -3639,6 +3640,7 @@ With a prefix argument, edit the current listing switches instead."
3639 ;; Remove a switch of the form -XtY for some X and Y. 3640 ;; Remove a switch of the form -XtY for some X and Y.
3640 (setq dired-actual-switches 3641 (setq dired-actual-switches
3641 (replace-match "" t t dired-actual-switches 3)))) 3642 (replace-match "" t t dired-actual-switches 3))))
3643
3642 ;; Now, if we weren't sorting by date before, add the -t switch. 3644 ;; Now, if we weren't sorting by date before, add the -t switch.
3643 ;; Some simple-minded ls implementations (eg ftp servers) only 3645 ;; Some simple-minded ls implementations (eg ftp servers) only
3644 ;; allow a single option string, so try not to add " -t" if possible. 3646 ;; allow a single option string, so try not to add " -t" if possible.
@@ -3671,6 +3673,9 @@ Values matching `dired-sort-by-date-regexp' or `dired-sort-by-name-regexp'
3671set the minor mode accordingly, others appear literally in the mode line. 3673set the minor mode accordingly, others appear literally in the mode line.
3672With optional second arg NO-REVERT, don't refresh the listing afterwards." 3674With optional second arg NO-REVERT, don't refresh the listing afterwards."
3673 (dired-sort-R-check switches) 3675 (dired-sort-R-check switches)
3676 (unless (string-match "\\(\\`\\| \\)-\\([b-zA-Z]*\\)a"
3677 switches)
3678 (debug "No -a in Dired switches"))
3674 (setq dired-actual-switches switches) 3679 (setq dired-actual-switches switches)
3675 (dired-sort-set-mode-line) 3680 (dired-sort-set-mode-line)
3676 (or no-revert (revert-buffer))) 3681 (or no-revert (revert-buffer)))