emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien Guerry <Bastien.Guerry@ens.fr>
To: Phil Jackson <phil@shellarchive.co.uk>
Cc: Tokuya Kameshima <kames@fa2.so-net.ne.jp>, emacs-orgmode@gnu.org
Subject: Re: org-bookmark.el
Date: Fri, 29 Feb 2008 01:14:49 +0000	[thread overview]
Message-ID: <871w6wftrq.fsf@bzg.ath.cx> (raw)
In-Reply-To: <873arciyzp.fsf@shellarchive.co.uk> (Phil Jackson's message of "Thu, 28 Feb 2008 20:53:46 +0000")

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

Phil Jackson <phil@shellarchive.co.uk> writes:

> Bastien <bzg@altern.org> writes:
>
>>> I don't think it needs to go into org.el does it? When org-bookmark gets
>>> it's turn upon `org-store-link' it should check a variable called, for
>>> example, `org-bookmark-check-bookmarks-first' and then if that's non-nil
>>> check major-mode and act accordingly. This will keep `org-store-link'
>>> nice and clean.
>
>> Of course, you're right.
>>
>> But I doubt whether `org-bookmark-check-bookmarks-first' would be
>> useful here.  People using `org-bookmark.el' are likely to use it in
>> dired-mode and in buffer visiting files as well.  Actually, I would
>> use it just for that (not really for creating links from the bookmarks
>> list.)
>
> I don't think that just through the act of loading a module the
> unrelated default behaviour should change. I would put a vote in for
> this behaviour to be off by default (but then I don't use bookmarks).

I've made some changes on org-bookmark.el in the git repository.

I added three options: 

 org-bookmark-in-dired nil
 org-bookmark-when-visiting-a-file nil
 org-bookmark-use-first-bookmark nil

By default, the behavior is the same than what Tokuya proposed.  
But turning the options on, it will let you use org-bookmark to 
link to a bookmark if the buffer is visiting a bookmarked file.  

Tokuya, this is quite a big change on your original code.  
Please feel free to tell me you prefer to keep your original 
code in the CONTRIB/ section instead of this one.

Thanks,


[-- Attachment #2: org-bookmark.el --]
[-- Type: application/emacs-lisp, Size: 3009 bytes --]

[-- Attachment #3: Type: text/plain, Size: 13 bytes --]


-- 
Bastien

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2008-02-29  1:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-27 15:39 org-bookmark.el Tokuya Kameshima
2008-02-27 16:06 ` org-bookmark.el Carsten Dominik
2008-02-27 16:21 ` org-bookmark.el Bastien Guerry
2008-02-28 14:20   ` org-bookmark.el Tokuya Kameshima
2008-02-28 15:04     ` org-bookmark.el Bastien
2008-02-28 16:02       ` org-bookmark.el Phil Jackson
2008-02-28 19:54         ` org-bookmark.el Bastien
2008-02-28 20:53           ` org-bookmark.el Phil Jackson
2008-02-29  1:14             ` Bastien Guerry [this message]
2008-02-29 14:25               ` org-bookmark.el Tokuya Kameshima
2008-02-29 18:47                 ` org-bookmark.el Bastien

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=871w6wftrq.fsf@bzg.ath.cx \
    --to=bastien.guerry@ens.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=kames@fa2.so-net.ne.jp \
    --cc=phil@shellarchive.co.uk \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).