[ESS] ess patch: avoid (error "Invalid buffer")

Sam Steingold sds at gnu.org
Mon Feb 27 17:23:06 CET 2012


when ess-help-kill-bogus-buffers is set to t, I get this error:

Debugger entered--Lisp error: (error "Invalid buffer")
  signal(error ("Invalid buffer"))
  error("Invalid buffer")
  display-buffer(#<killed buffer>)
  ess-display-temp-buffer(#<killed buffer>)
  ess--switch-to-help-buffer(#<killed buffer>)
  ess-display-help-on-object(#("zz" 0 2 (fontified t)))
  inferior-R-input-sender(#<process R> #("?zz" 0 3 (fontified t)))
  comint-send-input()
  inferior-ess-send-input()
  call-interactively(inferior-ess-send-input nil nil)

this patch avoids it:

     * ess-help.el (ess-display-help-on-object): do not try to display a
       dead buffer.


Index: ess-help.el
===================================================================
--- ess-help.el	(revision 4584)
+++ ess-help.el	(working copy)
@@ -250,9 +250,8 @@ an inferior emacs buffer) the GUI help w
               ;;dbg (ess-write-to-dribble-buffer
               ;;dbg	 (format "(ess-help '%s' before switch-to..\n" hb-name)
               (set-buffer-modified-p 'nil)
-              (toggle-read-only t)))))
-      (ess--switch-to-help-buffer tbuffer)
-      )))
+              (toggle-read-only t)
+              (ess--switch-to-help-buffer tbuffer))))))))
 
 
 (defun ess-display-help-in-browser ()


-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://honestreporting.com http://camera.org
http://truepeace.org http://www.memritv.org http://jihadwatch.org
To a Lisp hacker, XML is S-expressions with extra cruft.



More information about the ESS-help mailing list