GNU bug report logs - #11036
24.0.94; imagemagick-render-type is void as a variable

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Sat, 17 Mar 2012 03:39:01 UTC

Severity: minor

Tags: patch

Found in version 24.0.94

Fixed in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 11036 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 11036 <at> debbugs.gnu.org
Subject: Re: bug#11036: 24.0.94; imagemagick-render-type is void as a variable
Date: Tue, 20 Mar 2012 17:06:31 -0400
Obviously not for 24.1, but the following seems to work.
Anything that is in DOC should be defined at startup if relevant to the
platform in use.

I compared the results of `C-h f TAB' and `C-h v TAB' with and without
this change, and it just removes a few more void things.
Eg for me, the variables: motif-version-string, gtk-version-string, 
ns-initialized.


*** src/doc.c	2012-02-06 16:53:51 +0000
--- src/doc.c	2012-03-20 20:50:48 +0000
***************
*** 671,676 ****
--- 671,677 ----
  		  /* Install file-position as variable-documentation property
  		     and make it negative for a user-variable
  		     (doc starts with a `*').  */
+                   if (!NILP (Fboundp (sym)))
                      Fput (sym, Qvariable_documentation,
                            make_number ((pos + end + 1 - buf)
                                         * (end[1] == '*' ? -1 : 1)));
***************
*** 678,685 ****
  
  	      /* Attach a docstring to a function?  */
  	      else if (p[1] == 'F')
  		store_function_docstring (sym, pos + end + 1 - buf);
! 
  	      else if (p[1] == 'S')
  		; /* Just a source file name boundary marker.  Ignore it.  */
  
--- 679,688 ----
  
  	      /* Attach a docstring to a function?  */
  	      else if (p[1] == 'F')
+                 {
+                   if (!NILP (Ffboundp (sym)))
                      store_function_docstring (sym, pos + end + 1 - buf);
!                 }
  	      else if (p[1] == 'S')
  		; /* Just a source file name boundary marker.  Ignore it.  */
  





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

Previous Next


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