* man.el patch
@ 2003-09-25 18:37 Evgeni Dobrev
0 siblings, 0 replies; only message in thread
From: Evgeni Dobrev @ 2003-09-25 18:37 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-25 18:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-25 18:37 man.el patch Evgeni Dobrev
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.