aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-07-03 16:24:30 +0000
committerRichard M. Stallman2005-07-03 16:24:30 +0000
commit4668b9f92d1c8bf8370130a13168b8c8d6259aef (patch)
tree036bbf66de35bb7f4f2d153a272cacf2f605568b
parent5de35ba42edf2e1972db07512b07257a1ee7e2b0 (diff)
downloademacs-4668b9f92d1c8bf8370130a13168b8c8d6259aef.tar.gz
emacs-4668b9f92d1c8bf8370130a13168b8c8d6259aef.zip
(edt-last-copied-word): Add defvar.
(zmacs-region-stays): Likewise. (edt-mark-section-wisely): Use c-mark-function for C. Use makr-defun for Fortran. (time-string): defvar deleted. (edt-display-the-time): Don't set time-string.
-rw-r--r--lisp/emulation/edt.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el
index fdda9adb577..2b9a1118603 100644
--- a/lisp/emulation/edt.el
+++ b/lisp/emulation/edt.el
@@ -346,6 +346,11 @@ This means that an edt-user.el file was found in the user's `load-path'.")
346 346
347(defvar edt-keys-file nil 347(defvar edt-keys-file nil
348 "User's custom keypad and function keys mappings to emulate LK-201 keyboard.") 348 "User's custom keypad and function keys mappings to emulate LK-201 keyboard.")
349
350(defvar edt-last-copied-word nil
351 "Last word that the user copied.")
352
353(defvar zmacs-region-stays)
349 354
350;;;; 355;;;;
351;;;; EDT Emulation Commands 356;;;; EDT Emulation Commands
@@ -1635,9 +1640,8 @@ Argument NUM is the percentage into the buffer to move."
1635 1640
1636(defun edt-mark-section-wisely () 1641(defun edt-mark-section-wisely ()
1637 "Mark the section in a manner consistent with the `major-mode'. 1642 "Mark the section in a manner consistent with the `major-mode'.
1638Uses `mark-defun' for emacs-lisp and Lisp, 1643Uses `mark-defun' for Emacs-Lisp and Lisp, and for Fortran,
1639mark-c-function for C, 1644`c-mark-function' for C,
1640mark-fortran-subsystem for fortran,
1641and `mark-paragraph' for other modes." 1645and `mark-paragraph' for other modes."
1642 (interactive) 1646 (interactive)
1643 (if edt-select-mode 1647 (if edt-select-mode
@@ -1645,15 +1649,13 @@ and `mark-paragraph' for other modes."
1645 (edt-reset)) 1649 (edt-reset))
1646 (progn 1650 (progn
1647 (cond ((or (eq major-mode 'emacs-lisp-mode) 1651 (cond ((or (eq major-mode 'emacs-lisp-mode)
1652 (eq major-mode 'fortran-mode)
1648 (eq major-mode 'lisp-mode)) 1653 (eq major-mode 'lisp-mode))
1649 (mark-defun) 1654 (mark-defun)
1650 (message "Lisp defun selected")) 1655 (message "Lisp defun selected"))
1651 ((eq major-mode 'c-mode) 1656 ((eq major-mode 'c-mode)
1652 (mark-c-function) 1657 (c-mark-function)
1653 (message "C function selected")) 1658 (message "C function selected"))
1654 ((eq major-mode 'fortran-mode)
1655 (mark-fortran-subprogram)
1656 (message "Fortran subprogram selected"))
1657 (t (mark-paragraph) 1659 (t (mark-paragraph)
1658 (message "Paragraph selected")))))) 1660 (message "Paragraph selected"))))))
1659 1661
@@ -1780,8 +1782,7 @@ Argument NUM is the number of times to duplicate the line."
1780 "Display the current time." 1782 "Display the current time."
1781 (interactive) 1783 (interactive)
1782 (if edt-x-emacs19-p (setq zmacs-region-stays t)) 1784 (if edt-x-emacs19-p (setq zmacs-region-stays t))
1783 (set 'time-string (current-time-string)) 1785 (message "%s" (current-time-string)))
1784 (message "%s" time-string))
1785 1786
1786;;; 1787;;;
1787;;; LEARN 1788;;; LEARN