comparison lisp/progmodes/ebrowse.el @ 90180:62afea0771d8

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-51 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 289-301) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 68) - Update from CVS
author Miles Bader <miles@gnu.org>
date Thu, 12 May 2005 03:41:19 +0000
parents 02f1dbc4a199 c0b42702a33a
children f042e7c0fe20
comparison
equal deleted inserted replaced
90179:b745036dab36 90180:62afea0771d8
3935 (defvar ebrowse-electric-position-mode-map () 3935 (defvar ebrowse-electric-position-mode-map ()
3936 "Keymap used in electric position stack window.") 3936 "Keymap used in electric position stack window.")
3937 3937
3938 3938
3939 (defvar ebrowse-electric-position-mode-hook nil 3939 (defvar ebrowse-electric-position-mode-hook nil
3940 "If non-nil, its value is called by ebrowse-electric-position-mode.") 3940 "If non-nil, its value is called by `ebrowse-electric-position-mode'.")
3941 3941
3942 3942
3943 (unless ebrowse-electric-position-mode-map 3943 (unless ebrowse-electric-position-mode-map
3944 (let ((map (make-keymap)) 3944 (let ((map (make-keymap))
3945 (submap (make-keymap))) 3945 (submap (make-keymap)))
4183 static-variables))))) 4183 static-variables)))))
4184 4184
4185 4185
4186 (defun ebrowse-print-statistics-line (title value) 4186 (defun ebrowse-print-statistics-line (title value)
4187 "Print a line in the statistics buffer. 4187 "Print a line in the statistics buffer.
4188 TITLE is the title of the line, VALUE is number to be printed 4188 TITLE is the title of the line, VALUE is a number to be printed
4189 after that." 4189 after that."
4190 (insert title) 4190 (insert title)
4191 (indent-to 40) 4191 (indent-to 40)
4192 (insert (format "%d\n" value))) 4192 (insert (format "%d\n" value)))
4193 4193
4317 (goto-line n) 4317 (goto-line n)
4318 (throw 'electric-buffer-menu-select (point)))) 4318 (throw 'electric-buffer-menu-select (point))))
4319 4319
4320 4320
4321 (defun ebrowse-install-1-to-9-keys () 4321 (defun ebrowse-install-1-to-9-keys ()
4322 "Define keys 1..9 to select the 1st to 0nth entry in the list." 4322 "Define keys 1..9 to select the 1st to 9nth entry in the list."
4323 (dotimes (i 9) 4323 (dotimes (i 9)
4324 (define-key (current-local-map) (char-to-string (+ i ?1)) 4324 (define-key (current-local-map) (char-to-string (+ i ?1))
4325 'ebrowse-select-1st-to-9nth))) 4325 'ebrowse-select-1st-to-9nth)))
4326 4326
4327 4327