Skip to Content.
Sympa Menu

emacspeak - [Emacspeak] Patch: do not throw an error if there is no matching paren

Subject: Emacspeak discussion list

List archive

[Emacspeak] Patch: do not throw an error if there is no matching paren


Chronological Thread 
  • From: Parham Doustdar <parham90 AT gmail.com>
  • To: Emacspeaks <emacspeak AT emacspeak.net>
  • Subject: [Emacspeak] Patch: do not throw an error if there is no matching paren
  • Date: Sun, 14 Jan 2024 19:26:14 +0100

Hi,
Here is another simple patch to fix a recurring issue for me. To reproduce
the issue, go to the scratch buffer and type “test)”. Notice that as you type
in the closing parenthesis which doesn’t have a matching open one, you get an
error.
Here is the fix:
1 file changed, 2 insertions(+), 1 deletion(-)
lisp/emacspeak-speak.el | 3 ++-

modified lisp/emacspeak-speak.el
@@ -616,7 +616,8 @@ the sense of the filter. "
"Show matched paren with context."
(interactive)
(let ((data (show-paren--default)))
- (when data
+ (when (and data
+ (cl-third data))
(save-excursion
(goto-char (cl-third data))
(dtk-speak

[back]


Archive powered by MHonArc 2.6.19+.

Top of Page