emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master a283996: Add command for customizing current newsticker feed


From: Basil L. Contovounesios
Subject: Re: master a283996: Add command for customizing current newsticker feed
Date: Tue, 23 Feb 2021 17:05:48 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

ulf.jasper@web.de (Ulf Jasper) writes:

> branch: master
> commit a283996fc728e249816d3bd43a6da1f3c0eab837
> Author: Ulf Jasper <ulf.jasper@web.de>
> Commit: Ulf Jasper <ulf.jasper@web.de>
>
>     Add command for customizing current newsticker feed

[...]

> +(defun newsticker-customize-feed (feed-name)
> +  "Open customization buffer for `newsticker-url-list' and jump to 
> FEED-NAME."
> +  (interactive
> +   (list (completing-read "Name of feed or group to edit: "
> +                          (append (mapcar #'car newsticker-url-list)

FWIW, completing-read also accepts alists with string/symbol keys
directly.

> +                                  nil t feed-name))))

This call to (append (..) nil t feed-name) will signal an error.

> +  (customize-variable 'newsticker-url-list)
> +  (delete-other-windows)

Doesn't this interfere with the user's display-buffer-alist
customisations?  customize-variable uses pop-to-buffer, so in
theory no further window adjustment should be necessary.

> +  (when (re-search-forward (concat "Label: " feed-name) nil t)

Should this be 'search-forward' instead?

Thanks,

-- 
Basil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]