From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help Subject: bookmark+ help required Date: Wed, 15 Apr 2015 21:24:15 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1429125885 8711 80.91.229.3 (15 Apr 2015 19:24:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2015 19:24:45 +0000 (UTC) To: Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 15 21:24:36 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 1YiSvL-0002TR-Sj for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Apr 2015 21:24:36 +0200 Original-Received: from localhost ([::1]:33741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiSvK-0001Ms-U2 for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Apr 2015 15:24:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiSv9-0001Mg-Jf for help-gnu-emacs@gnu.org; Wed, 15 Apr 2015 15:24:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiSv5-0002T0-Gw for help-gnu-emacs@gnu.org; Wed, 15 Apr 2015 15:24:23 -0400 Original-Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:38807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiSv5-0002Sr-98 for help-gnu-emacs@gnu.org; Wed, 15 Apr 2015 15:24:19 -0400 Original-Received: by wiun10 with SMTP id n10so71929779wiu.1 for ; Wed, 15 Apr 2015 12:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:subject; bh=Oo1JsQonSGrlBb620cuSJzr2cJyTAlnORpBpWPCgDhk=; b=Wf1tAyuOTSgg0j1Jc3liL+GbnN4kXnXyvVHN9PfK73TUhKYrWUeUjwxyTuCgkllaoL OWFPSeEndtLRZvhuKZVyv4kDPJYIJDLCSBLXJkc04ExbbDoAZoGGD/J0QRxb5Ka0EYAj r01dTiJARY3TEhpVlrK8b3BfPFaXVf3SbS1AF/uv1dFrxZKeHVmy4k5rJDBRkZKZ/BFp qifbRH/eiSxLTtV3wMG8kwIR98bH1x5jXnwvXSJ3zMAUKiNvmx/8zhNkz2Y8sXaIQU5K jw6GiE/8p4EVfoym+2PuMbXVLeJRlQ6heI3oHIkTH8AVmf17/a983Cv3sKepbjW0vPR7 OYNQ== X-Received: by 10.180.80.199 with SMTP id t7mr838099wix.52.1429125858248; Wed, 15 Apr 2015 12:24:18 -0700 (PDT) Original-Received: from zac (78-21-109-135.access.telenet.be. [78.21.109.135]) by mx.google.com with ESMTPSA id h5sm7225230wjn.20.2015.04.15.12.24.16 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 15 Apr 2015 12:24:17 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22c 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:103746 Archived-At: Hi, I switched to bookmark+ and some of my bookmarks now have a different format: Old format: #1=(#("past.org" 0 8 (bmkp-full-record #1#)) (filename . "~/org/past.org") (front-context-string . "* DONE <2013-04-") (rear-context-string) (position . 1)) New format: #1=(#("agenda.org" 0 10 (bmkp-full-record #1#)) (end-position . 12206) (time 21790 27563 50717 0) (visits . 0) (filename . "~/org/agenda.org") (front-context-string . "* TODO <2013-05-") (rear-context-string . "g niet gestart!\n") (position . 12206)) I have an eshell function that allows me to type `j bookmark` (got it from http://www.emacswiki.org/emacs/EshellBmk (thanks!)) and it fails with the new format: it expects the 'filename' cell up front in the record. That works with the old records, but not the new ones. In the above 'agenda.org' bookmark it thinks that the filename is '12206'. Here's the relevant code: (if (setq filename (cdr (car (bookmark-get-bookmark-record bookmark)))) My lisp is not up to turning this into an expression that would correctly load the filename from old formats as well as from the newer format. Any help and suggestion would be most welcome and appreciated. TIA, Guido Note: I am very willing to update the wiki with proposed working solution and give due credit to you guys.