GNU bug report logs - #20815
25.0.50; doc of `null'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 14 Jun 2015 22:21:02 UTC

Severity: wishlist

Found in version 25.0.50

Done: Nicolas Petton <nicolas <at> petton.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20815 in the body.
You can then email your comments to 20815 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20815; Package emacs. (Sun, 14 Jun 2015 22:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 14 Jun 2015 22:21:03 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; doc of `null'
Date: Sun, 14 Jun 2015 15:20:23 -0700 (PDT)
The doc string should make clear that this is a Boolean
predicate.  Currently it says only "Return t if OBJECT is
nil.  It should also say "Return nil if OBJECT is non-nil.

The Elisp manual (node `List-related Predicates' (which should
be written `List-Related Predicates') is OK.  It says what the
return value is if OBJECT is not nil.



In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
 of 2014-10-20 on LEG570
Bzr revision: 118168 rgm <at> gnu.org-20141020195941-icp42t8ttcnud09g
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --enable-checking=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20815; Package emacs. (Sun, 14 Jun 2015 22:32:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: 20815 <at> debbugs.gnu.org
Subject: RE: bug#20815: 25.0.50; doc of `null'
Date: Sun, 14 Jun 2015 15:31:46 -0700 (PDT)
BTW, the URL for the online manual is not good for this node.

Following the convention, it should be simply
http://www.gnu.org/software/emacs/manual/html_node/elisp/List-related-Predicates.html

But it is instead:
http://www.gnu.org/software/emacs/manual/html_node/elisp/List_002drelated-Predicates.html

Somehow, the hyphen got translated to `_002d', unhelpfully.

It is good to follow a consistent convention.  I take advantage
of that, for example, in this command, which I use several times
a day to point Web readers to the manual (e.g. from stackoverflow
and emacs.stackexchange.com):

(defun Info-goto-node-web (node &optional flip-new-win)
  "Use `browse-url' to go to Info node NODE using a Web browser.
With a prefix arg, reverse the effect of option
option`browse-url-new-window-flag'.

NODE is the name of a node in the GNU Emacs or Elisp manual.
Alternatively, NODE can have the form (MANUAL)NODE, where MANUAL is
\"emacs\" or \"elisp\" and NODE is the name of the node in that
manual.  Empty NODE in (MANUAL) defaults to the `Top' node."
  (interactive
   (list (Info-read-node-name "Go to node: " Info-current-node)
         current-prefix-arg))
  (require 'browse-url)
  (unless Info-current-file (error "This command must be invoked from Info"))
  (browse-url (Info-url-for-node node)
              (list (if flip-new-win
                        (not browse-url-new-window-flag)
                      browse-url-new-window-flag))))

`Info-url-for-node' returns "a URL for NODE, a node in the GNU
Emacs or Elisp manual."  It does this:
(replace-regexp-in-string "[ \t]+" "-" node t t).  That doesn't
DTRT for the node reported in this bug report, for example.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20815; Package emacs. (Mon, 15 Jun 2015 02:38:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 20815 <at> debbugs.gnu.org
Subject: Re: bug#20815: 25.0.50; doc of `null'
Date: Mon, 15 Jun 2015 05:37:23 +0300
> Date: Sun, 14 Jun 2015 15:31:46 -0700 (PDT)
> From: Drew Adams <drew.adams <at> oracle.com>
> 
> BTW, the URL for the online manual is not good for this node.
> 
> Following the convention, it should be simply
> http://www.gnu.org/software/emacs/manual/html_node/elisp/List-related-Predicates.html
> 
> But it is instead:
> http://www.gnu.org/software/emacs/manual/html_node/elisp/List_002drelated-Predicates.html
> 
> Somehow, the hyphen got translated to `_002d', unhelpfully.

Hex 2d is the codepoint of the hyphen.  Makeinfo converts all
punctuation characters like that, so the only hyphens left in the
node's name are those that were spaces before.

IOW, it's a feature.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20815; Package emacs. (Mon, 15 Jun 2015 05:35:03 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Drew Adams <drew.adams <at> oracle.com>
Cc: 20815 <at> debbugs.gnu.org
Subject: RE: bug#20815: 25.0.50; doc of `null'
Date: Sun, 14 Jun 2015 22:33:51 -0700 (PDT)
> > Somehow, the hyphen got translated to `_002d', unhelpfully.
> 
> Hex 2d is the codepoint of the hyphen.  Makeinfo converts all
> punctuation characters like that, so the only hyphens left in the
> node's name are those that were spaces before.
> 
> IOW, it's a feature.

Too bad, but OK.  It's unrelated to this bug, anyway.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20815; Package emacs. (Tue, 16 Jun 2015 19:53:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Petton <nicolas <at> petton.fr>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 20815-done <at> debbugs.gnu.org, 20815 <at> debbugs.gnu.org
Subject: Re: bug#20815: 25.0.50; doc of `null'
Date: Tue, 16 Jun 2015 21:52:42 +0200
Drew Adams <drew.adams <at> oracle.com> writes:

> The doc string should make clear that this is a Boolean
> predicate.  Currently it says only "Return t if OBJECT is
> nil.  It should also say "Return nil if OBJECT is non-nil.

I pushed a fix (commit deb6e89).

Nico
-- 
Nicolas Petton
http://nicolas-petton.fr




Reply sent to Nicolas Petton <nicolas <at> petton.fr>:
You have taken responsibility. (Tue, 16 Jun 2015 19:53:04 GMT) Full text and rfc822 format available.

Notification sent to Drew Adams <drew.adams <at> oracle.com>:
bug acknowledged by developer. (Tue, 16 Jun 2015 19:53:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 15 Jul 2015 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 297 days ago.

Previous Next


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