(defvar edt-keys-file nil
"User's custom keypad and function keys mappings to emulate LK-201 keyboard.")
+
+(defvar edt-last-copied-word nil
+ "Last word that the user copied.")
+
+(defvar zmacs-region-stays)
\f
;;;;
;;;; EDT Emulation Commands
(defun edt-mark-section-wisely ()
"Mark the section in a manner consistent with the `major-mode'.
-Uses `mark-defun' for emacs-lisp and Lisp,
-mark-c-function for C,
-mark-fortran-subsystem for fortran,
+Uses `mark-defun' for Emacs-Lisp and Lisp, and for Fortran,
+`c-mark-function' for C,
and `mark-paragraph' for other modes."
(interactive)
(if edt-select-mode
(edt-reset))
(progn
(cond ((or (eq major-mode 'emacs-lisp-mode)
+ (eq major-mode 'fortran-mode)
(eq major-mode 'lisp-mode))
(mark-defun)
(message "Lisp defun selected"))
((eq major-mode 'c-mode)
- (mark-c-function)
+ (c-mark-function)
(message "C function selected"))
- ((eq major-mode 'fortran-mode)
- (mark-fortran-subprogram)
- (message "Fortran subprogram selected"))
(t (mark-paragraph)
(message "Paragraph selected"))))))
"Display the current time."
(interactive)
(if edt-x-emacs19-p (setq zmacs-region-stays t))
- (set 'time-string (current-time-string))
- (message "%s" time-string))
+ (message "%s" (current-time-string)))
;;;
;;; LEARN