[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/slime 50d4a7b168 17/44: Fix emacs error when M-.-ing to no
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/slime 50d4a7b168 17/44: Fix emacs error when M-.-ing to nonexistent file |
Date: |
Fri, 29 Dec 2023 01:00:02 -0500 (EST) |
branch: elpa/slime
commit 50d4a7b16893612b61715c3818717c4d1afd67db
Author: Bike <aeshtaer@gmail.com>
Commit: Stas Boukarev <stassats@gmail.com>
Fix emacs error when M-.-ing to nonexistent file
When the Lisp reports a source location is in a file that doesn't
exist, and also gives the :align t hint, slime-location-offset
will try to (slime-forward-sexp) (beginning-of-sexp) in a new
empty buffer. This causes a pretty inscrutable
"Wrong type argument: characterp, nil" error from emacs. This
problem may also occur if the source file does not have sexp
syntax, but I haven't tried that myself.
The change just silently ignores any errors from the sexp motion.
It might be better to have slime report that the file isn't real
and not do any motion to begin with.
---
slime.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/slime.el b/slime.el
index 21b7af1e7a..e336ad7fe7 100644
--- a/slime.el
+++ b/slime.el
@@ -3388,8 +3388,11 @@ are supported:
(when edit-path (slime-search-edit-path edit-path))
(when call-site (slime-search-call-site call-site))
(when align
- (slime-forward-sexp)
- (beginning-of-sexp)))
+ (condition-case nil
+ (progn
+ (slime-forward-sexp)
+ (beginning-of-sexp))
+ (error (goto-char 0)))))
(point)))
- [nongnu] elpa/slime updated (28adf1dca0 -> 4349a0bbec), ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 173aad693d 01/44: Remove unused lexical variable ‘start’ from slime-print-apropos, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 3b91ecec83 04/44: clasp: define more of the backend interfaces, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 2d52732fc0 05/44: Add: local systems to swank-quicklisp systems list, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 360948cad0 07/44: abcl: fix source position from string buffer evalulation, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 1098d16666 10/44: slime-repl.el: fix READ., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 50d4a7b168 17/44: Fix emacs error when M-.-ing to nonexistent file,
ELPA Syncer <=
- [nongnu] elpa/slime b86b388234 19/44: asdf: Upcase INTERN'd symbols for ECL usage, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 7d39285af4 08/44: news: update for ABCL fixes, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 5cb01098e9 22/44: Fixed a problem with intering symbols into the user's package., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 875f14f593 28/44: No error when there's no continue/abort restarts., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime c753c7e912 30/44: Escape %-Constructs in the Mode Line (manual 24.4.5), ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 0880c32716 31/44: Fix typo in docs., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime ba3d0794e7 23/44: Fix parsing after reader conditionals., ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime aa3da5f7ae 06/44: abcl: normalize whitespace to SLIME conventions, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime ce024caf08 02/44: clasp: Use external interfaces where available, ELPA Syncer, 2023/12/29
- [nongnu] elpa/slime 2df69effea 03/44: clasp: cleanup old debugging code, ELPA Syncer, 2023/12/29