unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christoph <cschol2112@googlemail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: hungry-delete in other modes
Date: Wed, 23 Feb 2011 22:58:56 -0700	[thread overview]
Message-ID: <86aahm9dnj.fsf@gmail.com> (raw)
In-Reply-To: <jwvr5az1qfj.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 22 Feb 2011 20:48:28 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> For DEL at least, you can
>
>   (global-set-key [?\^?] 'backward-delete-char-untabify)
>
> and even control it via buffer-local settings of
> backward-delete-char-untabify-method.

I didnt know about backward-delete-char-untabify-method. I will have a
look at that.

> Because the CC-mode author wanted to provide the feature to all CC-mode
> users and/or did not make the effort to try and submit this feature for
> separate inclusion in Emacs.

So no technical or historical reason.

> Of course it's possible.  As a matter of fact we do have subword-mode,
> as well as electric-layout-mode.

It looks like subword-mode was created from cc-subword.el.It looks like
the hungry delete functions are pretty self contained and could be
factored out into a separate mode pretty easily. Maybe something to look
into for a future project.

Thanks,
Christoph



      parent reply	other threads:[~2011-02-24  5:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23  1:21 hungry-delete in other modes Christoph
2011-02-23  1:48 ` Stefan Monnier
2011-02-23  2:23   ` Nathaniel Flath
2011-02-24  6:00     ` Christoph
2011-02-24  5:58   ` Christoph [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=86aahm9dnj.fsf@gmail.com \
    --to=cschol2112@googlemail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).