[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rebind-mbuf-maps.el - rebind minibuffer completion maps
From: |
Drew Adams |
Subject: |
rebind-mbuf-maps.el - rebind minibuffer completion maps |
Date: |
Tue, 16 Jan 2001 21:35:20 -0500 |
;;; rebind-mbuf-maps.el --- Rebind minibuffer completion maps.
;;
;; Emacs Lisp Archive Entry
;; Filename: rebind-mbuf-maps.el
;; Description: Rebind minibuffer completion maps.
;; Author: address@hidden
;; Drew Adams
;; Maintainer: Drew Adams
;; Copyright (C) 1996-2001, Drew Adams, all rights reserved.
;; Created: Tue Aug 1 14:21:16 1995
;; Version: $Id: rebind-mbuf-maps.el,v 1.3 2001/01/09 01:59:41 dadams Exp $
;; Last-Updated: Mon Jan 8 17:59:33 2001
;; By: dadams
;; Update #: 637
;; Keywords: internal, lisp, extensions, help, abbrev, faces, local
;; Compatibility: GNU Emacs 20.x
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;; Commentary:
;;
;; This a subset of file `elect-mbuf.el', which should be loaded
;; before the current file. This file is separate from
;; `elect-mbuf.el' to allow loading it after all keys have been
;; bound, without having to reload all of `elect-mbuf.el'.
;;
;; You will typically load `elect-mbuf.el' at some point, then
;; perhaps load other files that also bind keys, then load this.
;; That is, put this at the very end of your `~/.emacs':
;;
;; (require 'rebind-mbuf-maps)
;;
;;
;; New constants defined here:
;;
;; `completing-read-prompt-suffix',
;; `minibuffer-completion-help-string'.
;;
;;
;; NOTE:
;; Load this file only AFTER ALL other files are loaded that bind
;; keys, so that the top-level `rebind-minibuffer-completion-maps'
;; here will pick up all those previous definitions.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;; Change log:
;;
;;
;; Original posting:
;; From address@hidden Mon Jun 19 19:27:58 1989
;; To: address@hidden
;; Cc: Hans <address@hidden>
;; Subject: elect-mbuf.el
;; Date: Tue, 13 Jun 89 15:17:07 -0400
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program; see the file COPYING. If not, write to the
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;; Code:
(require 'elect-mbuf)
(provide 'rebind-mbuf-maps)
;;;;;;;;;;;;;
(rebind-minibuffer-completion-maps)
;; Do this *after* calling `rebind-minibuffer-completion-maps' for doc string.
(defconst minibuffer-completion-help-string
(substitute-command-keys
"\\<minibuffer-local-completion-map> \
Minibuffer Completion
---------------------
Your input in the minibuffer can be completed in several ways.
You can:
* Complete the current input in the minibuffer.
Complete a word at a time: \\[minibuffer-complete-word]
Complete as much as possible: \\[minibuffer-complete]
* Choose a default input value.
Cycle among candidate default values: \\[previous-default-input], \
\\[next-default-input]
* Choose a previous input from the minibuffer history.
Cycle among minibuffer history items: \\[previous-history-element], \
\\[next-history-element]
Search among minibuffer history items: \
\\[previous-matching-history-element], \\[next-matching-history-element]
* Choose from the possible completions for the current input.
Show the list, plus this explanation: \\[minibuffer-completion-help+]
Choose from the list: \\<completion-list-mode-map>\
\\[choose-completion], \\[mouse-choose-completion]
(in buffer *Completions*)
The list is also available when completion is ambiguous.
* Modify your input if you like, once chosen or completed.
Send your finished input to Emacs: \
\\<minibuffer-local-completion-map>\\[exit-minibuffer]
Abandon minibuffer input: \\[abort-recursive-edit]
Remember: You can always input any character that is bound to a
command (e.g. \\[minibuffer-complete-word], \
\\[minibuffer-complete], \\[minibuffer-completion-help+]) by preceding it \
with \\<global-map>\\[quoted-insert].
Here are the current bindings for the minibuffer:
\\{minibuffer-local-completion-map}---------------------------------------\
---------------------
")
"Description of minibuffer bindings.")
;; Do *after* calling `rebind-minibuffer-completion-maps' for default suffix.
(defconst completing-read-prompt-suffix
(substitute-command-keys
"(\\<minibuffer-local-completion-map>\\[minibuffer-completion-help+] for \
help) ")
"*String to append to `completing-read's prompt, if there is room.
Intended to remind you how to obtain input completion help.
Set this to nil or to \"\" to append nothing.")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; `rebind-mbuf-maps.el' ends here
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- rebind-mbuf-maps.el - rebind minibuffer completion maps,
Drew Adams <=