From: Stephen Berman <stephen.berman@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Widgets and text-changing
Date: Fri, 19 Jun 2009 09:45:13 +0200 [thread overview]
Message-ID: <87ws78ekfq.fsf@escher.local.home> (raw)
In-Reply-To: 87fxdx8g4c.fsf@sandpframing.com
On Thu, 18 Jun 2009 16:02:43 -0400 MON KEY <monkey@sandpframing.com> wrote:
> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> Is it possible to apply text-changing commands or functions to widgets
>> in a buffer without dewidgetizing them? For example, if I eval this
>> sexp:
>>
>> (with-current-buffer (get-buffer-create "*Widget Test*")
>> (setq mylist '("delta" "alfa" "charlie" "bravo"))
>> {...}
>> Is it possible to manipulate, e.g. sort, widgets in a buffer without
>> them losing their widgetry?
>
> I'm sure this was obvious and I don't intend any sarcasm, but what about:
[...]
> (setq mylist (sort '("delta" "alfa" "charlie" "bravo") 'string<)
This is fine as far as it goes, though in my specific use case it has to
be a bit more complicated, since I need to both preserve the initial
list and do case insensitive sorting. This added complication is what
prompted my post, since if it were possible to apply text-changing
functions to widgetized buffers, I would only need to set sort-fold-case
and call sort-lines. But since this apparently is not possible, I have
indeed resorted to the pre-sorting, despite its additional slight
overhead.
Steve Berman
next prev parent reply other threads:[~2009-06-19 7:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 23:03 Widgets and text-changing Stephen Berman
2009-06-18 20:02 ` MON KEY
2009-06-19 2:58 ` MON KEY
2009-06-19 7:45 ` Stephen Berman [this message]
[not found] ` <20090619.145655.258112025.devel@pollock-nageoire.net>
2009-06-19 15:11 ` MON KEY
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=87ws78ekfq.fsf@escher.local.home \
--to=stephen.berman@gmx.net \
--cc=help-gnu-emacs@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.