aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2003-02-03 16:31:35 +0000
committerJuanma Barranquero2003-02-03 16:31:35 +0000
commitcc234da90529fa69464d04998ded540502c8f73b (patch)
tree523c85da3bb700813383f8475dcfe4c708a8803b
parent500ae430226617718993d117121e013289327900 (diff)
downloademacs-cc234da90529fa69464d04998ded540502c8f73b.tar.gz
emacs-cc234da90529fa69464d04998ded540502c8f73b.zip
(calculator): Don't use the minibuffer even in electric mode; use a private
buffer and display it in the minibuffer window using `set-window-buffer'.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/calculator.el6
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3071991ba35..560ccf3711b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12003-02-03 Juanma Barranquero <lektu@terra.es>
2
3 * calculator.el (calculator): Don't use the minibuffer even in
4 electric mode; use a private buffer and display it in the minibuffer
5 window using `set-window-buffer'.
6
12003-02-03 Dave Love <fx@gnu.org> 72003-02-03 Dave Love <fx@gnu.org>
2 8
3 * emacs-lisp/benchmark.el: New. 9 * emacs-lisp/benchmark.el: New.
@@ -122,8 +128,6 @@
122 128
123 * antlr-mode.el (antlr): Moved to SourceForge.net 129 * antlr-mode.el (antlr): Moved to SourceForge.net
124 130
125 Changes from 2002-02-28:
126
127 * antlr-mode.el: Minor bug fixes: insert options and indentation. 131 * antlr-mode.el: Minor bug fixes: insert options and indentation.
128 (antlr-option-location): Don't use point as position where to 132 (antlr-option-location): Don't use point as position where to
129 insert options if point is in comment. 133 insert options if point is in comment.
diff --git a/lisp/calculator.el b/lisp/calculator.el
index 0aca51b2a46..64f6ea8af1b 100644
--- a/lisp/calculator.el
+++ b/lisp/calculator.el
@@ -668,14 +668,13 @@ See the documentation for `calculator-mode' for more information."
668 ;; don't change this since it is a customization variable, 668 ;; don't change this since it is a customization variable,
669 ;; its set function will add any new operators 669 ;; its set function will add any new operators
670 (calculator-add-operators calculator-user-operators))) 670 (calculator-add-operators calculator-user-operators)))
671 (setq calculator-buffer (get-buffer-create "*calculator*"))
671 (if calculator-electric-mode 672 (if calculator-electric-mode
672 (save-window-excursion 673 (save-window-excursion
673 (progn (require 'electric) (message nil)) ; hide load message 674 (progn (require 'electric) (message nil)) ; hide load message
674 (let (old-g-map old-l-map (echo-keystrokes 0) 675 (let (old-g-map old-l-map (echo-keystrokes 0)
675 (garbage-collection-messages nil)) ; no gc msg when electric 676 (garbage-collection-messages nil)) ; no gc msg when electric
676 ;; strange behavior in FSF: doesn't always select correct 677 (set-window-buffer (minibuffer-window) calculator-buffer)
677 ;; minibuffer. I have no idea how to fix this
678 (setq calculator-buffer (window-buffer (minibuffer-window)))
679 (select-window (minibuffer-window)) 678 (select-window (minibuffer-window))
680 (calculator-reset) 679 (calculator-reset)
681 (calculator-update-display) 680 (calculator-update-display)
@@ -697,7 +696,6 @@ See the documentation for `calculator-mode' for more information."
697 (use-local-map old-l-map) 696 (use-local-map old-l-map)
698 (use-global-map old-g-map)))) 697 (use-global-map old-g-map))))
699 (progn 698 (progn
700 (setq calculator-buffer (get-buffer-create "*calculator*"))
701 (cond 699 (cond
702 ((not (get-buffer-window calculator-buffer)) 700 ((not (get-buffer-window calculator-buffer))
703 (let ((split-window-keep-point nil) 701 (let ((split-window-keep-point nil)