bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: man page prompter thinks "|" is legitimate


From: Dan Jacobson
Subject: Re: man page prompter thinks "|" is legitimate
Date: 18 Oct 2002 07:51:41 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

D> vertical-bar *is* a legitmate filename character under UNIX.  Thus,
D> if I felt it was appropriate, I could name a man page with a vbar
D> in it's filename.  This might not be particularly *wise* but it
D> *would* be legit so tools need to handle it.

Yes, vertical bar might even be a legitimate character in an English
given name (Hello, I'm Monty [vertical bar] Python) however, all this
will slow up my lifestyle, and RMS agrees with me, so there.

From: Richard Stallman <address@hidden>
Subject: Re: man page prompter thinks "|" is legitimate
To: address@hidden
How about this change?

*** man.el.~1.112.~     Tue Oct 15 18:21:41 2002
--- man.el      Wed Oct 16 11:36:04 2002
***************
*** 497,503 ****
      (save-excursion
        ;; Default man entry title is any word the cursor is on, or if
        ;; cursor not on a word, then nearest preceding word.
!       (setq word (current-word))
        (if (string-match "[._]+$" word)
          (setq word (substring word 0 (match-beginning 0))))
        ;; If looking at something like ioctl(2) or brc(1M), include the
--- 497,506 ----
      (save-excursion
        ;; Default man entry title is any word the cursor is on, or if
        ;; cursor not on a word, then nearest preceding word.
!       (skip-chars-backward "-a-zA-Z0-9._+")
!       (let ((start (point)))
!       (skip-chars-forward "-a-zA-Z0-9._+")
!       (setq word (buffer-substring start (point))))
        (if (string-match "[._]+$" word)
          (setq word (substring word 0 (match-beginning 0))))
        ;; If looking at something like ioctl(2) or brc(1M), include the

--------
P.S. how about those Perl::Pages with those ::'s jazz, did RMS's
change remember them [:: could be expected, but not |, because nobody
would put a | in a man page name and expect their jazz to not break
debian, redhat, etc. distribution scripts before even making it into a
distribution.]
-- 
http://jidanni.org/ Taiwan(04)25854780 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]