Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7995501c
Commit
7995501c
authored
Dec 18, 2008
by
Dan Nicolaescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(vc-dir-at-event): Rename from vc-at-event. Change
all callers.
parent
c569485c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/vc-dir.el
lisp/vc-dir.el
+4
-4
No files found.
lisp/ChangeLog
View file @
7995501c
2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
* vc-dir.el (vc-dir-at-event): Rename from vc-at-event. Change
all callers.
2008-12-18 Sam Steingold <sds@gnu.org>
* vc-dir.el (vc-at-event): Handle (tool-bar) events. Fix bug#1585.
...
...
lisp/vc-dir.el
View file @
7995501c
...
...
@@ -275,11 +275,11 @@ See `run-hooks'."
map)
"
Keymap
for
directory
buffer.
")
(defmacro vc-at-event (event &rest body)
(defmacro vc-
dir-
at-event (event &rest body)
"
Evaluate
`
body
'
with
point
located
at
event-start
of
`
event
'.
If
`
body
'
uses
`
event
',
it
should
be
a
variable,
otherwise
it
will
be
evaluated
twice.
"
(let ((posn (make-symbol "
vc-at-event-posn
")))
(let ((posn (make-symbol "
vc-
dir-
at-event-posn
")))
`(save-excursion
(unless (equal ,event '(tool-bar))
(let ((,posn (event-start ,event)))
...
...
@@ -290,7 +290,7 @@ If `body' uses `event', it should be a variable,
(defun vc-dir-menu (e)
"
Popup
the
VC
dir
menu.
"
(interactive "
e
")
(vc-at-event e (popup-menu vc-dir-menu-map e)))
(vc-
dir-
at-event e (popup-menu vc-dir-menu-map e)))
(defvar vc-dir-tool-bar-map
(let ((map (make-sparse-keymap)))
...
...
@@ -676,7 +676,7 @@ that share the same state."
(defun vc-dir-toggle-mark (e)
(interactive "
e
")
(vc-at-event e (vc-dir-mark-unmark 'vc-dir-toggle-mark-file)))
(vc-
dir-
at-event e (vc-dir-mark-unmark 'vc-dir-toggle-mark-file)))
(defun vc-dir-delete-file ()
"
Delete
the
marked
files,
or
the
current
file
if
no
marks.
"
...
...
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