]> git.eshelyaron.com Git - emacs.git/commit
Use 'hash-table-contains-p' in a few places
authorStefan Kangas <stefankangas@gmail.com>
Sat, 29 Mar 2025 12:50:21 +0000 (13:50 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 31 Mar 2025 08:38:15 +0000 (10:38 +0200)
commit4dd74be85219d961a08db6c5aa724f27607b3428
tree89270e7cb8b63f7974647711d6a2ba70810a556d
parent273cc5055ea3c554d3249e834ea62f2808f65bf0
Use 'hash-table-contains-p' in a few places

This replaces open coded versions of the common idiom
    (not (eq (gethash key table 'missing) 'missing))
with
    (hash-table-contains-p key table)
in files where we can rely on features in Emacs 31.

* lisp/emacs-lisp/map.el (map-contains-key):
* lisp/external-completion.el (external-completion-table):
* lisp/mh-e/mh-utils.el (mh-sub-folders)
(mh-remove-from-sub-folders-cache):
* lisp/net/ange-ftp.el (ange-ftp-hash-entry-exists-p):
* lisp/password-cache.el (password-in-cache-p, password-cache-add):
* lisp/pcmpl-x.el (pcmpl-x-tlmgr-action-options):
* lisp/xdg.el (xdg-mime-apps): Use 'hash-table-contains-p'.

(cherry picked from commit f60fc1287d499e8c93857b1b96e8bd2467b22c8d)
lisp/emacs-lisp/map.el
lisp/external-completion.el
lisp/net/ange-ftp.el
lisp/password-cache.el
lisp/pcmpl-x.el
lisp/xdg.el