From: Ivan Shmakov <ivan@siamics.net>
To: 20032@debbugs.gnu.org
Subject: bug#20032: eww: access bookmarks right from the URI prompt
Date: Sat, 26 Dec 2015 08:57:41 +0000 [thread overview]
Message-ID: <87oaddziwq.fsf@violet.siamics.net> (raw)
In-Reply-To: <878u4jdoij.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 25 Dec 2015 07:35:16 +0100")
>>>>> Lars Ingebrigtsen <larsi@gnus.org> writes:
>>>>> Ivan Shmakov <ivan@siamics.net> writes:
>> Please consider the revised patch MIMEd.
>> * lisp/net/eww.el (eww-suggest-uris): Add eww-suggest-bookmarks to
>> the default value and :options. (Bug#20032)
>> (eww-suggested-bookmarks-annotation): New customizable variable.
>> (eww-suggest-bookmarks, eww-remove-annotation)
>> (eww-substring-nil-property): New functions.
>> (eww-suggested-uris, eww): Use eww-remove-annotation.
> I get a compilation warning after applying the patch... (The defvar
> for eww-bookmarks should be moved.)
Yes.
> But conceptually I'm not sure this is a good idea. If you have a
> bookmarks file, then if you say `M-x eww', you will apparently
> default to the first entry in the bookmarks file?
Indeed; unless the point is on a URI, where you’d get that URI
as the default.
Speaking of the bookmarks file, eww-suggested-bookmarks is
missing a eww-read-bookmarks call in that patch.
> That doesn't seem very helpful.
Actually, it is: I’ve set the eww-bookmarks variable so that the
resources I visit the most often are at the top of the list, and
now I can access them with just a few M-ns, or, for the topmost,
just RET.
> It would be OK to have that as the first entry in the `M-n' history,
> but not as the default. If I read the code correctly.
I guess that could be fixed by using a modified version of
read-string and flagging the values returned by
eww-suggest-bookmarks in such a way as to never be considered as
the default by that function. I doubt that that’s worth the
effort, however. (Unless such a function already exists.)
What bothers me more is that the sheer corpus of contemporary
software will generally filter the list of bookmarks per the
search terms typed in by the user first, and only then present
the result for their respective equivalents of M-n. Which gets
handy if your bookmarks (or history, or pretty much anything of
that kind) number in the hundreds (or more.) I know of no
similar facility in the current Emacs, however.
--
FSF associate member #7257 http://am-1.org/~ivan/ … 3013 B6A0 230E 334A
next prev parent reply other threads:[~2015-12-26 8:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-07 19:45 bug#20032: eww: access bookmarks right from the URI prompt Ivan Shmakov
2015-03-08 10:25 ` Ivan Shmakov
2015-12-25 6:35 ` Lars Ingebrigtsen
2015-12-26 8:57 ` Ivan Shmakov [this message]
2015-12-26 13:05 ` Lars Ingebrigtsen
2015-12-26 16:48 ` Ivan Shmakov
2015-12-26 17:00 ` Lars Ingebrigtsen
2016-02-02 4:33 ` Lars Ingebrigtsen
2017-01-24 22:44 ` Lars Ingebrigtsen
2015-12-25 6:25 ` Lars Ingebrigtsen
2015-12-26 9:42 ` Ivan Shmakov
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oaddziwq.fsf@violet.siamics.net \
--to=ivan@siamics.net \
--cc=20032@debbugs.gnu.org \
/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.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).