all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: emacs-devel@gnu.org
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	[thread overview]
Message-ID: <m1eiflrgtq.fsf@cam.ac.uk> (raw)
In-Reply-To: <E1OUh3V-0003g1-1E@internal.in.savannah.gnu.org> (Chong Yidong's message of "Fri, 02 Jul 2010 10:09:36 -0400")

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



           reply	other threads:[~2010-07-02 16:25 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <E1OUh3V-0003g1-1E@internal.in.savannah.gnu.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1eiflrgtq.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.