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/net/shr.el | |
parent | 4612b2a2b37026bef5a9b8e92878a15dabb9b261 (diff) | |
download | emacs-370d0e7aa7309b25fb9e974164261077b326e8e2.tar.gz |
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/net/shr.el')
-rw-r--r-- | lisp/net/shr.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index fe93fc32ad3..cb915da1c1c 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -1363,7 +1363,7 @@ ones, in case fg and bg are nil." plist))) (defun shr-tag-base (dom) - (when-let (base (dom-attr dom 'href)) + (when-let* ((base (dom-attr dom 'href))) (setq shr-base (shr-parse-base base))) (shr-generic dom)) @@ -1388,7 +1388,7 @@ ones, in case fg and bg are nil." (unless shr-inhibit-images (let ((start (point)) url multimedia image) - (when-let (type (dom-attr dom 'type)) + (when-let* ((type (dom-attr dom 'type))) (when (string-match "\\`image/svg" type) (setq url (dom-attr dom 'data) image t))) @@ -2178,7 +2178,7 @@ flags that control whether to collect or render objects." (when (and (not (stringp column)) (or (memq (dom-tag column) '(td th)) (not column))) - (when-let (span (dom-attr column 'rowspan)) + (when-let* ((span (dom-attr column 'rowspan))) (aset rowspans i (+ (aref rowspans i) (1- (string-to-number span))))) ;; Sanity check for invalid column-spans. |