[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /srv/bzr/emacs/trunk r100690: Replace delete-backward-char Lisp call

From: Leo
Subject: Re: /srv/bzr/emacs/trunk r100690: Replace delete-backward-char Lisp calls in Viper (Bug#6552).
Date: Fri, 02 Jul 2010 17:25:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (Mac OS X 10.6.4)

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]