emacs-diffs
[Top][All Lists]
Advanced

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

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


From: Per Abrahamsen
Subject: [Emacs-diffs] Changes to emacs/lisp/menu-bar.el
Date: Tue, 12 Feb 2002 11:37:15 -0500

Index: emacs/lisp/menu-bar.el
diff -c emacs/lisp/menu-bar.el:1.199 emacs/lisp/menu-bar.el:1.200
*** emacs/lisp/menu-bar.el:1.199        Tue Feb 12 04:49:46 2002
--- emacs/lisp/menu-bar.el      Tue Feb 12 11:37:11 2002
***************
*** 566,572 ****
      (dolist (elt '(line-number-mode column-number-mode scroll-bar-mode
                   debug-on-quit debug-on-error menu-bar-mode tool-bar-mode
                   save-place uniquify-buffer-name-style
!                  case-fold-search truncate-lines show-paren-mode
                   transient-mark-mode global-font-lock-mode
                   display-time-mode auto-compression-mode
                   current-language-environment default-input-method
--- 566,572 ----
      (dolist (elt '(line-number-mode column-number-mode scroll-bar-mode
                   debug-on-quit debug-on-error menu-bar-mode tool-bar-mode
                   save-place uniquify-buffer-name-style
!                  case-fold-search show-paren-mode
                   transient-mark-mode global-font-lock-mode
                   display-time-mode auto-compression-mode
                   current-language-environment default-input-method
***************
*** 775,789 ****
              :help "Automatically fill text between left and right margins"
                :button (:toggle . (member 'turn-on-auto-fill text-mode-hook))))
  (define-key menu-bar-options-menu [truncate-lines]
!   (menu-bar-make-toggle
!    toggle-truncate-lines truncate-lines
!    "Truncate Long Lines in this Buffer" "Long Line Truncation %s"
!    "Truncate long lines on the screen"
!    ;; FIXME: We should define a :set method for `truncate-lines' to do
!    ;; the `buffer-modified-p' stuff.
!    ;; -- Per Abrahamsen <address@hidden> 2002-02-11.
!    (prog1 (setq-default truncate-lines (not truncate-lines))
!      (set-buffer-modified-p (buffer-modified-p)))))
  (define-key menu-bar-options-menu [highlight-separator]
    '("--"))
  (define-key menu-bar-options-menu [highlight-paren-mode]
--- 775,790 ----
              :help "Automatically fill text between left and right margins"
                :button (:toggle . (member 'turn-on-auto-fill text-mode-hook))))
  (define-key menu-bar-options-menu [truncate-lines]
!   '(menu-item "Truncate Long Lines in this Buffer"
!             (lambda ()
!               (interactive)
!               (setq truncate-lines (not truncate-lines))
!               (set-buffer-modified-p (buffer-modified-p))
!               (message "Truncate long lines %s" 
!                        (if truncate-lines "enabled" "disabled")))
!             :help "Truncate long lines on the screen"
!             :button (:toggle . truncate-lines)))
! 
  (define-key menu-bar-options-menu [highlight-separator]
    '("--"))
  (define-key menu-bar-options-menu [highlight-paren-mode]



reply via email to

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