emacs-diffs
[Top][All Lists]
Advanced

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

scratch/pkg ee1b70fb1f9: No package warnings when eval'ing elisp


From: Gerd Moellmann
Subject: scratch/pkg ee1b70fb1f9: No package warnings when eval'ing elisp
Date: Mon, 18 Dec 2023 08:57:47 -0500 (EST)

branch: scratch/pkg
commit ee1b70fb1f934a929893fc45a35e7c59e690aa07
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>

    No package warnings when eval'ing elisp
---
 lisp/progmodes/elisp-mode.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index 1532412bd2c..deedaa64bd6 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -1608,10 +1608,8 @@ POS specifies the starting position where EXP was found 
and defaults to point."
           (package (buffer-package (current-buffer))))
       (when (or (re-search-backward regexp nil t)
                 (re-search-forward regexp nil t))
-       (let ((name (read (match-string 1))))
-         (if-let (pkg (find-package name))
-             (setq package pkg)
-           (warn "Package %S is not defined" name))))
+       (when-let (pkg (find-package (read (match-string 1))))
+         (setq package pkg)))
       package)))
 
 (defun eval-last-sexp (eval-last-sexp-arg-internal)



reply via email to

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