From: Markus Rost Date: Thu, 7 Nov 2002 16:52:04 +0000 (+0000) Subject: (checkdoc-find-error): Use get-file-buffer instead of get-buffer. X-Git-Tag: ttn-vms-21-2-B4~12562 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b127be31b1d209dc739a0c1c9d4f8d46fbabed77;p=emacs.git (checkdoc-find-error): Use get-file-buffer instead of get-buffer. --- diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index 3720984196c..334a7995bcf 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el @@ -2586,9 +2586,9 @@ This function will not modify `match-data'." (if (looking-at "\\(\\(\\w+\\|\\s_\\)+\\.el\\):\\([0-9]+\\):") (let ((l (string-to-int (match-string 3))) (f (match-string 1))) - (if (not (get-buffer f)) + (if (not (get-file-buffer f)) (error "Can't find buffer %s" f)) - (switch-to-buffer-other-window (get-buffer f)) + (switch-to-buffer-other-window (get-file-buffer f)) (goto-line l)))) (defun checkdoc-buffer-label ()