[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EWW func add url under point as bookmark
From: |
Emanuel Berg |
Subject: |
Re: EWW func add url under point as bookmark |
Date: |
Sat, 16 Apr 2022 20:51:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Alex wrote:
> (defun eww-bookmark-url-under-point (title)
> "Bookmark url under point calling it TITLE"
Emacs thinks:
First sentence should end with punctuation
(look who's talking LOL)
>>> (interactive "sTitle: ")
>>> (eww-bookmark-add (thing-at-point 'url) title))
>>
>> Maybe should check if `thing-at-point' found anything ...
>
> Already checked in func `eww-bookmark-add'
OK, good, but then better yet you could remove the
interface/wrapper function and instead make eww-bookmark-add
interactive (as well as non-interactive from Lisp), and for
interactive use it'll read the URL from point.
Ironically then you have to get the title the way you
initially did!
--
underground experts united
https://dataswamp.org/~incal
- EWW func add url under point as bookmark, Alex, 2022/04/14
- RE: [External] : EWW func add url under point as bookmark, Drew Adams, 2022/04/14
- Re: EWW func add url under point as bookmark, Alex, 2022/04/15
- Re: EWW func add url under point as bookmark, Emanuel Berg, 2022/04/15
- Re: EWW func add url under point as bookmark, Alex, 2022/04/16
- Re: EWW func add url under point as bookmark,
Emanuel Berg <=
- Re: EWW func add url under point as bookmark, Alex, 2022/04/18
- Re: EWW func add url under point as bookmark, Emanuel Berg, 2022/04/18
- Re: EWW func add url under point as bookmark, Alex, 2022/04/18
- Re: EWW func add url under point as bookmark, Emanuel Berg, 2022/04/20
- Re: EWW func add url under point as bookmark, Emanuel Berg, 2022/04/17
Re: EWW func add url under point as bookmark, Emanuel Berg, 2022/04/15