From: Kaushal Modi <kaushal.modi@gmail.com>
To: Juri Linkov <juri@linkov.net>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Notify region-extract-function change in NEWS?
Date: Sat, 06 Feb 2016 04:08:28 +0000 [thread overview]
Message-ID: <CAFyQvY00Ni0Unv_aGEOQtTH=GBqTK=2XFF=u6yH4dV86qWg0Eg@mail.gmail.com> (raw)
In-Reply-To: <87r3gqso64.fsf@mail.linkov.net>
[-- Attachment #1: Type: text/plain, Size: 990 bytes --]
Thanks Juri.
On Fri, Feb 5, 2016 at 8:13 PM Juri Linkov <juri@linkov.net> wrote:
> A better way to do that is to override the default value of
> region-extract-function using add-function.
> You could find some examples of add-function usages in
>
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25&id=31f6e939334180add7bc11240343615a2e6350f6
I have reimplemented my earlier redefinition of region-extract-function
using add-function:
https://github.com/kaushalmodi/.emacs.d/blob/78ed92f384bac8ef2f3a4ec2faf61a21814475cd/setup-files/setup-editing.el#L744-L766
and it seems to work fine as before, but with lesser lines of code! :)
So just to be clear, using add-function makes the region-extract-function
tweaks a bit concise. But I would still need to update this if and when the
region-extract-function default value changes in future. For instance, here
I needed to have the "(not (eq delete 'bounds))" condition to match what
was recently added to that var.
Kaushal
[-- Attachment #2: Type: text/html, Size: 1642 bytes --]
next prev parent reply other threads:[~2016-02-06 4:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 20:29 Notify region-extract-function change in NEWS? Kaushal Modi
2016-02-05 20:47 ` Kaushal Modi
2016-02-06 0:30 ` Juri Linkov
2016-02-06 4:08 ` Kaushal Modi [this message]
2016-02-06 4:49 ` Kaushal Modi
2016-02-08 13:48 ` Stefan Monnier
2016-02-08 15:58 ` John Wiegley
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='CAFyQvY00Ni0Unv_aGEOQtTH=GBqTK=2XFF=u6yH4dV86qWg0Eg@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=juri@linkov.net \
/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).