all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maindoor <sanjeevfiles@yahoo.com>
To: help-gnu-emacs@gnu.org, Richard Riley <rileyrgdev@gmail.com>
Subject: Re: simple requirement, so simple don't know how to search
Date: Wed, 3 Feb 2010 22:03:05 -0800 (PST)	[thread overview]
Message-ID: <78610.95524.qm@web63007.mail.re1.yahoo.com> (raw)
In-Reply-To: <hkcdfc$grk$1@ger.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 3521 bytes --]

Found exactly what I was looking for: bookmarknav . Give it a try.

Maindoor.

--- On Wed, 2/3/10, Richard Riley <rileyrgdev@gmail.com> wrote:

From: Richard Riley <rileyrgdev@gmail.com>
Subject: Re: simple requirement, so simple don't know how to search
To: help-gnu-emacs@gnu.org
Date: Wednesday, February 3, 2010, 11:28 PM

rustom <rustompmody@gmail.com> writes:

> On Feb 3, 12:47 pm, Richard Riley <rileyrg...@gmail.com> wrote:
>> Maindoor <sanjeevfi...@yahoo.com> 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"

As I would expect. I didn't try or suggest the persistent part of
it so can not really add anything.

>
> 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.

It shows all bookmarks in all buffers in the current
session. BTW, only bookmarks set with the bm interface. The code loops
on all open buffers.

> 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?

Well, yes. As it does work in the scenario previously discussed.  I cant
comment on your attempts at using persistence  as I haven't tried it myself.

>
> 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 "<f8>")   'bm-next)
> (global-set-key (kbd "<M-f8>") 'bm-previous)
> (global-set-key (kbd "<C-f8>") 'bm-toggle)
> (setq-default bm-buffer-persistence t)
>

-- 
Google Talk : rileyrgdev@googlemail.com  http://www.google.com/talk
ASCII ribbon campaign ( )
 - against HTML email  X
             & vCards / \






      

[-- Attachment #2: Type: text/html, Size: 5271 bytes --]

  reply	other threads:[~2010-02-04  6:03 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-28 12:39 simple requirement, so simple don't know how to search Maindoor
2010-01-28 12:50 ` Mario Domenech Goulart
2010-02-01  5:47   ` Maindoor
2010-02-01 15:22     ` Drew Adams
2010-02-02  8:35       ` Maindoor
2010-02-02 12:24         ` Richard Riley
2010-02-02 15:50         ` Drew Adams
2010-02-03  4:50           ` Maindoor
     [not found]         ` <mailman.589.1265113565.14305.help-gnu-emacs@gnu.org>
2010-02-02 19:07           ` rustom
2010-02-02 20:36             ` Richard Riley
2010-02-03  4:50               ` Maindoor
2010-02-03  7:32                 ` Drew Adams
2010-02-03  7:47                 ` Richard Riley
     [not found]                 ` <mailman.636.1265183360.14305.help-gnu-emacs@gnu.org>
2010-02-03 16:57                   ` rustom
2010-02-03 17:58                     ` Richard Riley
2010-02-04  6:03                       ` Maindoor [this message]
2010-01-28 13:22 ` Richard Riley
2010-01-28 14:36   ` Tassilo Horn
2010-01-28 17:36     ` Richard Riley
2010-01-29  7:56       ` Tassilo Horn
2010-01-30  9:19         ` tomas
2010-01-29  8:14       ` Thierry Volpiatto
     [not found] <mailman.680.1265263392.14305.help-gnu-emacs@gnu.org>
2010-02-05 10:03 ` rustom
     [not found] <mailman.354.1264682403.14305.help-gnu-emacs@gnu.org>
2010-02-18  9:27 ` Stefan Kamphausen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=78610.95524.qm@web63007.mail.re1.yahoo.com \
    --to=sanjeevfiles@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rileyrgdev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.