emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/calc/calc-ext.el [emacs-unicode-2]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/calc/calc-ext.el [emacs-unicode-2]
Date: Fri, 22 Oct 2004 06:43:07 -0400

Index: emacs/lisp/calc/calc-ext.el
diff -c emacs/lisp/calc/calc-ext.el:1.13.4.1 
emacs/lisp/calc/calc-ext.el:1.13.4.2
*** emacs/lisp/calc/calc-ext.el:1.13.4.1        Fri Apr 16 12:50:11 2004
--- emacs/lisp/calc/calc-ext.el Fri Oct 22 10:13:34 2004
***************
*** 640,668 ****
             (define-key calc-mode-map (format "u%c" x) 'calc-quick-units)))
          "0123456789")
  
-  (or calc-emacs-type-19 (progn
    (let ((i ?A))
!     (while (and (<= i ?z) (vectorp calc-mode-map))
!       (if (eq (car-safe (aref calc-mode-map i)) 'keymap)
!         (aset calc-mode-map i
!               (cons 'keymap (cons (cons ?\e (aref calc-mode-map i))
!                                   (cdr (aref calc-mode-map i))))))
        (setq i (1+ i))))
! 
!   (setq calc-alg-map (copy-sequence calc-mode-map)
!       calc-alg-esc-map (copy-sequence esc-map))
    (let ((i 32))
      (while (< i 127)
        (or (memq i '(?' ?` ?= ??))
!         (aset calc-alg-map i 'calc-auto-algebraic-entry))
        (or (memq i '(?# ?x ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9))
!         (aset calc-alg-esc-map i (aref calc-mode-map i)))
        (setq i (1+ i))))
    (define-key calc-alg-map "\e" calc-alg-esc-map)
    (define-key calc-alg-map "\e\t" 'calc-roll-up)
    (define-key calc-alg-map "\e\C-m" 'calc-last-args-stub)
    (define-key calc-alg-map "\e\177" 'calc-pop-above)
-  ))
  
    ;; The following is a relic for backward compatability only.
    ;; The calc-define property list is now the recommended method.
--- 640,666 ----
             (define-key calc-mode-map (format "u%c" x) 'calc-quick-units)))
          "0123456789")
  
    (let ((i ?A))
!     (while (<= i ?z)
!       (if (eq (car-safe (aref (nth 1 calc-mode-map) i)) 'keymap)
!         (aset (nth 1 calc-mode-map) i
!               (cons 'keymap (cons (cons ?\e (aref (nth 1 calc-mode-map) i))
!                                   (cdr (aref (nth 1 calc-mode-map) i))))))
        (setq i (1+ i))))
!   
!   (setq calc-alg-map (copy-keymap calc-mode-map)
!       calc-alg-esc-map (copy-keymap esc-map))
    (let ((i 32))
      (while (< i 127)
        (or (memq i '(?' ?` ?= ??))
!         (aset (nth 1 calc-alg-map) i 'calc-auto-algebraic-entry))
        (or (memq i '(?# ?x ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9))
!         (aset (nth 1 calc-alg-esc-map) i (aref (nth 1 calc-mode-map) i)))
        (setq i (1+ i))))
    (define-key calc-alg-map "\e" calc-alg-esc-map)
    (define-key calc-alg-map "\e\t" 'calc-roll-up)
    (define-key calc-alg-map "\e\C-m" 'calc-last-args-stub)
    (define-key calc-alg-map "\e\177" 'calc-pop-above)
  
    ;; The following is a relic for backward compatability only.
    ;; The calc-define property list is now the recommended method.
***************
*** 1395,1402 ****
                       (and (>= last-command-char 0) (< last-command-char ? )
                            (not (memq last-command-char '(?\e)))))
                   (calc-wrapper))  ; clear flags if not a Calc command.
!              (if calc-emacs-type-19
!                  (setq last-command-event (cdr event)))
               (if (or (not (integerp last-command-char))
                       (eq last-command-char ?-))
                   (calc-unread-command)
--- 1393,1399 ----
                       (and (>= last-command-char 0) (< last-command-char ? )
                            (not (memq last-command-char '(?\e)))))
                   (calc-wrapper))  ; clear flags if not a Calc command.
!                (setq last-command-event (cdr event))
               (if (or (not (integerp last-command-char))
                       (eq last-command-char ?-))
                   (calc-unread-command)




reply via email to

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