GNU bug report logs - #10196
24.0.92; prolog-mode error

Previous Next

Package: emacs;

Reported by: Simen Heggestøyl <simenheg <at> ifi.uio.no>

Date: Fri, 2 Dec 2011 17:19:02 UTC

Severity: important

Found in version 24.0.92

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 10196-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Simen Heggestøyl <simenheg <at> ifi.uio.no>
Cc: 10196-done <at> debbugs.gnu.org
Subject: Re: bug#10196: 24.0.92; prolog-mode error
Date: Fri, 02 Dec 2011 23:13:59 -0500
> Starting from 'emacs -Q', running 'M-x prolog-mode' gives the following
> error message:
>       prolog-find-value-by-system: Wrong type argument: bufferp, nil

Thanks, I've installed the patch below which should avoid this error,
tho it may hide some underlying problem, so if some other problem shows
up, make sure to come back here.


        Stefan


=== modified file 'lisp/progmodes/prolog.el'
--- lisp/progmodes/prolog.el	2011-11-26 08:26:37 +0000
+++ lisp/progmodes/prolog.el	2011-12-03 04:05:34 +0000
@@ -868,8 +868,9 @@
 (defun prolog-find-value-by-system (alist)
   "Get value from ALIST according to `prolog-system'."
   (let ((system (or prolog-system
-                    (buffer-local-value 'prolog-system
-                                        (prolog-inferior-buffer 'dont-run)))))
+                    (let ((infbuf (prolog-inferior-buffer 'dont-run)))
+                      (when infbuf
+                        (buffer-local-value 'prolog-system infbuf))))))
     (if (listp alist)
         (let (result
               id)





This bug report was last modified 13 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.