aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2020-11-07 17:26:45 +0200
committerEli Zaretskii2020-11-07 17:26:45 +0200
commit7be8d8a801d0e4ec38b8ec79ef29d87b5fdf35b7 (patch)
tree63d9240b9bb5c90a12674866409c8c9edf009c45
parenta5867ddfbd721568005175bf6c725f7834b21ea4 (diff)
parente8f5657bc7f6e0e45f70e4849736c6e87d44a1ac (diff)
downloademacs-7be8d8a801d0e4ec38b8ec79ef29d87b5fdf35b7.tar.gz
emacs-7be8d8a801d0e4ec38b8ec79ef29d87b5fdf35b7.zip
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
-rw-r--r--lisp/emacs-lisp/lisp-mode.el7
-rw-r--r--test/lisp/custom-tests.el9
2 files changed, 14 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 268992295bf..daf49670894 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -178,13 +178,16 @@
178 178
179(defun lisp--match-hidden-arg (limit) 179(defun lisp--match-hidden-arg (limit)
180 (let ((res nil)) 180 (let ((res nil))
181 (forward-line 0)
181 (while 182 (while
182 (let ((ppss (parse-partial-sexp (line-beginning-position) 183 (let ((ppss (parse-partial-sexp (point)
183 (line-end-position) 184 (line-end-position)
184 -1))) 185 -1)))
185 (skip-syntax-forward " )") 186 (skip-syntax-forward " )")
186 (if (or (>= (car ppss) 0) 187 (if (or (>= (car ppss) 0)
187 (looking-at ";\\|$")) 188 (eolp)
189 (looking-at ";")
190 (nth 8 (syntax-ppss))) ;Within a string or comment.
188 (progn 191 (progn
189 (forward-line 1) 192 (forward-line 1)
190 (< (point) limit)) 193 (< (point) limit))
diff --git a/test/lisp/custom-tests.el b/test/lisp/custom-tests.el
index a1451cf0ce6..7691f167738 100644
--- a/test/lisp/custom-tests.el
+++ b/test/lisp/custom-tests.el
@@ -156,4 +156,13 @@
156 (load custom-test-admin-cus-test) 156 (load custom-test-admin-cus-test)
157 (should (null (cus-test-opts t)))) 157 (should (null (cus-test-opts t))))
158 158
159(ert-deftest custom-test-enable-theme-keeps-settings ()
160 "Test that enabling a theme doesn't change its settings."
161 (let* ((custom-theme-load-path `(,(ert-resource-directory)))
162 settings)
163 (load-theme 'custom--test 'no-confirm 'no-enable)
164 (setq settings (get 'custom--test 'theme-settings))
165 (enable-theme 'custom--test)
166 (should (equal settings (get 'custom--test 'theme-settings)))))
167
159;;; custom-tests.el ends here 168;;; custom-tests.el ends here