GNU bug report logs -
#3921
23.1.50; checkdoc allow uncapitalized info node links
Previous Next
Reported by: Kevin Ryde <user42 <at> zip.com.au>
Date: Fri, 24 Jul 2009 23:05:04 UTC
Severity: normal
Done: Kevin Ryde <user42 <at> zip.com.au>
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 3921 in the body.
You can then email your comments to 3921 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3921
; Package
emacs
.
(Fri, 24 Jul 2009 23:05:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kevin Ryde <user42 <at> zip.com.au>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 24 Jul 2009 23:05:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
M-x checkdoc on the file foo.el below complains
Name emacs should appear capitalized as Emacs (C-h,f,e,n,p,q)
at the `(emacs)' info link. I hoped it would recognise that has to be
left as-is, since it must follow the target document's name and nodes.
Perhaps the following, dragging in help-mode.el for a definitive regexp,
and using thingatpt.el just because it's a convenient way to match
surrounding point.
2009-07-25 Kevin Ryde <user42 <at> zip.com.au>
* emacs-lisp/checkdoc.el (checkdoc-proper-noun-region-engine): Allow
uncapitalized in info node hyperlinks.
[foo.el (application/emacs-lisp, attachment)]
[checkdoc.el.info-link.diff (text/x-diff, attachment)]
[Message part 4 (text/plain, inline)]
In GNU Emacs 23.1.50.4 (i586-pc-linux-gnu, GTK+ Version 2.16.4)
of 2009-07-24 on blah.blah
configured using `configure 'CFLAGS=-O -g' '--prefix=/down/emacs/b/inst' '--with-x-toolkit=gtk''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_AU
value of $XMODIFIERS: nil
locale-coding-system: iso-latin-1-unix
default-enable-multibyte-characters: t
Reply sent
to
Chong Yidong <cyd <at> stupidchicken.com>
:
You have taken responsibility.
(Fri, 23 Oct 2009 17:35:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kevin Ryde <user42 <at> zip.com.au>
:
bug acknowledged by developer.
(Fri, 23 Oct 2009 17:35:04 GMT)
Full text and
rfc822 format available.
Message #10 received at 3921-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> M-x checkdoc on the file foo.el below complains
>
> Name emacs should appear capitalized as Emacs (C-h,f,e,n,p,q)
>
> at the `(emacs)' info link. I hoped it would recognise that has to be
> left as-is, since it must follow the target document's name and nodes.
>
> Perhaps the following, dragging in help-mode.el for a definitive regexp,
> and using thingatpt.el just because it's a convenient way to match
> surrounding point.
I checked in a slightly different fix. Thanks for the bug report.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3921
; Package
emacs
.
(Sat, 24 Oct 2009 23:45:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kevin Ryde <user42 <at> zip.com.au>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sat, 24 Oct 2009 23:45:05 GMT)
Full text and
rfc822 format available.
Message #15 received at 3921 <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
reopen 3921
thanks
Chong Yidong <cyd <at> stupidchicken.com> writes:
>
> I checked in a slightly different fix.
Reopening as I believe the looking-back limit prevents line-wrapped
links working, like the foo.el below.
But why not help-xref-info-regexp? Less code, no duplication of
patterns. For a lisp tool there's no need to hold back on what
libraries are loaded -- in fact letting someone else do the work is a
very good thing! :-)
(The worst duplication I struck lately was a while ago in info.el when
digging around some node names. I recall unlovely duplication of
patterns, making life hard if looking to tighten or loosen.)
I thought of the URL links only afterwards, and didn't do anything about
it. help-xref-url-regexp would again seem good as an authoritative
pattern.
[checkdoc.el.info-link-2.diff (text/x-diff, inline)]
--- checkdoc.el.~1.78.~ 2009-10-25 08:57:10.000000000 +1100
+++ checkdoc.el 2009-10-25 10:05:53.000000000 +1100
@@ -173,6 +173,9 @@
(defvar checkdoc-version "0.6.1"
"Release version of checkdoc you are currently running.")
+(require 'help-mode) ;; for help-xref-info-regexp
+(require 'thingatpt) ;; for handy thing-at-point-looking-at
+
(defvar compilation-error-regexp-alist)
(defvar compilation-mode-font-lock-keywords)
@@ -2017,11 +2020,11 @@
(not (and (= ?/ (char-after e))
(= ?/ (char-before b))))
(not (checkdoc-in-example-string-p begin end))
- ;; info node
- (not (save-excursion
- (goto-char b)
- (looking-back "\\<[Ii]nfo[ \t\n]+\\(node\\|anchor\\)[ \t\n]+`("
- (line-beginning-position)))))
+ ;; info or url links left alone
+ (not (thing-at-point-looking-at
+ help-xref-info-regexp))
+ (not (thing-at-point-looking-at
+ help-xref-url-regexp)))
(if (checkdoc-autofix-ask-replace
b e (format "Text %s should be capitalized. Fix? "
text)
[foo.el (application/emacs-lisp, attachment)]
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sat, 24 Oct 2009 23:45:08 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3921
; Package
emacs
.
(Sun, 25 Oct 2009 01:10:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sun, 25 Oct 2009 01:10:05 GMT)
Full text and
rfc822 format available.
Message #22 received at 3921 <at> emacsbugs.donarmstrong.com (full text, mbox):
> @@ -2017,11 +2020,11 @@
> (not (and (= ?/ (char-after e))
> (= ?/ (char-before b))))
> (not (checkdoc-in-example-string-p begin end))
> - ;; info node
> - (not (save-excursion
> - (goto-char b)
> - (looking-back "\\<[Ii]nfo[ \t\n]+\\(node\\|anchor\\)[ \t\n]+`("
> - (line-beginning-position)))))
> + ;; info or url links left alone
> + (not (thing-at-point-looking-at
> + help-xref-info-regexp))
> + (not (thing-at-point-looking-at
> + help-xref-url-regexp)))
> (if (checkdoc-autofix-ask-replace
> b e (format "Text %s should be capitalized. Fix? "
> text)
Looks good,
Stefan
Reply sent
to
Kevin Ryde <user42 <at> zip.com.au>
:
You have taken responsibility.
(Tue, 27 Oct 2009 23:10:10 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kevin Ryde <user42 <at> zip.com.au>
:
bug acknowledged by developer.
(Tue, 27 Oct 2009 23:10:10 GMT)
Full text and
rfc822 format available.
Message #27 received at 3921-done <at> emacsbugs.donarmstrong.com (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>
> Looks good,
I checked it in.
(And leaving the /emacs/ bit alone, though it may be redundant with the
url-link regexp, as long as everyone uses URL `...' format.)
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Wed, 25 Nov 2009 15:24:13 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 262 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.