]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous commit
authorDaniel Colascione <dancol@dancol.org>
Mon, 23 Mar 2015 08:42:56 +0000 (01:42 -0700)
committerDaniel Colascione <dancol@dancol.org>
Mon, 23 Mar 2015 08:42:56 +0000 (01:42 -0700)
lisp/emacs-lisp/lisp-mode.el

index 52bc6a5405bc06caef52d1b669a470651304ce2b..e96c8ed5cef22ac5b4d8e29a3bd26077fdaaec1f 100644 (file)
   (setf pos (or pos (point)))
   (save-match-data
     (save-excursion
-      (goto-char pos)
-      (or (eql (char-before) ?\')
-          (let ((parent
-                 (ignore-errors
+      (ignore-errors
+        (goto-char pos)
+        (or (eql (char-before) ?\')
+            (let ((parent
                    (up-list -1)
-                   (cond
-                     ((looking-at (rx "(" (* (syntax -)) "("))
-                      (up-list -1)
-                      (when (looking-at "(\\_<let\\*?\\_>")
-                        (goto-char (match-end 0))
-                        'let))
-                     ((looking-at
-                       (rx "("
-                           (group-n 1 (+ (or (syntax w) (syntax _))))
-                           symbol-end))
-                      (prog1 (intern-soft (match-string-no-properties 1))
-                        (goto-char (match-end 1))))))))
-            (or (eq parent 'declare)
-                (and (eq parent 'let)
-                     (progn
-                       (forward-sexp 1)
-                       (< pos (point))))
-                (and (eq parent 'condition-case)
-                     (progn
-                       (forward-sexp 2)
-                       (< (point) pos)))))))))
+                    (cond
+                      ((looking-at (rx "(" (* (syntax -)) "("))
+                       (up-list -1)
+                       (when (looking-at "(\\_<let\\*?\\_>")
+                         (goto-char (match-end 0))
+                         'let))
+                      ((looking-at
+                        (rx "("
+                            (group-n 1 (+ (or (syntax w) (syntax _))))
+                            symbol-end))
+                       (prog1 (intern-soft (match-string-no-properties 1))
+                         (goto-char (match-end 1)))))))
+              (or (eq parent 'declare)
+                  (and (eq parent 'let)
+                       (progn
+                         (forward-sexp 1)
+                         (< pos (point))))
+                  (and (eq parent 'condition-case)
+                       (progn
+                         (forward-sexp 2)
+                         (< (point) pos))))))))))
 
 (defun lisp--el-match-keyword (limit)
   (catch 'found