From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Can't add bookmarks for help pages Date: Sat, 9 Jun 2012 14:00:44 -0700 Message-ID: <97A3845A8A9C4E16A5111C486A94E1E5@us.oracle.com> References: <1339265373.4350.YahooMailClassic@web121506.mail.ne1.yahoo.com> <3A6246CED9214924911024C0C02DAC53@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339275670 22600 80.91.229.3 (9 Jun 2012 21:01:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Jun 2012 21:01:10 +0000 (UTC) To: "'Kelly Dean'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 09 23:01:08 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SdSmP-0005fs-DA for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Jun 2012 23:01:05 +0200 Original-Received: from localhost ([::1]:36122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdSmP-0000et-6h for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Jun 2012 17:01:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdSmJ-0000ea-Dn for help-gnu-emacs@gnu.org; Sat, 09 Jun 2012 17:01:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdSmH-00026m-J8 for help-gnu-emacs@gnu.org; Sat, 09 Jun 2012 17:00:58 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:22206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdSmH-00026S-C7 for help-gnu-emacs@gnu.org; Sat, 09 Jun 2012 17:00:57 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q59L0r25018615 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 9 Jun 2012 21:00:54 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q59L0rwI010958 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Jun 2012 21:00:53 GMT Original-Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q59L0rPI022392; Sat, 9 Jun 2012 16:00:53 -0500 Original-Received: from dradamslap1 (/10.159.219.243) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 09 Jun 2012 14:00:53 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <3A6246CED9214924911024C0C02DAC53@us.oracle.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac1Gawth095JLC+tR6e0Ecaf26rmPwAABQWAAAXC8nA= X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85183 Archived-At: > (defun my-jump-help-bookmark (bookmark) > "Jump to `*Help*' bookmark BOOKMARK. > Handler function for record returned by `my-make-help-record'. > BOOKMARK is a bookmark name or a bookmark record." > (let ((help-fn (bookmark-prop-get bookmark 'help-fn)) > (help-arg (bookmark-prop-get bookmark 'help-arg))) > (funcall help-fn help-arg))) Sorry, did I say the cursor would be at the recorded position? Then make that: (defun my-jump-help-bookmark (bookmark) "..." (let ((help-fn (bookmark-prop-get bookmark 'help-fn)) (help-arg (bookmark-prop-get bookmark 'help-arg)) (position (bookmark-prop-get bookmark 'position))) (funcall help-fn help-arg) (with-current-buffer "*Help*" (goto-char position)))) Or if you want buffer `*Help*' to be current, then replace the last sexp, (with-current...), with these two sexps: (pop-to-buffer "*Help*") (goto-char position)