diff options
author | Mark Oteiza <mvoteiza@udel.edu> | 2017-09-12 13:08:47 -0400 |
---|---|---|
committer | Mark Oteiza <mvoteiza@udel.edu> | 2017-09-12 13:18:10 -0400 |
commit | 370d0e7aa7309b25fb9e974164261077b326e8e2 (patch) | |
tree | 47b2bbce79feb9a889a06f67b650a892c95ccc4d /lisp/svg.el | |
parent | 4612b2a2b37026bef5a9b8e92878a15dabb9b261 (diff) | |
download | emacs-370d0e7aa7309b25fb9e974164261077b326e8e2.tar.gz emacs-370d0e7aa7309b25fb9e974164261077b326e8e2.tar.bz2 emacs-370d0e7aa7309b25fb9e974164261077b326e8e2.zip |
Update uses of if-let and when-let
* lisp/dom.el (dom-previous-sibling):
* lisp/emacs-lisp/package.el (package--with-work-buffer):
(package--sort-deps-in-alist, package--sort-by-dependence):
(package-install-from-archive, package-install):
(package-menu-execute, package-menu--populate-new-package-list):
* lisp/filenotify.el (file-notify--rm-descriptor):
(file-notify--event-watched-file, file-notify--event-file-name):
(file-notify--event-file1-name, file-notify-rm-watch):
(file-notify-valid-p):
* lisp/gnus/message.el (message-toggle-image-thumbnails):
* lisp/gnus/nnimap.el (nnimap-request-move-article):
* lisp/ibuf-ext.el (ibuffer-repair-saved-filters):
* lisp/mpc.el (mpc-format):
* lisp/net/eww.el (eww-tag-meta, eww-process-text-input):
(eww-save-history):
* lisp/net/shr.el (shr-tag-base, shr-tag-object, shr-make-table-1):
* lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook):
* lisp/svg.el (svg-remove):
* lisp/textmodes/css-mode.el (css--named-color):
(css--colon-inside-funcall):
* lisp/textmodes/sgml-mode.el (html-current-buffer-classes):
(html-current-buffer-ids): Use if-let* and when-let* instead.
Diffstat (limited to 'lisp/svg.el')
-rw-r--r-- | lisp/svg.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/svg.el b/lisp/svg.el index fc1a6d60e1a..8310eba6292 100644 --- a/lisp/svg.el +++ b/lisp/svg.el @@ -264,10 +264,10 @@ If the SVG is later changed, the image will also be updated." (defun svg-remove (svg id) "Remove the element identified by ID from SVG." - (when-let ((node (car (dom-by-id - svg - (concat "\\`" (regexp-quote id) - "\\'"))))) + (when-let* ((node (car (dom-by-id + svg + (concat "\\`" (regexp-quote id) + "\\'"))))) (dom-remove-node svg node))) (provide 'svg) |