summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/checkdoc.el
diff options
context:
space:
mode:
authorKaroly Lorentey <lorentey@elte.hu>2004-04-15 16:49:22 +0000
committerKaroly Lorentey <lorentey@elte.hu>2004-04-15 16:49:22 +0000
commitbf11e465e7de681939128d851b82689de1a54849 (patch)
treedd74933805490dc63c24f6a003ebb3aef591ef7b /lisp/emacs-lisp/checkdoc.el
parentd3c554a0d08581693289f0b781176d56163aa2a5 (diff)
parentd01ca4a8d2a5fc59742dd643e2351b956423ee73 (diff)
downloademacs-bf11e465e7de681939128d851b82689de1a54849.tar.gz
emacs-bf11e465e7de681939128d851b82689de1a54849.tar.bz2
emacs-bf11e465e7de681939128d851b82689de1a54849.zip
Merged in changes from CVS trunk.
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-213 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-214 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-215 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-216 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-217 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-138
Diffstat (limited to 'lisp/emacs-lisp/checkdoc.el')
-rw-r--r--lisp/emacs-lisp/checkdoc.el23
1 files changed, 8 insertions, 15 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 8e68cb428dc..fddab94dfd4 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -653,8 +653,7 @@ style."
(sit-for 2))
(setq err-list (cdr err-list))))
(beginning-of-defun)
- (let ((pe (car err-list))
- (ne (funcall findfunc nil)))
+ (let ((ne (funcall findfunc nil)))
(if ne
(setq err-list (cons ne err-list))
(cond ((not err-list)
@@ -900,7 +899,7 @@ Prefix argument TAKE-NOTES means to continue through the whole buffer and
save warnings in a separate buffer. Second optional argument START-POINT
is the starting location. If this is nil, `point-min' is used instead."
(interactive "P")
- (let ((wrong nil) (msg nil) (errors nil)
+ (let ((wrong nil) (msg nil)
;; Assign a flag to spellcheck flag
(checkdoc-spellcheck-documentation-flag
(car (memq checkdoc-spellcheck-documentation-flag
@@ -2598,14 +2597,13 @@ This function will not modify `match-data'."
(setq checkdoc-output-mode-map (make-sparse-keymap))
(if (not (string-match "XEmacs" emacs-version))
(define-key checkdoc-output-mode-map [mouse-2]
- 'checkdoc-find-error-mouse))
+ 'checkdoc-find-error))
(define-key checkdoc-output-mode-map "\C-c\C-c" 'checkdoc-find-error)
(define-key checkdoc-output-mode-map "\C-m" 'checkdoc-find-error))
(defun checkdoc-output-mode ()
"Create and setup the buffer used to maintain checkdoc warnings.
-\\<checkdoc-output-mode-map>\\[checkdoc-find-error] - Go to this error location
-\\[checkdoc-find-error-mouse] - Goto the error clicked on."
+\\<checkdoc-output-mode-map>\\[checkdoc-find-error] - Go to this error location."
(if (get-buffer checkdoc-diagnostic-buffer)
(get-buffer checkdoc-diagnostic-buffer)
(save-excursion
@@ -2619,16 +2617,11 @@ This function will not modify `match-data'."
(run-hooks 'checkdoc-output-mode-hook)
(current-buffer))))
-(defun checkdoc-find-error-mouse (e)
- ;; checkdoc-params: (e)
- "Call `checkdoc-find-error' where the user clicks the mouse."
- (interactive "e")
- (mouse-set-point e)
- (checkdoc-find-error))
-
-(defun checkdoc-find-error ()
+(defalias 'checkdoc-find-error-mouse 'checkdoc-find-error)
+(defun checkdoc-find-error (&optional event)
"In a checkdoc diagnostic buffer, find the error under point."
- (interactive)
+ (interactive (list last-input-event))
+ (if event (posn-set-point (event-end e)))
(beginning-of-line)
(if (looking-at "\\(\\(\\w+\\|\\s_\\)+\\.el\\):\\([0-9]+\\):")
(let ((l (string-to-int (match-string 3)))