emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Problem when org-capturing text from French email
Date: Fri, 16 Jul 2010 22:13:00 +0200	[thread overview]
Message-ID: <87bpa7i3sj.fsf@mundaneum.com> (raw)
In-Reply-To: 87lj9bmk4x.wl%dmaus@ictsoc.de

Hi David,

David Maus wrote:
> Sébastien Vauban wrote:
>> 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 Bitouz\x00e9 <dbitouze.no-ANU3tsQeg1moncpfJ9Ce3Q@public.gmane.org>" 6 13 ...)) ("%f" . "Denis Bitouz\x00e9") ("%T") ("%t" . "?") ("%s" . #("Re: Gestionnaire de r\x00e9visions pour \x00e9\ diteur LaTeX sous Windows" 20 29 ... 35 42 ...)) ("%m" . "20100715150256.4f029e84@drums")))
>>  org-email-link-description()
>>  org-gnus-store-link()
>>  [...]
>>--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
>> enough history, yet, to assert this).
>
> Your message's user agent tells me, that you use Emacs 23.1

Yep. Can't hide it ;-)  Do not want either...


> -- and this looks like Emacs bug #5306[1].
> [1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=

Thanks for the link.


> The Attached patch avoids this bug by removing all text properties from the
> subject (the same is done in org-wl.el).

I've applied your patch. That hinders, indeed, the bug to occur. So, it
perfectly shows you're right about the cause.

Though, the patch you gave me causes me troubles in my Gnus buffers: the
*Group* and *Summary* buffers are now black and white only. All my colors
disappeared...

Here the results of `C-u C-x =' on a (randomly taken) character (`x') of my
*Group* buffer:

--8<---------------cut here---------------start------------->8---
        character: X (88, #o130, #x58)
preferred charset: ascii (ASCII (ISO646 IRV))
       code point: 0x58
           syntax: w 	which means: word
         category: .:Base, a:ASCII, l:Latin, r:Roman
      buffer code: #x58
        file code: #x58 (encoded by coding system utf-8)
          display: by this font (glyph code)
    xft:-microsoft-Consolas-normal-normal-normal-*-11-*-*-*-m-0-iso10646-1 (#x1B)

Character code properties: customize what to show
  name: LATIN CAPITAL LETTER X
  general-category: Lu (Letter, Uppercase)

There are text properties here:
  fontified            t
  mouse-face           highlight
  point-entered        gnus-tool-bar-update
  point-left           gnus-tool-bar-update

[back]
--8<---------------cut here---------------end--------------->8---

The normally applied faces (mostly, `gnus-group-news-3-face' and
`gnus-group-news-3-empty-face') aren't there any more...

Do you confirm such problems? Or is it related to something else in my config?

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-07-16 20:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-16 14:25 Problem when org-capturing text from French email Sébastien Vauban
2010-07-16 17:06 ` David Maus
2010-07-16 20:13   ` Sébastien Vauban [this message]
2010-07-17  6:40     ` David Maus
2010-07-17 20:20       ` Sébastien Vauban
2010-07-18  9:47       ` Patchwork: Patch 146 Accepted Carsten Dominik

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bpa7i3sj.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).