From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: Problem when org-capturing text from French email Date: Fri, 16 Jul 2010 19:06:22 +0200 Message-ID: <87lj9bmk4x.wl%dmaus@ictsoc.de> References: <87fwzjld0f.fsf@mundaneum.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1144022744==" Return-path: Received: from [140.186.70.92] (port=51299 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZoNQ-0006cw-Bd for emacs-orgmode@gnu.org; Fri, 16 Jul 2010 13:07:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZoNO-0004FY-GQ for emacs-orgmode@gnu.org; Fri, 16 Jul 2010 13:07:08 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:39079) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZoNO-0004FM-7L for emacs-orgmode@gnu.org; Fri, 16 Jul 2010 13:07:06 -0400 In-Reply-To: <87fwzjld0f.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?UTF-8?B?U8OpYmFzdGllbg==?= Vauban Cc: emacs-orgmode@gnu.org --===============1144022744== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Fri_Jul_16_19:06:21_2010-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Fri_Jul_16_19:06:21_2010-1 Content-Type: multipart/mixed; boundary="Multipart_Fri_Jul_16_19:06:21_2010-1" --Multipart_Fri_Jul_16_19:06:21_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable S=C3=A9bastien Vauban wrote: >Hello, >Here a trace of the problem that occurs when I capture some text from an >email, for archive purpose. >--8<---------------cut here---------------start------------->8--- >Debugger entered--Lisp error: (args-out-of-range 35 42) > format("%.30s" #("Re: Gestionnaire de r\x00e9visions pour \x00e9\ diteur= LaTeX sous Windows" 20 29 (charset iso-8859-15) 35 42 (charset iso-8859-15= ))) > org-replace-escapes("Email from %f: %.30s" (("%c") ("%F" . #("Denis Bito= uz\x00e9 " 6 13 ...)) ("%f" . "Denis Bitouz\x0= 0e9") ("%T") ("%t" . "?") ("%s" . #("Re: Gestionnaire de r\x00e9visions pou= r \x00e9\ diteur LaTeX sous Windows" 20 29 ... 35 42 ...)) ("%m" . "2010071= 5150256.4f029e84@drums"))) > org-email-link-description() > org-gnus-store-link() > run-hook-with-args-until-success(org-gnus-store-link) > org-store-link(nil) > org-capture(nil) > call-interactively(org-capture nil nil) >--8<---------------cut here---------------end--------------->8--- >I guess it's somehow related to the accents in the mail title? Not sure I >understand the details of the trace, but the capture works in many other >cases, so the accents could be the differentiating factor (I don't have en= ough >history, yet, to assert this). Your message's user agent tells me, that you use Emacs 23.1 -- and this looks like Emacs bug #5306[1]. The Attached patch avoids this bug by removing all text properties from the subject (the same is done in org-wl.el). HTH, -- David [1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --Multipart_Fri_Jul_16_19:06:21_2010-1 Content-Type: text/plain; type=patch; charset=US-ASCII Content-Disposition: attachment; filename="0001-Remove-text-properties-of-subject-to-avoid-Emacs-bug.patch" Content-Transfer-Encoding: base64 RnJvbSAyYjI1M2Q3NDJhZDU4NGEwY2Y4ZmI1ZjljNGU0MTNlMjQ1NmY2NjJiIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEYXZpZCBNYXVzIDxkbWF1c0BpY3Rzb2MuZGU+CkRhdGU6IEZy aSwgMTYgSnVsIDIwMTAgMTk6MDI6MzggKzAyM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RvIChnbnVzLWZldGNoLW9yaWdpbmFsLWZpZWxkICJUbyIpKQotICAgICAgICAgICAgICBuZXdz Z3JvdXBzIChnbnVzLWZldGNoLW9yaWdpbmFsLWZpZWxkICJOZXdzZ3JvdXBzIikKLSAgICAgICAg ICAgICAgeC1uby1hcmNoaXZlIChnbnVzLWZldGNoLW9yaWdpbmFsLWZpZWxkICJ4LW5vLWFyY2hp dmUiKSkpCisJOzsgTWFrZSBzdXJlIHRoZSBvcmlnaW5hbCBhcnRpY2xlIGJ1ZmZlciBpcyB1cC10 by1kYXRlCisJKHNhdmUtd2luZG93LWV4Y3Vyc2lvbiAoZ251cy1zdW1tYXJ5LXNlbGVjdC1hcnRp Y2xlKSkKKwkoc2V0cSB0byAob3IgdG8gKGdudXMtZmV0Y2gtb3JpZ2luYWwtZmllbGQgIlRvIikp CisJICAgICAgbmV3c2dyb3VwcyAoZ251cy1mZXRjaC1vcmlnaW5hbC1maWVsZCAiTmV3c2dyb3Vw cyIpCisJICAgICAgeC1uby1hcmNoaXZlIChnbnVzLWZldGNoLW9yaWdpbmFsLWZpZWxkICJ4LW5v LWFyY2hpdmUiKSkpCiAgICAgICAob3JnLXN0b3JlLWxpbmstcHJvcHMgOnR5cGUgImdudXMiIDpm cm9tIGZyb20gOnN1YmplY3Qgc3ViamVjdAogCQkJICAgIDptZXNzYWdlLWlkIG1lc3NhZ2UtaWQg Omdyb3VwIGdyb3VwIDp0byB0bykKICAgICAgIChzZXRxIGRlc2MgKG9yZy1lbWFpbC1saW5rLWRl c2NyaXB0aW9uKQotLSAKMS43LjEKCg== --Multipart_Fri_Jul_16_19:06:21_2010-1-- --pgp-sign-Multipart_Fri_Jul_16_19:06:21_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkxAkY0ACgkQma24O1pEeOYbMwD9GDMQL+CDhHClIVUk6dSEV/YK flM2U4+gYU98FCasl8MA/0EyEgSscGv2P3BOvP+7T2l7bk5Rt3UJcYDI5HukTnLt =mEj4 -----END PGP SIGNATURE----- --pgp-sign-Multipart_Fri_Jul_16_19:06:21_2010-1-- --===============1144022744== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1144022744==--