From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Evgeni Dobrev Newsgroups: gmane.emacs.bugs Subject: man.el patch Date: Thu, 25 Sep 2003 20:37:35 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200309252037.51186.evgeni_dobrev@developer.bg> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_vXzc/vU07jcxeBE" X-Trace: sea.gmane.org 1064515200 19307 80.91.224.253 (25 Sep 2003 18:40:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2003 18:40:00 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 20:39:56 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A2b1w-0005LJ-00 for ; Thu, 25 Sep 2003 20:39:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2b1r-0004pM-Vo for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Sep 2003 14:39:51 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A2b1l-0004oL-Vd for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2003 14:39:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A2b0F-0004aG-Qm for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2003 14:38:12 -0400 Original-Received: from [195.24.32.22] (helo=smtp.orbitel.bg) by monty-python.gnu.org with smtp (Exim 4.22) id 1A2b09-0004Uw-Ln for bug-gnu-emacs@gnu.org; Thu, 25 Sep 2003 14:38:06 -0400 Original-Received: (qmail 8162 invoked from network); 25 Sep 2003 18:38:39 -0000 Original-Received: from unknown (HELO localhost) (80.139.6.93) by mail.orbitel.bg with SMTP; 25 Sep 2003 18:38:39 -0000 Original-Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 3.36 #1 (Debian)) id 1A2azw-0000Er-00 for ; Thu, 25 Sep 2003 20:37:52 +0200 Original-To: bug-gnu-emacs@gnu.org User-Agent: KMail/1.5.3 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5858 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5858 --Boundary-00=_vXzc/vU07jcxeBE Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, In man mode 'm' retrieves the manual page for the word under the cursor. =20 =46unctions that return a pointer (e.g. strcat ) are written in the man pag= es=20 with * in front of their name. Emacs does not remove the * sign in front o= f=20 the functions and 'm' does not work (e.g. M-x man; string; and than scroll = to=20 strcat and press 'm'). This patch fixes this. Hope that helps, evgeni MD5 sum: 7667053c697f31400eddaee328bb79b9 man.el.patch =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/czX4QQK4lOgt5AgRAuwyAKCMxDgJOuV8JIV+OMO5UgbYWWobAACcD3vP wBAmdwj4sWg+41G5Et28FoA=3D =3Dh5UR =2D----END PGP SIGNATURE----- --Boundary-00=_vXzc/vU07jcxeBE Content-Type: text/x-diff; charset="us-ascii"; name="man.el.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="man.el.patch" --- 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) --Boundary-00=_vXzc/vU07jcxeBE Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs --Boundary-00=_vXzc/vU07jcxeBE--