Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7f0995a1
Commit
7f0995a1
authored
Jan 07, 2009
by
Martin Rudalics
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dired-pop-to-buffer): Don't split windows horizontally. (Bug#1806)
parent
79a97217
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/dired.el
lisp/dired.el
+4
-2
No files found.
lisp/ChangeLog
View file @
7f0995a1
2009-01-07 Martin Rudalics <rudalics@gmx.at>
* dired.el (dired-pop-to-buffer): Don't split windows
horizontally. (Bug#1806)
2009-01-07 Stefan Monnier <monnier@iro.umontreal.ca>
* tar-mode.el (tar-mode, tar-mode-write-contents)
...
...
lisp/dired.el
View file @
7f0995a1
...
...
@@ -2681,8 +2681,10 @@ name, or the marker and a count of marked files."
(format "
%c
[%d
files]
" dired-marker-char count)))))
(defun dired-pop-to-buffer (buf)
;; Pop up buffer BUF.
(pop-to-buffer (get-buffer-create buf))
"
Pop
up
buffer
BUF
in
a
way
suitable
for
Dired.
"
;; Don't split window horizontally. (Bug#1806)
(let (split-width-threshold)
(pop-to-buffer (get-buffer-create buf)))
;; If dired-shrink-to-fit is t, make its window fit its contents.
(when dired-shrink-to-fit
;; Try to not delete window when we want to display less than
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment