unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Andreas Schwab <schwab@suse.de>
Cc: ding@gnus.org, emacs-devel@gnu.org
Subject: Re: strange behavior in regexp matching
Date: Mon, 17 Mar 2008 15:26:43 +0100	[thread overview]
Message-ID: <v93aqpmnoc.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <jey78hv46u.fsf@sykes.suse.de> (Andreas Schwab's message of "Mon,  17 Mar 2008 15:02:49 +0100")

On Mon, Mar 17 2008, Andreas Schwab wrote:

> Does it help to change the test to
> (re-search-forward "[[:multibyte:]]" to t)?

No, it[1] doesn't help:

,----
| Debugger entered--Lisp error: (error "Multibyte character in QP encoding region")
|   signal(error ("Multibyte character in QP encoding region"))
|   error("Multibyte character in QP encoding region")
|   (if (re-search-forward "[[:multibyte:]]" to t) (error "Multibyte character in QP encoding region"))
|   (save-excursion (goto-char from) (if (re-search-forward "[[:multibyte:]]" to t) (error "Multibyte character in QP encoding region")) (save-restriction (narrow-to-region from to) (goto-char ...) (while ... ...) (goto-char ...) (while ... ... ...) (let ... ...)))
|   quoted-printable-encode-region(1 4 nil "-\b\n\f !#-'*+0-9A-Z\\^`-~\x7f")
|   rfc2047-q-encode-string("Bä")
|   rfc2047-encode-1(9 "B\x00e4r" utf-8 rfc2047-q-encode-string "=?utf-8?Q?" " " "")
|   rfc2047-encode(71 74)
|   rfc2047-encode-region(71 75)
|   mail-encode-encoded-word-buffer()
|   mml-to-mime()
|   mml-preview((4))
|   call-interactively(mml-preview t nil)
|   execute-extended-command((4))
|   call-interactively(execute-extended-command nil nil)
`----

Bye, Reiner.

[1]
--8<---------------cut here---------------start------------->8---
--- qp.el.~1.28.~	2008-01-09 20:36:04.000000000 +0100
+++ qp.el	2008-03-17 15:22:06.000000000 +0100
@@ -107,8 +107,7 @@
     (setq class "\010-\012\014\040-\074\076-\177"))
   (save-excursion
     (goto-char from)
-    (if (re-search-forward (mm-string-to-multibyte "[^\x0-\x7f\x80-\xff]")
-			   to t)
+    (if (re-search-forward "[[:multibyte:]]" to t)
 	(error "Multibyte character in QP encoding region"))
     (save-restriction
       (narrow-to-region from to)
--8<---------------cut here---------------end--------------->8---

-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




  reply	other threads:[~2008-03-17 14:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-17 12:13 strange behavior in regexp matching Katsumi Yamaoka
2008-03-17 12:18 ` Christoph Conrad
2008-03-17 12:20 ` Andreas Schwab
2008-03-17 13:42   ` Reiner Steib
2008-03-17 14:02     ` Andreas Schwab
2008-03-17 14:26       ` Reiner Steib [this message]
2008-03-17 14:52         ` Andreas Schwab
2008-03-17 19:42           ` Reiner Steib
2008-03-17 22:45             ` Kätsumi Yämäokä

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=v93aqpmnoc.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=schwab@suse.de \
    /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).