emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/go-mode 8a1c5df 159/495: minor style changes from CL


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 8a1c5df 159/495: minor style changes from CL
Date: Sat, 7 Aug 2021 09:05:04 -0400 (EDT)

branch: elpa/go-mode
commit 8a1c5df5f8e1fe08098e8ec2d279d043ee3333a7
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    minor style changes from CL
---
 go-mode.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index 33ab4ae..5778243 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -96,9 +96,8 @@
       (concat "\\<" s "\\>")
     (concat "\\_<" s "\\_>")))
 
-;; Move up one level of parentheses. The optional argument ARG has no
-;; function.
-(defun go-goto-opening-parenthesis (&optional ARG)
+;; Move up one level of parentheses.
+(defun go-goto-opening-parenthesis (&optional legacy-unused)
   ;; The old implementation of go-goto-opening-parenthesis had an
   ;; optional argument to speed up the function. It didn't change the
   ;; function's outcome.
@@ -106,7 +105,7 @@
   ;; Silently fail if there's no matching opening parenthesis.
   (condition-case nil
       (backward-up-list)
-    (error nil)))
+    (scan-error nil)))
 
 
 (defconst go-dangling-operators-regexp "[^-]-\\|[^+]\\+\\|[/*&><.=|^]")



reply via email to

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