Show
Ignore:
Timestamp:
05/03/06 18:37:43 (3 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk

    • Property svn:ignore changed from
      bin
      to
      bin
      site-lisp
  • trunk/lisp/calc/calc-embed.el

    r4037 r4073  
    207207(defvar calc-embedded-firsttime-formula) 
    208208 
     209;; The following is to take care of any minor modes which override 
     210;; a Calc command. 
     211(defvar calc-override-minor-modes-map  
     212  (make-sparse-keymap) 
     213  "A list of keybindings that might be overwritten by minor modes.") 
     214 
     215;; Add any keys that might be overwritten here. 
     216(define-key calc-override-minor-modes-map "`" 'calc-edit) 
     217 
     218(defvar calc-override-minor-modes  
     219  (cons t calc-override-minor-modes-map)) 
     220 
    209221(defun calc-do-embedded (calc-embed-arg end obeg oend) 
    210222  (if calc-embedded-info 
     
    238250                     buffer-read-only nil) 
    239251               (use-local-map (nth 1 mode)) 
     252               (setq minor-mode-overriding-map-alist 
     253                     (remq calc-override-minor-modes minor-mode-overriding-map-alist)) 
    240254               (set-buffer-modified-p (buffer-modified-p)) 
    241255               (calc-embedded-restore-original-modes) 
     
    298312      (set-buffer-modified-p (buffer-modified-p)) 
    299313      (use-local-map calc-mode-map) 
     314      (setq minor-mode-overriding-map-alist 
     315            (cons calc-override-minor-modes 
     316                  minor-mode-overriding-map-alist)) 
    300317      (setq calc-no-refresh-evaltos nil) 
    301318      (and chg calc-any-evaltos (calc-wrapper (calc-refresh-evaltos))) 
     
    933950                (if (string-match "[^ \t\n]" str) 
    934951                    (setq pref-len 0 
    935                           val (math-read-big-expr str)) 
     952                          val (condition-case nil 
     953                                  (math-read-big-expr str) 
     954                                (error (math-read-expr str)))) 
    936955                  (setq val nil)))) 
    937956            (if (eq (car-safe val) 'error)