unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* MH-E supports other Emacs versions
       [not found] <E1ER4rp-0000yT-00@savannah.gnu.org>
@ 2005-10-17  6:52 ` Bill Wohler
  0 siblings, 0 replies; only message in thread
From: Bill Wohler @ 2005-10-17  6:52 UTC (permalink / raw)
  Cc: emacs-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-17  6:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1ER4rp-0000yT-00@savannah.gnu.org>
2005-10-17  6:52 ` MH-E supports other Emacs versions Bill Wohler

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