comparison man/faq.texi @ 89945:59dcbfe97385

Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-17 Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-417 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-419 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-420 Tweak permissions * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-421 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-430 Update from CVS
author Miles Bader <miles@gnu.org>
date Tue, 29 Jun 2004 16:46:06 +0000
parents 4c90ffeb71c5 b1ae5333057a
children d8411455de48
comparison
equal deleted inserted replaced
89944:ecb75580442e 89945:59dcbfe97385
2365 @cindex Menus and keymaps 2365 @cindex Menus and keymaps
2366 @cindex Keymaps and menus 2366 @cindex Keymaps and menus
2367 2367
2368 Each menu title (e.g., @samp{File}, @samp{Edit}, @samp{Buffers}) 2368 Each menu title (e.g., @samp{File}, @samp{Edit}, @samp{Buffers})
2369 represents a local or global keymap. Selecting a menu title with the 2369 represents a local or global keymap. Selecting a menu title with the
2370 mouse displays that keymap's non-nil contents in the form of a menu. 2370 mouse displays that keymap's non-@code{nil} contents in the form of a menu.
2371 2371
2372 So to add a menu option to an existing menu, all you have to do is add a 2372 So to add a menu option to an existing menu, all you have to do is add a
2373 new definition to the appropriate keymap. Adding a @samp{Forward Word} 2373 new definition to the appropriate keymap. Adding a @samp{Forward Word}
2374 item to the @samp{Edit} menu thus requires the following Lisp code: 2374 item to the @samp{Edit} menu thus requires the following Lisp code:
2375 2375
3171 arbitrary Emacs Lisp code evaluated when the file is visited. 3171 arbitrary Emacs Lisp code evaluated when the file is visited.
3172 Obviously, there is a potential for Trojan horses to exploit this 3172 Obviously, there is a potential for Trojan horses to exploit this
3173 feature. 3173 feature.
3174 3174
3175 Emacs 18 allowed this feature by default; users could disable it by 3175 Emacs 18 allowed this feature by default; users could disable it by
3176 setting the variable @code{inhibit-local-variables} to a non-nil value. 3176 setting the variable @code{inhibit-local-variables} to a non-@code{nil} value.
3177 3177
3178 As of Emacs 19, Emacs has a list of local variables that create a 3178 As of Emacs 19, Emacs has a list of local variables that create a
3179 security risk. If a file tries to set one of them, it asks the user to 3179 security risk. If a file tries to set one of them, it asks the user to
3180 confirm whether the variables should be set. You can also tell Emacs 3180 confirm whether the variables should be set. You can also tell Emacs
3181 whether to allow the evaluation of Emacs Lisp code found at the bottom 3181 whether to allow the evaluation of Emacs Lisp code found at the bottom