* buttonize creates many many buttons
@ 2011-02-06 15:46 Eric S Fraga
2011-02-07 9:48 ` Lars Ingebrigtsen
2011-02-07 10:06 ` Julien Danjou
0 siblings, 2 replies; 5+ messages in thread
From: Eric S Fraga @ 2011-02-06 15:46 UTC (permalink / raw)
To: gnus mailing list
[-- Attachment #1: Type: text/plain, Size: 175 bytes --]
Hello,
I am trying to understand how =gnus-summary-display-buttonized= works or
is intended to work. If I attach an inline text file, of type
text/orgmode, as I have here:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: example org file with demonstraing a bug in list handling --]
[-- Type: text/orgmode, Size: 870 bytes --]
# -*- coding: utf-8; -*-
#+TITLE: examplebug.org
#+AUTHOR: Eric S Fraga
#+EMAIL: e.fraga@ucl.ac.uk
#+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:nil
#+latex_header: \usepackage{tikz}
* latex code block within list
1. I have a list
2. with several items
3. and then one of them includes some latex:
#+begin_latex
\begin{tikzpicture}[x=2cm,y=2cm]
\draw [red] (0,0) -- (2,2);
\end{tikzpicture}
#+end_latex
4. subsequent list items start a new list
5. if we include some html
#+begin_html
<img src="mip.png" alt="Mixed integer programming">
#+end_html
6. that works fine.
7. if we include a babel code block
#+begin_src octave :exports code :var x=20
3*x+5
#+end_src
#+results:
: 65
8. that also works just fine.
[-- Attachment #3: Type: text/plain, Size: 711 bytes --]
when I look at this message, the text comes out perfectly fine inline.
However, I may want to save this attachment so I figured that displaying
it buttonized was the way to go. When I do that (K b), I get a very
large number (10-12?) of buttons for that file! The buttonizing
procedure seems to break the text file up a random locations (well, I
assume they are not really random but I see no apparent logic at first
glance).
Two questions:
1. is gnus-summary-display-buttonized the right function to use?
2. what is the logic behind the buttonizing procedure?
Thanks,
eric
PS - I know I can simply go to the raw message and extract the text that
way but...
--
Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: buttonize creates many many buttons
2011-02-06 15:46 buttonize creates many many buttons Eric S Fraga
@ 2011-02-07 9:48 ` Lars Ingebrigtsen
2011-02-07 18:53 ` Eric S Fraga
2011-02-07 10:06 ` Julien Danjou
1 sibling, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-07 9:48 UTC (permalink / raw)
To: ding
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> When I do that (K b), I get a very large number (10-12?) of buttons
> for that file! The buttonizing procedure seems to break the text file
> up a random locations (well, I assume they are not really random but I
> see no apparent logic at first glance).
Gnus is doing org-mode dissection, too, and treating these as pseudo
MIME parts. So you'll get a lot of buttons.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: buttonize creates many many buttons
2011-02-07 9:48 ` Lars Ingebrigtsen
@ 2011-02-07 18:53 ` Eric S Fraga
2011-02-14 2:49 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2011-02-07 18:53 UTC (permalink / raw)
To: ding
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> When I do that (K b), I get a very large number (10-12?) of buttons
>> for that file! The buttonizing procedure seems to break the text file
>> up a random locations (well, I assume they are not really random but I
>> see no apparent logic at first glance).
>
> Gnus is doing org-mode dissection, too, and treating these as pseudo
> MIME parts. So you'll get a lot of buttons.
Okay, that makes sense. Is there an easy way (or any way at all that
doesn't involve looking at the raw message) to extract such a text file,
that has been dissected, in one piece? Or can I turn off (disable) the
org dissection process temporarily?
Thanks,
Eric
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 + No Gnus v0.11
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: buttonize creates many many buttons
2011-02-07 18:53 ` Eric S Fraga
@ 2011-02-14 2:49 ` Lars Ingebrigtsen
0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-14 2:49 UTC (permalink / raw)
To: ding
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> Okay, that makes sense. Is there an easy way (or any way at all that
> doesn't involve looking at the raw message) to extract such a text file,
> that has been dissected, in one piece?
I think `C-d' is the easiest way.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: buttonize creates many many buttons
2011-02-06 15:46 buttonize creates many many buttons Eric S Fraga
2011-02-07 9:48 ` Lars Ingebrigtsen
@ 2011-02-07 10:06 ` Julien Danjou
1 sibling, 0 replies; 5+ messages in thread
From: Julien Danjou @ 2011-02-07 10:06 UTC (permalink / raw)
To: Eric S Fraga; +Cc: gnus mailing list
[-- Attachment #1: Type: text/plain, Size: 618 bytes --]
On Sun, Feb 06 2011, Eric S Fraga wrote:
> when I look at this message, the text comes out perfectly fine inline.
> However, I may want to save this attachment so I figured that displaying
> it buttonized was the way to go. When I do that (K b), I get a very
> large number (10-12?) of buttons for that file! The buttonizing
> procedure seems to break the text file up a random locations (well, I
> assume they are not really random but I see no apparent logic at first
> glance).
I get many buttons with your message too. Looks like a bug to me. :(
--
Julien Danjou
❱ http://julien.danjou.info
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-14 2:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06 15:46 buttonize creates many many buttons Eric S Fraga
2011-02-07 9:48 ` Lars Ingebrigtsen
2011-02-07 18:53 ` Eric S Fraga
2011-02-14 2:49 ` Lars Ingebrigtsen
2011-02-07 10:06 ` Julien Danjou
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 NNTP newsgroup(s).