]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/calc-store.el (calc-insert-permanent-variable): Heed case.
authorWolfgang Jenkner <wjenkner@inode.at>
Mon, 29 Jun 2015 12:26:29 +0000 (14:26 +0200)
committerWolfgang Jenkner <wjenkner@inode.at>
Mon, 29 Jun 2015 12:26:29 +0000 (14:26 +0200)
Otherwise `s p' of f and F will stomp on each other's value.  (Bug#20916)

lisp/calc/calc-store.el

index 11bf96455b723d92f03163abd8dd66b99b5ef7c6..91b927aad612520c9f7461b8c4ec709df121e32c 100644 (file)
 
 (defun calc-insert-permanent-variable (var)
   (goto-char (point-min))
-  (if (search-forward (concat "(setq " (symbol-name var) " '") nil t)
+  (if (let (case-fold-search)
+        (search-forward (concat "(setq " (symbol-name var) " '") nil t))
       (progn
        (setq calc-pv-pos (point-marker))
        (forward-line -1)