unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Leo <sdl.web@gmail.com>
Cc: 11036@debbugs.gnu.org
Subject: bug#11036: 24.0.94; imagemagick-render-type is void as a variable
Date: Tue, 20 Mar 2012 17:06:31 -0400	[thread overview]
Message-ID: <vf7gyfkmnc.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <izpqcb2h55.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sat, 17 Mar 2012 14:53:42 -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.  */
  






  reply	other threads:[~2012-03-20 21:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-17  3:07 bug#11036: 24.0.94; imagemagick-render-type is void as a variable Leo
2012-03-17  8:52 ` Eli Zaretskii
2012-03-17 13:10   ` Leo
2012-03-17 18:36     ` Glenn Morris
2012-03-17 18:53       ` Glenn Morris
2012-03-20 21:06         ` Glenn Morris [this message]
2012-03-20 23:56           ` Leo
2012-04-09 20:44             ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vf7gyfkmnc.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=11036@debbugs.gnu.org \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).