unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Adding a menu item for htmlfontify-buffer to File menu
@ 2010-11-12 14:04 Masatake YAMATO
  2010-11-12 15:00 ` Lennart Borgman
  2010-11-12 21:03 ` Stefan Monnier
  0 siblings, 2 replies; 8+ messages in thread
From: Masatake YAMATO @ 2010-11-12 14:04 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-11-16 14:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-12 14:04 Adding a menu item for htmlfontify-buffer to File menu Masatake YAMATO
2010-11-12 15:00 ` 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

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).