all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: /srv/bzr/emacs/trunk r100690: Replace delete-backward-char Lisp calls in Viper (Bug#6552).
       [not found] <E1OUh3V-0003g1-1E@internal.in.savannah.gnu.org>
@ 2010-07-02 16:25 ` Leo
  0 siblings, 0 replies; only message in thread
From: Leo @ 2010-07-02 16:25 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

Hello Yidong,

The other day I was going to fix all the delete-backward-char warnings
in Emacs but didn't finish it because I encountered things like
backward-delete-char-untabify and it does make the code a bit more
difficult to read with the extra ().

I wonder whether defining a compiler macro will be much easier and
less pain. Preliminarily something like:

,----
| (require 'cl)
| (define-compiler-macro delete-backward-char (n &optional killflag)
|   `(delete-char (- ,n) ,killflag))
`----

And we can continue using the current doc string in delete-backward-char
to warn users about its future uses.

Just a thought.

HTH,
Leo



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

only message in thread, other threads:[~2010-07-02 16:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1OUh3V-0003g1-1E@internal.in.savannah.gnu.org>
2010-07-02 16:25 ` /srv/bzr/emacs/trunk r100690: Replace delete-backward-char Lisp calls in Viper (Bug#6552) Leo

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.