all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Drew Adams <drew.adams@oracle.com>
Cc: "Eli Zaretskii" <eliz@gnu.org>,
	"Daniel Martín" <mardani29@yahoo.es>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: [External] : Re: A feature to go to last edit locations
Date: Mon, 13 Feb 2023 23:28:20 +0300	[thread overview]
Message-ID: <Y+qdZF6Aj85QroJh@protected.localdomain> (raw)
In-Reply-To: <SJ0PR10MB5488464835FEEAEEB4C1E6E3F3DC9@SJ0PR10MB5488.namprd10.prod.outlook.com>

> > Given how much one moves during editing, I have hard time imagining
> > how a command that returns me to "the last place I edited" could be
> > useful without me telling Emacs which of those places is important and
> > which isn't.

That ispired me, thanks Eli.

> If you invent a mechanism to save "the last location" >
> automatically, you are going to add a facility that will have a high
> probability of false positives.

Exactly.

Then I have some buffers which are not tied to file name, temporary
buffers, but they may dwell for days, and I wish to go to them too.

If they disapear, then I have to implement self-destruction of such
point of non-existing buffer without file name.

> > In any case, whatever method of deducing automatically which place to
> > record, I think it's better to build the feature on top of registers,
> > since they are already equipped for saving and restoring
> > locations.

I had to implement it in the database quickly (DONE), as I have less
to think of. Previous ID, next ID and using one global or local
variable to keep the current point ID.

Food is good.

> FWIW, Bookmark+ has `bmkp-automatic-bookmark-mode', which
> just records locations with a timer delay.

That is also idea. Though it can't teach Emacs what user thinks.

And what about the point from where user went to other points, that
one should be recorded automatically, I guess, as how else can user go
back. 

>   If you want the automatic bookmarks to be temporary (not saved to your
>   bookmark file), then customize option

Definitely it is food for thought. Temporary bookmarks should be those
from where user jumped from, as example.

>   If you want the automatically created bookmarks to be highlighted,
>   then customize option `bmkp-auto-light-when-set' to highlight
>   bookmarks of the appropriate kind.  For example, to highlight
>   autonamed bookmarks set it to `autonamed-bookmark'.

Not that it is related, but I just imagine how specific part of text
could be highlighted, and then also bookmarked, and than point would
search for that text, and come there, and highlight it again.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



  reply	other threads:[~2023-02-13 20:28 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m1fsbakchr.fsf.ref@yahoo.es>
2023-02-12 17:41 ` A feature to go to last edit locations Daniel Martín
2023-02-12 17:52   ` Eli Zaretskii
2023-02-12 18:59     ` Daniel Martín
2023-02-12 19:26       ` Eli Zaretskii
2023-02-12 19:42         ` andrés ramírez
2023-02-12 22:19           ` Daniel Martín
2023-02-12 23:54             ` Dr. Arne Babenhauserheide
2023-02-13  7:50               ` Juri Linkov
2023-02-12 21:40         ` [External] : " Drew Adams
2023-02-13 20:28           ` Jean Louis [this message]
2023-02-12 18:07   ` Dmitry Gutov
2023-02-12 18:50     ` Daniel Martín
2023-02-12 18:52       ` Dmitry Gutov
2023-02-12 19:23         ` Daniel Martín
2023-02-13 19:28         ` Jean Louis
2023-02-13 19:24     ` Jean Louis
2023-02-13 19:41       ` Dmitry Gutov
2023-02-13 20:22         ` Dr. Arne Babenhauserheide
2023-02-13 20:56         ` Jean Louis
2023-02-14  3:25         ` Eli Zaretskii
2023-02-14  4:36           ` [External] : " Drew Adams
2023-02-14  4:56             ` Drew Adams
2023-02-14  5:53               ` Jean Louis
2023-02-14 16:24                 ` Drew Adams
2023-02-15  5:45                   ` Jean Louis
2023-02-15 16:34                     ` Drew Adams
2023-02-16  8:17                       ` On Bookmarks+ package Jean Louis
2023-02-16 17:38                         ` [External] : " Drew Adams
2023-02-14 20:08           ` A feature to go to last edit locations Dmitry Gutov
2023-02-13 19:48       ` [External] : " Drew Adams
2023-02-13 20:28         ` Dr. Arne Babenhauserheide
2023-02-13 21:17           ` Drew Adams
2023-02-13 21:21           ` Jean Louis
2023-02-13 21:14         ` Jean Louis
2023-02-14  5:21           ` Drew Adams
2023-02-13 19:49   ` Michael Welsh Duggan
2023-02-13 21:35     ` Jean Louis
2023-02-13 23:14     ` Konstantin Kharlamov
2023-02-14  0:00     ` Ergus
2023-02-14  6:29       ` Dr. Arne Babenhauserheide
2023-02-15  0:00         ` Karthik Chikmagalur

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=Y+qdZF6Aj85QroJh@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=drew.adams@oracle.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=mardani29@yahoo.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.