|
From: | Emanuel Berg |
Subject: | Re: EWW func add url under point as bookmark |
Date: | Mon, 18 Apr 2022 22:47:39 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Alex wrote: > (defun eww-bookmark-add (url title) > "Bookmark `URL' as `TITLE'." Just URL and TITLE is fine otherwise it looks like they are part of Emacs. > (interactive (list (thing-at-point 'url) > (read-string "Title: "))) > (unless (stringp url) > (user-error "invalid url string required")) > (unless (stringp title) > (user-error "invalid title string required")) > (eww-read-bookmarks) >From the `user-error' docstring: In Emacs, the convention is that error messages start with a capital letter but *do not* end with a period. >> Ironically then you have to get the title the way you >> initially did! > > right lol :) -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |