unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Bill Wohler <wohler@newt.com>
Cc: emacs-devel@gnu.org
Subject: MH-E supports other Emacs versions
Date: Sun, 16 Oct 2005 23:52:59 -0700	[thread overview]
Message-ID: <9789.1129531979@olgas.newt.com> (raw)
In-Reply-To: Masatake YAMATO's message of Sun, 16 Oct 2005 05:31:45 EDT. <E1ER4rp-0000yT-00@savannah.gnu.org>

> 	* mh-comp.el (mh-complete-word): Pass the common
> 	prefix substring of completion to `display-completion-list'.

Just a friendly reminder that MH-E runs on Emacs 20 and 21 too. While I
do not expect Emacs developers to write macros such as the following to
provide compatibility, the MH-E team would greatly appreciate it if
Emacs developers kept our requirements in mind. If it's easy for you to
try your changes on Emacs 21, please do. If you find or even think
you're using a new feature of Emacs in MH-E, then sending me or
mh-e-devel@lists.sourceforge.net a quick note would be great.

Fortunately the compiler alerted me to the problem created by the above
check-in, but that might not always be the case.

  (defmacro mh-display-completion-list-compat (word choices)
    "Completes WORD from CHOICES using `display-completion-list'.
  Calls `display-completion-list' correctly in older environments.
  Versions of Emacs prior to version 22 lacked a COMMON-SUBSTRING argument
  which is used to highlight the next possible character you can enter
  in the current list of completions."
    (if (>= emacs-major-version 22)
	`(display-completion-list (all-completions ,word ,choices) ,word)
      `(display-completion-list (all-completions ,word ,choices))))

p.s. The MH-E developers really appreciate the Emacs developer's help in
getting MH-E up to current Emacs conventions.

-- 
Bill Wohler <wohler@newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.

           reply	other threads:[~2005-10-17  6:52 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <E1ER4rp-0000yT-00@savannah.gnu.org>]

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=9789.1129531979@olgas.newt.com \
    --to=wohler@newt.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).