all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* defalias  and search-unencodable-character
@ 2011-03-27 20:10 B. T. Raven
  2011-03-27 20:20 ` B. T. Raven
  0 siblings, 1 reply; 3+ messages in thread
From: B. T. Raven @ 2011-03-27 20:10 UTC (permalink / raw)
  To: help-gnu-emacs

Does any of you know why this won't work:

(defalias 'suc 'search-unencodable-character)?

Other interactive functions that require an argument seem to work
alright with defalias. Does what I want have to be put in a lambda?


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

* Re: defalias  and search-unencodable-character
  2011-03-27 20:10 defalias and search-unencodable-character B. T. Raven
@ 2011-03-27 20:20 ` B. T. Raven
  2011-03-28 15:47   ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: B. T. Raven @ 2011-03-27 20:20 UTC (permalink / raw)
  To: help-gnu-emacs

B. T. Raven wrote:
> Does any of you know why this won't work:
> 
> (defalias 'suc 'search-unencodable-character)?
> 
> Other interactive functions that require an argument seem to work
> alright with defalias. Does what I want have to be put in a lambda?
 Oop! Never mind. I thought the function name was longer than it was

(defalias 'suc 'search-unencodable-char)works fine.


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

* Re: defalias  and search-unencodable-character
  2011-03-27 20:20 ` B. T. Raven
@ 2011-03-28 15:47   ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2011-03-28 15:47 UTC (permalink / raw)
  To: help-gnu-emacs

> (defalias 'suc 'search-unencodable-char)works fine.

FWIW, in Emacs-24, if you add the `initials' completion to
completion-styles, and if you bind minibuffer-force-complete to a key
(e.g. M-TAB) or if you set completion-cycle-threshold to a value larger
than 2, then you can do:

  M-x suc M-TAB M-TAB RET

And the subsequent times (assuming you haven't used M-x
scroll-up-command in between), a since M-TAB should be sufficient.
You could argue that search-unencodable-character should actually come
before scroll-up-command by default (since scroll-up-command has
a key-binding), but M-x's completion is not that clever (yet?).


        Stefan


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

end of thread, other threads:[~2011-03-28 15:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-27 20:10 defalias and search-unencodable-character B. T. Raven
2011-03-27 20:20 ` B. T. Raven
2011-03-28 15:47   ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.