all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: doc-view support for bookmark.el
Date: Tue, 25 Dec 2007 19:43:56 +0100	[thread overview]
Message-ID: <87lk7i398z.fsf@member.fsf.org> (raw)
In-Reply-To: <477143E8.1090508@gmx.at> (martin rudalics's message of "Tue, 25 Dec 2007 18:54:48 +0100")

martin rudalics <rudalics@gmx.at> writes:

Hi Martin,

>> When I was doing that I found some strange code:
>> bookmark-jump-noselect opened the bookmarked file, set point at the
>> correct position and returned a cons (BUFFER . POSITION).  All
>> calling functions did set the position once again.  I suspect that
>> was a relict of the past, so I removed it and now
>> bookmark-jump-noselect only returns the buffer.
>
> (defun bookmark-jump-noselect (str)
>    ...
>         (save-excursion
>             ...
>             (cons (current-buffer) (point))))
>
> The position might be in the same buffer where the excursion occurred,
> hence this is needed.

Ok, I get it.  But it's at least a bit ugly and hard-wired to bookmarks
that actually save the value of point.  We should come up with a better
way that allows bookmarking images, pdfs and everything else emacs can
display.  At least for those two examples there's no need to save the
value of point.

Bye,
Tassilo

      reply	other threads:[~2007-12-25 18:43 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-25 10:54 doc-view support for bookmark.el Tassilo Horn
2007-12-25 11:43 ` Stefan Monnier
2007-12-25 14:42   ` Tassilo Horn
2007-12-25 17:32     ` Stefan Monnier
2007-12-25 19:00       ` Tassilo Horn
2007-12-25 22:00       ` Tassilo Horn
2007-12-25 22:05         ` Nick Roberts
2007-12-25 22:25           ` Tassilo Horn
2007-12-25 23:07         ` Stefan Monnier
2007-12-26  8:22           ` Tassilo Horn
2007-12-26 11:52             ` bookmark support for doc-view and image-mode (was: doc-view support for bookmark.el) Tassilo Horn
2007-12-26 18:53         ` doc-view support for bookmark.el Karl Fogel
2007-12-26 17:08           ` Drew Adams
2007-12-26 20:21             ` Karl Fogel
2007-12-27  9:21           ` Tassilo Horn
2007-12-27 15:34             ` Drew Adams
2007-12-28  9:10             ` Karl Fogel
2007-12-28 23:44           ` Kim F. Storm
2007-12-29  7:40             ` Karl Fogel
2007-12-29  7:43             ` Stefan Monnier
2007-12-30  0:34               ` Kim F. Storm
2008-01-02  2:18                 ` Stefan Monnier
2008-01-02  9:43                   ` Kim F. Storm
2008-01-02 20:22                     ` Stefan Monnier
2007-12-25 17:24 ` Drew Adams
2007-12-25 17:54 ` martin rudalics
2007-12-25 18:43   ` Tassilo Horn [this message]

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=87lk7i398z.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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.