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: Opening a bookmark in the init file Date: Mon, 2 Mar 2015 16:56:20 -0800 (PST) Message-ID: <06be73f7-c6f2-4075-90b8-ec2b4f7314a5@default> References: <87twy26h5s.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1425344220 15649 80.91.229.3 (3 Mar 2015 00:57:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2015 00:57:00 +0000 (UTC) To: Robert Thorpe , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 03 01:56:48 2015 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 1YSb8d-00031C-PL for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Mar 2015 01:56:43 +0100 Original-Received: from localhost ([::1]:60857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSb8d-0001R3-1Q for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Mar 2015 19:56:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSb8Q-0001NH-Hx for help-gnu-emacs@gnu.org; Mon, 02 Mar 2015 19:56:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSb8L-0002za-Fb for help-gnu-emacs@gnu.org; Mon, 02 Mar 2015 19:56:30 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:18321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSb8L-0002zW-92 for help-gnu-emacs@gnu.org; Mon, 02 Mar 2015 19:56:25 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t230uNcg032160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 3 Mar 2015 00:56:24 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t230uLVK027719 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 3 Mar 2015 00:56:22 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t230uLq9015208; Tue, 3 Mar 2015 00:56:21 GMT In-Reply-To: <87twy26h5s.fsf@robertthorpeconsulting.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:102992 Archived-At: > For years I've setup Emacs so it presents me with my ToDo list at > startup. It doesn't put me in the right place in the file though. I > can bookmark the place in the file, but using bookmark-jump in the init > file doesn't work and it doesn't work in emacs-startup-hook either. Why doesn't it work in your init file? Of course you will need to load your bookmarks file before trying to jump to the bookmark. But doing that and jumping to a bookmark is just invoking Lisp functions. Nothing special - you can invoke pretty much any Lisp functions you like from your init file. I suggest that you specify in detail what you have tried, and perhaps people here will be able to help. If you do that, keep it simple - an init file that does only what you are trying to do in this regard. Start by just trying to jump to a simple bookmark from your init file - not a special bookmark (just a static file position), not involving any other code, whether Org to-do stuff or anything else, and with a bookmarks file that contains very little - maybe only that bookmark. And start from `emacs -Q`, of course.