From b127be31b1d209dc739a0c1c9d4f8d46fbabed77 Mon Sep 17 00:00:00 2001 From: Markus Rost Date: Thu, 7 Nov 2002 16:52:04 +0000 Subject: [PATCH] (checkdoc-find-error): Use get-file-buffer instead of get-buffer. --- lisp/emacs-lisp/checkdoc.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 () -- 2.39.2