comparison lisp/menu-bar.el @ 14169:83f275dcd93a

Update FSF's address.
author Erik Naggum <erik@naggum.no>
date Sun, 14 Jan 1996 07:34:30 +0000
parents 4b5161e903c1
children 3eb791861e23
comparison
equal deleted inserted replaced
14168:3b925cc52931 14169:83f275dcd93a
1 ;;; menu-bar.el --- define a default menu bar. 1 ;;; menu-bar.el --- define a default menu bar.
2
3 ;; Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
2 4
3 ;; Author: RMS 5 ;; Author: RMS
4 ;; Keywords: internal 6 ;; Keywords: internal
5
6 ;; Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
7 7
8 ;; This file is part of GNU Emacs. 8 ;; This file is part of GNU Emacs.
9 9
10 ;; GNU Emacs is free software; you can redistribute it and/or modify 10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by 11 ;; it under the terms of the GNU General Public License as published by
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details. 18 ;; GNU General Public License for more details.
19 19
20 ;; You should have received a copy of the GNU General Public License 20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
23 24
24 ;; Avishai Yacobi suggested some menu rearrangements. 25 ;; Avishai Yacobi suggested some menu rearrangements.
26
27 ;;; Code:
25 28
26 ;;; User options: 29 ;;; User options:
27 30
28 (defvar buffers-menu-max-size 10 31 (defvar buffers-menu-max-size 10
29 "*Maximum number of entries which may appear on the Buffers menu. 32 "*Maximum number of entries which may appear on the Buffers menu.
30 If this is 10, then only the ten most-recently-selected buffers are shown. 33 If this is 10, then only the ten most-recently-selected buffers are shown.
31 If this is nil, then all buffers are shown. 34 If this is nil, then all buffers are shown.
32 A large number or nil slows down menu responsiveness.") 35 A large number or nil slows down menu responsiveness.")
33
34 ;;; Code:
35 36
36 ;; Don't clobber an existing menu-bar keymap, to preserve any menu-bar key 37 ;; Don't clobber an existing menu-bar keymap, to preserve any menu-bar key
37 ;; definitions made in loaddefs.el. 38 ;; definitions made in loaddefs.el.
38 (or (lookup-key global-map [menu-bar]) 39 (or (lookup-key global-map [menu-bar])
39 (define-key global-map [menu-bar] (make-sparse-keymap "menu-bar"))) 40 (define-key global-map [menu-bar] (make-sparse-keymap "menu-bar")))