Gnus development mailing list
 help / color / mirror / Atom feed
From: Steven L Baur <steve@miranova.com>
Subject: Message Mode Popup Menu for XEmacs
Date: 05 May 1996 15:11:48 -0700	[thread overview]
Message-ID: <m2buk27ot7.fsf@deanna.miranova.com> (raw)

The following patch adds a nice popup buffer menu for message mode,
and is fully transparent to Emacs 19.30.
This is patched off of September Gnus v0.80.
===================================================================
RCS file: RCS/ChangeLog,v
retrieving revision 1.82
diff -u -r1.82 ChangeLog
--- ChangeLog	1996/04/29 22:31:22	1.82
+++ ChangeLog	1996/05/05 21:54:21
@@ -1,3 +1,7 @@
+Sun May  5 14:54:06 1996  Steven L Baur  <steve@miranova.com>
+
+	* message.el (message-mode-map): Added mode menu for XEmacs.
+
 Mon Apr 29 02:24:14 1996  Lars Magne Ingebrigtsen  <larsi@aegir.ifi.uio.no>
 
 	* message.el (message-check-news-syntax): Better `empty' check.

===================================================================
RCS file: RCS/message.el,v
retrieving revision 1.18
diff -u -r1.18 message.el
--- message.el	1996/04/29 22:31:22	1.18
+++ message.el	1996/05/05 21:08:05
@@ -370,6 +370,34 @@
 (defvar message-sent-hook nil
   "Hook run after sending messages.")
 
+(if (string-match "XEmacs\\|Lucid" emacs-version)
+    (defvar message-mode-menu
+      '("Send Message"
+	"Go to Field:"
+	"----"
+	["To:" message-goto-to t]
+	["Subject:" message-goto-subject t]
+	["Summary:" message-goto-summary t]
+	["Keywords:" message-goto-keywords t]
+	["Newsgroups:" message-goto-newsgroups t]
+	["Followup-To:" message-goto-followup-to t]
+	["Distribution:" message-goto-distribution t]
+	["Body" message-goto-body t]
+	["Signature" message-goto-signature t]
+	"----"
+	"Miscellaneous Commands:"
+	"----"
+	["Sort Headers" message-sort-headers t]
+	["Yank Original" message-yank-original t]
+	["Fill Yanked Message" message-fill-yanked-message t]
+;;  ["Insert Signature"         news-reply-signature     t]
+	["Caesar (rot13) Message" message-caesar-buffer-body t]
+	"----"
+	["Post Message" message-send-and-exit t]
+	["Abort Message" message-dont-send t]
+	)
+      "Buffer Menu for XEmacs."))
+
 ;;; Internal variables.
 
 ;;; Regexp matching the delimiter of messages in UNIX mail format
@@ -662,7 +690,9 @@
 
   (define-key message-mode-map "\C-c\C-c" 'message-send-and-exit)
   (define-key message-mode-map "\C-c\C-s" 'message-send)
-  (define-key message-mode-map "\C-c\C-k" 'message-dont-send))
+  (define-key message-mode-map "\C-c\C-k" 'message-dont-send)
+  (if (string-match "XEmacs\\|Lucid" emacs-version)
+      (define-key message-mode-map 'button3 'message-mode-menu)))
 
 (defun message-make-menu-bar ()
   (unless (boundp 'message-menu)
@@ -2525,6 +2555,14 @@
      (while (re-search-forward "\b" end1 t)
        (if (eq (following-char) (char-after (- (point) 2)))
 	   (delete-char -2))))))
+
+;; Support for Mouse menus
+(if (string-match "XEmacs\\|Lucid" emacs-version)
+    (defun message-mode-menu (event)
+      (interactive "e")
+      (select-window (event-window event))
+      (let ((popup-menu-titles nil))
+	(popup-menu 'message-mode-menu))))
 
 (provide 'message)
 

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be proofread for $250/hour.
Andrea Seastrand: For your vote on the Telecom bill, I will vote for anyone
except you in November.


             reply	other threads:[~1996-05-05 22:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-05 22:11 Steven L Baur [this message]
1996-05-06  7:42 ` Per Abrahamsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2buk27ot7.fsf@deanna.miranova.com \
    --to=steve@miranova.com \
    /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.
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 NNTP newsgroup(s).