From: Evgeni Dobrev <evgeni_dobrev@developer.bg>
Subject: man.el patch
Date: Thu, 25 Sep 2003 20:37:35 +0200 [thread overview]
Message-ID: <200309252037.51186.evgeni_dobrev@developer.bg> (raw)
[-- Attachment #1: clearsigned data --]
[-- Type: Text/Plain, Size: 705 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
In man mode 'm' retrieves the manual page for the word under the cursor.
Functions that return a pointer (e.g. strcat ) are written in the man pages
with * in front of their name. Emacs does not remove the * sign in front of
the functions and 'm' does not work (e.g. M-x man; string; and than scroll to
strcat and press 'm').
This patch fixes this.
Hope that helps,
evgeni
MD5 sum: 7667053c697f31400eddaee328bb79b9 man.el.patch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/czX4QQK4lOgt5AgRAuwyAKCMxDgJOuV8JIV+OMO5UgbYWWobAACcD3vP
wBAmdwj4sWg+41G5Et28FoA=
=h5UR
-----END PGP SIGNATURE-----
[-- Attachment #2: man.el.patch --]
[-- Type: text/x-diff, Size: 569 bytes --]
--- man.el_orig 2003-09-25 18:49:59.000000000 +0200
+++ man.el 2003-09-25 18:41:32.000000000 +0200
@@ -509,6 +509,10 @@
(setq word (current-word))
(if (string-match "[._]+$" word)
(setq word (substring word 0 (match-beginning 0))))
+ ;; If looking at something like *strcat(... , remove
+ ;; the '*'
+ (if (string-match "^*" word)
+ (setq word (substring word 1)))
;; If looking at something like ioctl(2) or brc(1M), include the
;; section number in the returned value. Remove text properties.
(forward-word 1)
[-- Attachment #3: Type: text/plain, Size: 148 bytes --]
_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
reply other threads:[~2003-09-25 18:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200309252037.51186.evgeni_dobrev@developer.bg \
--to=evgeni_dobrev@developer.bg \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.