From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: Re: simple requirement, so simple don't know how to search Date: Wed, 3 Feb 2010 08:57:32 -0800 (PST) Organization: http://groups.google.com Message-ID: <3dbe53b3-4966-4d45-bcf6-58737e1cfd3d@f17g2000prh.googlegroups.com> References: <851468.74289.qm@web63007.mail.re1.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1265218851 15810 80.91.229.12 (3 Feb 2010 17:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Feb 2010 17:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 03 18:40:48 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NcjDc-0002eF-Bk for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Feb 2010 18:40:48 +0100 Original-Received: from localhost ([127.0.0.1]:45809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcjDb-0000wA-Qi for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Feb 2010 12:40:47 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!f17g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: 59.95.10.247 Original-X-Trace: posting.google.com 1265216252 28515 127.0.0.1 (3 Feb 2010 16:57:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 3 Feb 2010 16:57:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f17g2000prh.googlegroups.com; posting-host=59.95.10.247; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:176584 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71655 Archived-At: On Feb 3, 12:47 pm, Richard Riley wrote: > Maindoor writes: > > Exactly. It is a weird default. If it were global, that would be it. It would have been > > perfect. I am a newbie to lisp. > > Drew, If I may request, If you can hack it up a little bit, it would be great. > > Perhaps concat the list as in bm-show-all and then do a bm-next on it, > > instead of a getting the list from the local buffer. > > > Maindoor. > > Use bm-show-all and "space" to see the buffer associated with the > bookmark under point. I had a brief look and, well, its way beyond my > elisp - its some heady mixture of overlays for current buffer bookmarks > and man made strings with text properties for global lists. I might try > later but don't hold your breath ;) bm-show-all with emacs straight after startup (no open files/buffers) says "No bookmarks defined" If I then open a file where I had previously put a bookmark and do bm- show-all -- it shows only that file's bookmarks, not the bookmarks in other files. So it appears that bm does not know of a bookmark unless you somehow go to a bookmark and say Hello :-) Would you classify this as a working bookmark system? My bm setup attempt is as under: (setq bm-restore-repository-on-load t) (require 'bm) (add-hook 'after-init-hook 'bm-repository-load) ;; Restoring bookmarks when on file find. (add-hook 'find-file-hooks 'bm-buffer-restore) ;; Saving bookmark data on killing a buffer (add-hook 'kill-buffer-hook 'bm-buffer-save) ;; Saving the repository to file when on exit. ;; kill-buffer-hook is not called when emacs is killed, so we ;; must save all bookmarks first. (add-hook 'kill-emacs-hook '(lambda nil (bm-buffer-save-all) (bm-repository-save))) ;; Update bookmark repository when saving the file. (add-hook 'after-save-hook 'bm-buffer-save) ;; Restore bookmarks when buffer is reverted. (add-hook 'after-revert-hook 'bm-buffer-restore) (autoload 'bm-toggle "bm" "Toggle bookmark in current buffer." t) (autoload 'bm-next "bm" "Goto bookmark." t) (autoload 'bm-previous "bm" "Goto previous bookmark." t) (global-set-key (kbd "") 'bm-next) (global-set-key (kbd "") 'bm-previous) (global-set-key (kbd "") 'bm-toggle) (setq-default bm-buffer-persistence t)