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: "T.V Raman" <raman AT google.com>
  • To: parham90 AT gmail.com
  • Cc: emacspeak AT emacspeak.net
  • Subject: [Emacspeak] Patch: do not throw an error if there is no matching paren
  • Date: Sun, 14 Jan 2024 18:37:57 -0800

Thanks for patching that, has been on my list to fix but wasn't
annoying enough to force me to get around to it.


"Parham Doustdar" (via emacspeak Mailing List) writes:
> 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]
> ----------------------------------------------------------------------
> Emacspeak discussion list -- emacspeak AT emacspeak.net
> To unsubscribe send email to:
> emacspeak-request AT emacspeak.net with a subject of: unsubscribe

--

--



Archive powered by MHonArc 2.6.19+.

Top of Page