Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
89101e46
Commit
89101e46
authored
Oct 04, 2000
by
Stefan Monnier
Browse files
(dired-mark-pop-up): Turn comment into docstring. Use with-current-buffer.
parent
616e14f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
lisp/dired.el
lisp/dired.el
+10
-11
No files found.
lisp/dired.el
View file @
89101e46
...
...
@@ -2120,22 +2120,21 @@ Command symbols are `byte-compile', `chgrp', `chmod', `chown', `compress',
`
uncompress
'.
")
(defun dired-mark-pop-up (bufname op-symbol files function &rest args)
;;
"
Args
BUFNAME
OP-SYMBOL
FILES
FUNCTION
&rest
ARGS.
;;
Return FUNCTION's result on ARGS after popping up a window (in a buffer
;;
named BUFNAME, nil gives \" *Marked Files*\") showing the marked
;;
files. Uses function `dired-pop-to-buffer' to do that.
;;
FUNCTION should not manipulate files.
;;
It should only read input (an argument or confirmation).
;;
The window is not shown if there is just one file or
;;
OP-SYMBOL is a member of the list in `dired-no-confirm'.
;;
FILES is the list of marked files."
"
Args
BUFNAME
OP-SYMBOL
FILES
FUNCTION
&rest
ARGS.
Return
FUNCTION
's
result
on
ARGS
after
popping
up
a
window
(
in
a
buffer
named
BUFNAME,
nil
gives
\"
*Marked
Files*\"
)
showing
the
marked
files.
Uses
function
`
dired-pop-to-buffer
'
to
do
that.
FUNCTION
should
not
manipulate
files.
It
should
only
read
input
(
an
argument
or
confirmation
)
.
The
window
is
not
shown
if
there
is
just
one
file
or
OP-SYMBOL
is
a
member
of
the
list
in
`
dired-no-confirm
'.
FILES
is
the
list
of
marked
files.
"
(or bufname (setq bufname "
*Marked
Files*
"))
(if (or (eq dired-no-confirm t)
(memq op-symbol dired-no-confirm)
(= (length files) 1))
(apply function args)
(
save-excursion
(
set-buffer
(
get-buffer-create
bufname
))
(with-current-buffer (get-buffer-create bufname)
(erase-buffer)
(dired-format-columns-of-files files)
(remove-text-properties (point-min) (point-max) '(mouse-face)))
...
...
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