From: Masatake YAMATO <yamato@redhat.com>
To: emacs-devel@gnu.org
Subject: Adding a menu item for htmlfontify-buffer to File menu
Date: Fri, 12 Nov 2010 23:04:57 +0900 (JST) [thread overview]
Message-ID: <20101112.230457.419777345042583664.yamato@redhat.com> (raw)
How do you think adding a menu item for htmlfontify-buffer to File menu?
html format is popular so newer user may want to know emacs has an
ability to convert the buffer display to html format.
=== modified file 'lisp/ChangeLog'
--- lisp/ChangeLog 2010-11-09 08:00:46 +0000
+++ lisp/ChangeLog 2010-11-09 19:00:11 +0000
@@ -1,3 +1,8 @@
+2010-11-09 Masatake YAMATO <yamato@redhat.com>
+
+ * menu-bar.el (menu-bar-file-menu): Add a new item "Convert Buffer to HTML"
+ to File menu.
+
=== modified file 'lisp/menu-bar.el'
--- lisp/menu-bar.el 2010-10-31 14:40:01 +0000
+++ lisp/menu-bar.el 2010-11-09 18:58:34 +0000
@@ -131,6 +131,11 @@
(define-key menu-bar-file-menu [separator-window]
menu-bar-separator)
+(define-key menu-bar-file-menu [htmlfontify-buffer]
+ `(menu-item ,(purecopy "Convert Buffer to HTML") htmlfontify-buffer
+ :enable (menu-bar-menu-frame-live-and-visible-p)
+ :help ,(purecopy "Pretty-print current buffer to a new buffer in HTML")))
+
(define-key menu-bar-file-menu [ps-print-region]
`(menu-item ,(purecopy "Postscript Print Region (B+W)") ps-print-region
:enable mark-active
next reply other threads:[~2010-11-12 14:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-12 14:04 Masatake YAMATO [this message]
2010-11-12 15:00 ` Adding a menu item for htmlfontify-buffer to File menu Lennart Borgman
2010-11-14 22:11 ` Juri Linkov
2010-11-12 21:03 ` Stefan Monnier
2010-11-15 21:39 ` Drew Adams
2010-11-15 23:36 ` Andrew W. Nosenko
2010-11-15 23:51 ` Miles Bader
2010-11-16 14:20 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101112.230457.419777345042583664.yamato@redhat.com \
--to=yamato@redhat.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).