Mercurial > emacs
comparison lisp/vc-dir.el @ 101642:a2281d8c22e0
* vc-dir.el (vc-dir-menu-map, vc-dir-at-event, vc-dir-resynch-file):
Fix typos in docstrings.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 29 Jan 2009 12:34:08 +0000 |
parents | a9dc0e7c3f2b |
children | e9aa71a1b711 |
comparison
equal
deleted
inserted
replaced
101641:1f841b676a2c | 101642:a2281d8c22e0 |
---|---|
204 :help "Do the next logical version control operation on the current fileset")) | 204 :help "Do the next logical version control operation on the current fileset")) |
205 (define-key map [register] | 205 (define-key map [register] |
206 '(menu-item "Register" vc-register | 206 '(menu-item "Register" vc-register |
207 :help "Register file set into the version control system")) | 207 :help "Register file set into the version control system")) |
208 map) | 208 map) |
209 "Menu for VC dir") | 209 "Menu for VC dir.") |
210 | 210 |
211 ;; VC backends can use this to add mode-specific menu items to | 211 ;; VC backends can use this to add mode-specific menu items to |
212 ;; vc-dir-menu-map. | 212 ;; vc-dir-menu-map. |
213 (defun vc-dir-menu-map-filter (orig-binding) | 213 (defun vc-dir-menu-map-filter (orig-binding) |
214 (when (and (symbolp orig-binding) (fboundp orig-binding)) | 214 (when (and (symbolp orig-binding) (fboundp orig-binding)) |
274 "VC-dir" ,vc-dir-menu-map :filter vc-dir-menu-map-filter)) | 274 "VC-dir" ,vc-dir-menu-map :filter vc-dir-menu-map-filter)) |
275 map) | 275 map) |
276 "Keymap for directory buffer.") | 276 "Keymap for directory buffer.") |
277 | 277 |
278 (defmacro vc-dir-at-event (event &rest body) | 278 (defmacro vc-dir-at-event (event &rest body) |
279 "Evaluate `body' with point located at event-start of `event'. | 279 "Evaluate BODY with point located at event-start of EVENT. |
280 If `body' uses `event', it should be a variable, | 280 If BODY uses EVENT, it should be a variable, |
281 otherwise it will be evaluated twice." | 281 otherwise it will be evaluated twice." |
282 (let ((posn (make-symbol "vc-dir-at-event-posn"))) | 282 (let ((posn (make-symbol "vc-dir-at-event-posn"))) |
283 `(save-excursion | 283 `(save-excursion |
284 (unless (equal ,event '(tool-bar)) | 284 (unless (equal ,event '(tool-bar)) |
285 (let ((,posn (event-start ,event))) | 285 (let ((,posn (event-start ,event))) |
848 (push (vc-dir-recompute-file-state crt ddir) | 848 (push (vc-dir-recompute-file-state crt ddir) |
849 fileentries)) | 849 fileentries)) |
850 (vc-dir-update fileentries (current-buffer))))) | 850 (vc-dir-update fileentries (current-buffer))))) |
851 | 851 |
852 (defun vc-dir-resynch-file (&optional fname) | 852 (defun vc-dir-resynch-file (&optional fname) |
853 "Update the entries for FILE in any directory buffers that list it." | 853 "Update the entries for FNAME in any directory buffers that list it." |
854 (let ((file (or fname (expand-file-name buffer-file-name))) | 854 (let ((file (or fname (expand-file-name buffer-file-name))) |
855 (found-vc-dir-buf nil)) | 855 (found-vc-dir-buf nil)) |
856 (save-excursion | 856 (save-excursion |
857 (dolist (status-buf (buffer-list)) | 857 (dolist (status-buf (buffer-list)) |
858 (set-buffer status-buf) | 858 (set-buffer status-buf) |