From: "Stefan Monnier" <monnier+gnu/emacs@RUM.cs.yale.edu>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: enhanced select-safe-coding-system
Date: Fri, 03 May 2002 09:27:01 -0400 [thread overview]
Message-ID: <200205031327.g43DR1014311@rum.cs.yale.edu> (raw)
In-Reply-To: rzqlmb22myp.fsf@djlvig.dl.ac.uk
> Incidentally, I think Emacs should have `remove-if', or whatever
> Common Lisp calls the function for filtering lists according to a
> predicate, as I needed to filter the coding list. That operation seems
> quite common.
I would agree (I actually use a `partition' function sometimes which
returns two lists: one for elements that matched the predicate and one
for those that didn't, but a CL-style function is just as good).
> If you want to make select-safe-coding-system more helpful, you could
> also use code like this to find at least the first unencodable
> character and display that part of the buffer when
> select-safe-coding-system needs to prompt for a coding system. Emacs
> 20 used to do something similar, but it was only necessary to check
> charsets then.
I have recently posted a fairly simple patch that does that by slightly
modifying the C code, so it's fast. The only question is if such
a functionality is good enough to efficiently implement Emacs-20's behavior
(which was to highlight the offending chars, rather than just jump to the
first one)
Stefan
next prev parent reply other threads:[~2002-05-03 13:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <rzqk7qp2log.fsf@djlvig.dl.ac.uk>
2002-05-01 7:14 ` enhanced select-safe-coding-system Richard Stallman
2002-05-01 16:27 ` Eli Zaretskii
2002-05-01 18:51 ` Stefan Monnier
2002-05-02 22:16 ` Richard Stallman
2002-05-02 22:41 ` Dave Love
2002-05-03 7:54 ` Eli Zaretskii
2002-05-04 23:01 ` Dave Love
2002-05-02 22:39 ` Dave Love
2002-05-03 13:27 ` Stefan Monnier [this message]
2002-05-04 3:36 ` Richard Stallman
2002-05-05 23:06 ` Stefan Monnier
2002-05-04 22:56 ` Dave Love
2002-05-05 23:24 ` Stefan Monnier
2002-05-08 22:17 ` Dave Love
2002-05-14 19:41 ` Richard Stallman
2002-05-14 19:52 ` Stefan Monnier
2002-05-16 7:21 ` Richard Stallman
2002-05-04 3:36 ` Richard Stallman
2002-05-04 23:11 ` Dave Love
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=200205031327.g43DR1014311@rum.cs.yale.edu \
--to=monnier+gnu/emacs@rum.cs.yale.edu \
--cc=emacs-devel@gnu.org \
--cc=rms@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.