all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lektu@terra.es>
Cc: jmbarranquero@laley.wke.es
Subject: Re: recentf new feature proposal
Date: Fri, 06 Jun 2003 20:16:53 +0200	[thread overview]
Message-ID: <20030606200342.8ABB.LEKTU@terra.es> (raw)
In-Reply-To: <15304722.1054907695385.JavaMail.www@wwinf0302>

On Fri,  6 Jun 2003 15:54:55 +0200 (CEST), David PONCE <david.ponce@wanadoo.fr> wrote:

> This is a good point.  I didn't know that saveplace already provided
> that feature :-(

Ah. Take a look at it. I use it all the time.

> However, from a user point of view, it could be more convenient to use
> only one library to open last visited files at last visited position.

Hmm.

recentf offers a way to (re)visit files; saveplace offers a way to save
yourself from remembering where you were in the files (and the pain to
go back to the right spot). Both behaviors are orthogonal (although
vaguely related).

IMO, if you use recentf and not saveplace, likely you don't want to
restore the point anywhere. If you use recentf and want to restore the
point for revisited files, likely saveplace's functionality will
interest you even if you visit your files by other methods than recentf...

> Also, that will reduce the number of hooks used, and the number of
> session related files ;-)

saveplace.el[c] is quite small.

> recentf could check if saveplace is enabled, and not restore the point in that case.

What worries me is duplicating this kind of functionality. There are
already other modules who ease visiting files... Should every one of
them implement point restoring?

> 
> Maybe other people have different thoughts?

Perhaps it'd be posible to extend (a little) saveplace.el so you can
better customize when it should activate; this way, people who want to
use saveplace-like functionality outside recentf-loaded files but not
want if for recentf or viceversa could customize it to his heart's
content.

> Anyway, feel free to not install the patch if you don't like it.

I feel it's unnecessary. Other than that, I've got nothing to say.

                                                           /L/e/k/t/u

  reply	other threads:[~2003-06-06 18:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-06 11:11 recentf new feature proposal David PONCE
2003-06-06 12:48 ` Juanma Barranquero
2003-06-06 13:54   ` David PONCE
2003-06-06 18:16     ` Juanma Barranquero [this message]
2003-06-06 18:30       ` Stefan Monnier
2003-06-06 18:50         ` David Ponce

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=20030606200342.8ABB.LEKTU@terra.es \
    --to=lektu@terra.es \
    --cc=jmbarranquero@laley.wke.es \
    /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.