emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/kmacro.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/kmacro.el
Date: Sat, 29 Jun 2002 16:43:59 -0400

Index: emacs/lisp/kmacro.el
diff -c emacs/lisp/kmacro.el:1.2 emacs/lisp/kmacro.el:1.3
*** emacs/lisp/kmacro.el:1.2    Fri Jun 28 18:45:16 2002
--- emacs/lisp/kmacro.el        Sat Jun 29 16:43:59 2002
***************
*** 26,32 ****
  
  ;; The kmacro package is an alternative user interface to emacs'
  ;; keyboard macro functionality.  This functionality is normally bound
! ;; to C-x (, C-x ), and C-x C-e, but these bindings are too hard to
  ;; type to be really useful for doing small repeated tasks.
  
  ;; With kmacro, two function keys are dedicated to keyboard macros,
--- 26,32 ----
  
  ;; The kmacro package is an alternative user interface to emacs'
  ;; keyboard macro functionality.  This functionality is normally bound
! ;; to C-x (, C-x ), and C-x e, but these bindings are too hard to
  ;; type to be really useful for doing small repeated tasks.
  
  ;; With kmacro, two function keys are dedicated to keyboard macros,
***************
*** 60,66 ****
  ;; The following sequence: M-5 F7 x M-2 F7 y F8 F8 F8 F8
  ;; inserts the following string:  x5yx7yx9yx11y
  
! ;; A macro can also be call using a mouse click, default S-mouse-3.
  ;; This calls the macro at the point where you click the mouse.
  
  ;; When you have defined another macro, which is thus called via F8,
--- 60,66 ----
  ;; The following sequence: M-5 F7 x M-2 F7 y F8 F8 F8 F8
  ;; inserts the following string:  x5yx7yx9yx11y
  
! ;; A macro can also be called using a mouse click, default S-mouse-3.
  ;; This calls the macro at the point where you click the mouse.
  
  ;; When you have defined another macro, which is thus called via F8,
***************
*** 111,119 ****
  
  ;;; Code:
  
! (provide 'kmacro)
! 
! ;;; Customization:
  
  (defgroup kmacro nil
    "Simplified keyboard macro user interface."
--- 111,117 ----
  
  ;;; Code:
  
! ;; Customization:
  
  (defgroup kmacro nil
    "Simplified keyboard macro user interface."
***************
*** 125,131 ****
  ;;;###autoload
  (defcustom kmacro-initialize nil
    "Setting this variable turns on the kmacro functionality.
! This binds the kmacro function keys in the global-map, so
  unsetting this variable does not have any effect!"
    :set #'(lambda (symbol value)
           (if value (kmacro-initialize))
--- 123,129 ----
  ;;;###autoload
  (defcustom kmacro-initialize nil
    "Setting this variable turns on the kmacro functionality.
! This binds the kmacro function keys in the `global-map', so
  unsetting this variable does not have any effect!"
    :set #'(lambda (symbol value)
           (if value (kmacro-initialize))
***************
*** 156,178 ****
  ;; State variables
  
  (defvar kmacro-counter 0
!   "*Current keyboard macro counter")
  
  (defvar kmacro-counter-format "%d"
!   "*Current keyboard macro counter format")
  
  (defvar kmacro-counter-format-start kmacro-counter-format
    "Macro format at start of macro execution.")
  
! (defvar kmacro-last-counter 0 "Last counter inserted by key macro")
! (defvar kmacro-append-to nil "Last key macro if appending to macro")
! (defvar kmacro-ring nil "Key macro ring")
  
  (defvar kmacro-ring-max 4
!   "*Maximum number of key macros to save in key macro ring")
  
  (defun kmacro-display (macro)
!   "Display a keyboard macro."
    (let (s)
      (if (stringp macro)
        (setq s (if (> (length macro) 50)
--- 154,176 ----
  ;; State variables
  
  (defvar kmacro-counter 0
!   "*Current keyboard macro counter.")
  
  (defvar kmacro-counter-format "%d"
!   "*Current keyboard macro counter format.")
  
  (defvar kmacro-counter-format-start kmacro-counter-format
    "Macro format at start of macro execution.")
  
! (defvar kmacro-last-counter 0 "Last counter inserted by key macro.")
! (defvar kmacro-append-to nil "Last key macro if appending to macro.")
! (defvar kmacro-ring nil "Key macro ring.")
  
  (defvar kmacro-ring-max 4
!   "*Maximum number of key macros to save in key macro ring.")
  
  (defun kmacro-display (macro)
!   "Display a keyboard MACRO."
    (let (s)
      (if (stringp macro)
        (setq s (if (> (length macro) 50)
***************
*** 195,201 ****
  
  
  (defun kmacro-start-macro (arg)
!   "Set kmacro-counter to ARG or 0 if missing, and start-kbd-macro.
  With \\[universal-argument], append to current keyboard macro (keep 
kmacro-counter).
  
  When defining/executing macro, insert macro counter and increment with 
--- 193,199 ----
  
  
  (defun kmacro-start-macro (arg)
!   "Set `kmacro-counter' to ARG or 0 if missing, and `start-kbd-macro'.
  With \\[universal-argument], append to current keyboard macro (keep 
kmacro-counter).
  
  When defining/executing macro, insert macro counter and increment with 
***************
*** 228,234 ****
  
  (defun kmacro-call-macro (arg)
    "End kbd macro if currently being defined; else call last kbd macro.
! With numeric prefix argument, repeat macro that many times.
  With \\[universal-argument], swap current macro with head of macro ring."
    (interactive "p")
    (cond 
--- 226,232 ----
  
  (defun kmacro-call-macro (arg)
    "End kbd macro if currently being defined; else call last kbd macro.
! With numeric prefix ARG, repeat macro that many times.
  With \\[universal-argument], swap current macro with head of macro ring."
    (interactive "p")
    (cond 
***************
*** 315,321 ****
              (t 0))))
  
  (defun kmacro-set-format (format)
!   "Set macro counter format"
    (interactive "sMacro Counter Format (printf format): ")
    (setq kmacro-counter-format
        (if (equal format "")
--- 313,319 ----
              (t 0))))
  
  (defun kmacro-set-format (format)
!   "Set macro counter FORMAT."
    (interactive "sMacro Counter Format (printf format): ")
    (setq kmacro-counter-format
        (if (equal format "")
***************
*** 355,357 ****
--- 353,357 ----
    (unless (eq call-mouse t)
      (global-set-key (vector call-mouse)               
'kmacro-end-call-mouse)))
  
+ (provide 'kmacro)
+ ;;; kmacro.el ends here



reply via email to

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