From: Richard Stallman <rms@gnu.org>
To: emacs-devel@gnu.org
Subject: One example of code I can't understand
Date: Sun, 19 Jul 2009 19:21:03 -0400 [thread overview]
Message-ID: <E1MSfgl-0004PE-BH@fencepost.gnu.org> (raw)
Here's more code from mm-util.el that I don't understand.
I don't know what this function is supposed to do
or how it works.
(defun mm-iso-8859-x-to-15-region (&optional b e)
(if (fboundp 'char-charset)
(let (charset item c inconvertible)
(save-restriction
(if e (narrow-to-region b e))
(goto-char (point-min))
(skip-chars-forward "\0-\177")
(while (not (eobp))
(cond
((not (setq item (assq (char-charset (setq c (char-after)))
mm-iso-8859-x-to-15-table)))
(forward-char))
((memq c (cdr (cdr item)))
(setq inconvertible t)
(forward-char))
(t
(insert-before-markers (prog1 (+ c (car (cdr item)))
(delete-char 1)))))
(skip-chars-forward "\0-\177")))
(not inconvertible))))
next reply other threads:[~2009-07-19 23:21 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-19 23:21 Richard Stallman [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-07-19 23:21 One example of code I can't understand Richard Stallman
2009-07-20 3:13 ` Eli Zaretskii
2009-07-20 19:01 ` Richard Stallman
2009-07-21 0:51 ` Kenichi Handa
2009-07-21 3:07 ` Eli Zaretskii
2009-07-21 4:10 ` Kenichi Handa
2009-07-21 14:41 ` Richard Stallman
2009-07-22 6:58 ` Stephen J. Turnbull
2009-07-21 0:59 ` Stefan Monnier
2009-07-21 14:41 ` Richard Stallman
2009-07-19 23:21 Richard Stallman
2009-07-20 18:13 ` Stefan Monnier
2009-07-20 20:50 ` Reiner Steib
2009-07-21 14:41 ` Richard Stallman
2009-07-21 17:34 ` Reiner Steib
2009-07-22 22:21 ` Richard Stallman
2009-07-21 14:42 ` Richard Stallman
2009-07-21 18:21 ` Eli Zaretskii
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=E1MSfgl-0004PE-BH@fencepost.gnu.org \
--to=rms@gnu.org \
--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.