Format doc and add customize for ns-auto-hide-menu-bar.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 27 Mar 2011 10:55:07 +0000 (12:55 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 27 Mar 2011 10:55:07 +0000 (12:55 +0200)
* lisp/cus-start.el (all): Add boolean ns-auto-hide-menu-bar.

* src/nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.

etc/NEWS
lisp/ChangeLog
lisp/cus-start.el
src/ChangeLog
src/nsterm.m

index 263ab2e..c48af3a 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -162,6 +162,9 @@ cannot be encoded by the `terminal-coding-system'.
 
 ** On graphical displays, the mode-line no longer ends in dashes.
 
+** On Nextstep/OSX, the menu bar can be hidden by customizing
+   ns-auto-hide-menu-bar.
+
 ** Basic SELinux support has been added.
 This requires Emacs to be linked with libselinux at build time.
 
index f6d0682..a883816 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-27  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * cus-start.el (all): Add boolean ns-auto-hide-menu-bar.
+
 2011-03-27  Leo Liu  <sdl.web@gmail.com>
 
        * ansi-color.el (ansi-color-names-vector): Allow cons cell value
index 788731e..1188d37 100644 (file)
@@ -356,6 +356,7 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of
                      (const alt) (const hyper)
                      (const super)) "23.1")
             (ns-antialias-text ns boolean "23.1")
+            (ns-auto-hide-menu-bar ns boolean "24.0")
             ;; process.c
             (delete-exited-processes processes-basics boolean)
             ;; syntax.c
index 96f6087..0ed0118 100644 (file)
@@ -1,3 +1,7 @@
+2011-03-27  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
+
 2011-03-27  Anders Lindgren <andlind@gmail.com>
 
        * nsterm.m (ns_menu_bar_is_hidden): New variable.
index ebfa875..91f0cbb 100644 (file)
@@ -6486,7 +6486,8 @@ allowing it to be used at a lower level for accented character entry.");
   last_mouse_motion_frame = Qnil;
 
   DEFVAR_LISP ("ns-auto-hide-menu-bar", ns_auto_hide_menu_bar,
-               "Non-nil means that the menu bar is hidden, but appears when the mouse is near.  Only works on OSX 10.6 or later.");
+               doc: /* Non-nil means that the menu bar is hidden, but appears when the mouse is near.
+Only works on OSX 10.6 or later.  */);
   ns_auto_hide_menu_bar = Qnil;
 
   /* TODO: move to common code */