From: Heikki Junes Date: Tue, 26 Nov 2002 14:39:45 +0000 (+0000) Subject: Look shortcuts in menu from keymap, if possible. X-Git-Tag: release/1.7.9~19 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=696e34b7b40cf030bfc45e3e636187b4560bb8d9;p=lilypond.git Look shortcuts in menu from keymap, if possible. --- diff --git a/ChangeLog b/ChangeLog index c31cbe40a5..496dd1557e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-11-26 Heikki Junes + + * lilypond-mode.el: Look shortcuts in menu from keymap, if possible. + 2002-11-25 Heikki Junes * lilypond-mode.el: Add support for Info inside Emacs. diff --git a/lilypond-mode.el b/lilypond-mode.el index bd2c3ed2da..e56a32acdd 100644 --- a/lilypond-mode.el +++ b/lilypond-mode.el @@ -5,10 +5,11 @@ ;;; ;;; (c) 1999--2001 Jan Nieuwenhuizen ;;; -;;; Changed 2001 Heikki Junes +;;; Changed 2001--2002 Heikki Junes ;;; * Add PS-compilation, PS-viewing and MIDI-play (29th Aug 2001) ;;; * Keyboard shortcuts (12th Sep 2001) ;;; * Inserting tags, inspired on sgml-mode (11th Oct 2001) +;;; * Autocompletion & Info (23rd Nov 2002) ;;; ;;; Changed 2002 Carlos Betancourt ;;; * Added spanish-note-replacements @@ -841,8 +842,8 @@ command." (easy-menu-define LilyPond-command-menu - LilyPond-mode-map - "Menu used in LilyPond mode." + LilyPond-mode-map + "Menu used in LilyPond mode." (append '("Command") '(("Command on" [ "Master File" LilyPond-command-select-master @@ -857,18 +858,18 @@ command." ; (let ((file 'LilyPond-command-on-current)) ; (mapcar 'LilyPond-command-menu-entry LilyPond-command-alist)) ;;; Some kind of mapping which includes :keys might be more elegant - '([ "LilyPond" (LilyPond-command (LilyPond-command-menu "LilyPond") 'LilyPond-master-file) :keys "C-c C-l"]) + '([ "LilyPond" LilyPond-command-lilypond t]) '([ "TeX" (LilyPond-command (LilyPond-command-menu "TeX") 'LilyPond-master-file) ]) - '([ "2Dvi" (LilyPond-command (LilyPond-command-menu "2Dvi") 'LilyPond-master-file) :keys "C-c C-d"]) - '([ "2PS" (LilyPond-command (LilyPond-command-menu "2PS") 'LilyPond-master-file) :keys "C-c C-f"]) + '([ "2Dvi" LilyPond-command-formatdvi t]) + '([ "2PS" LilyPond-command-formatps t]) '([ "2Midi" (LilyPond-command (LilyPond-command-menu "2Midi") 'LilyPond-master-file)]) '([ "Book" (LilyPond-command (LilyPond-command-menu "Book") 'LilyPond-master-file) ]) '([ "LaTeX" (LilyPond-command (LilyPond-command-menu "LaTeX") 'LilyPond-master-file) ]) - '([ "SmartView" (LilyPond-command (LilyPond-command-menu "SmartView") 'LilyPond-master-file) :keys "C-c C-s"]) - '([ "View" (LilyPond-command (LilyPond-command-menu "View") 'LilyPond-master-file) :keys "C-c C-v"]) - '([ "ViewPS" (LilyPond-command (LilyPond-command-menu "ViewPS") 'LilyPond-master-file) :keys "C-c C-p"]) - '([ "Midi (off)" (LilyPond-command-next-midi) :keys "C-c C-m"]) - '([ "Midi all" (LilyPond-command-all-midi)]) + '([ "SmartView" LilyPond-command-smartview t]) + '([ "View" LilyPond-command-view t]) + '([ "ViewPS" LilyPond-command-viewps t]) + '([ "Midi (off)" LilyPond-command-next-midi t]) + '([ "Midi all" LilyPond-command-all-midi t]) )) (easy-menu-define LilyPond-mode-menu