After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 75916 - Quote characters
Quote characters
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
0.11.2
Other All
: Normal normal
: 0.11.3
Assigned To: Charles Kerr
Charles Kerr
Depends on:
Blocks:
 
 
Reported: 2002-03-22 14:51 UTC by Colin Leroy
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the patch ; apply with -p1 (4.57 KB, patch)
2002-03-22 14:52 UTC, Colin Leroy
none Details | Review
the new patch (-p1 as usual) (7.56 KB, patch)
2002-03-23 02:53 UTC, Colin Leroy
none Details | Review
I didn't see the comment on bug 68159 ; this patch is with ">:|" by default. (7.57 KB, patch)
2002-03-23 02:56 UTC, Colin Leroy
none Details | Review
i forgot the test directory in the last one, sorry :-/ (10.75 KB, patch)
2002-03-23 03:11 UTC, Colin Leroy
none Details | Review

Description Colin Leroy 2002-03-22 14:51:21 UTC
This patch allows user to specify which chars should be considered as
citation markers when found at line beginning.
http://colino.net/patches/pan-0.11.2-quote_chars.patch
Comment 1 Colin Leroy 2002-03-22 14:52:07 UTC
Created attachment 7311 [details] [review]
the patch ; apply with -p1
Comment 2 Charles Kerr 2002-03-22 17:40:09 UTC
This patch is a good start, but it breaks text wrapping.
Could you look into util-wrap.c and fix this?
Comment 3 Colin Leroy 2002-03-22 18:01:37 UTC
Hello Charles,

the problem is located at util-wrap.c:82
*pch=='>' should be replaced by is_quote_char(pch, quote_chars) with
quote_chars coming from text_quote_chars in prefs.h. The problem is
that I can't access text_quote_chars from pan/base/util-wrap.c as it
is linked before pan/prefs.c ; I don't understand anything about how
to handle dependencies ; if you had hints or the solution, it'll help
me nicely :)

Thanks,
Colin
Comment 4 Charles Kerr 2002-03-22 18:13:51 UTC
Oh right I forgot about that.  The way to do this is to bump
text_quote_chars up into pan/base/base-prefs.[ch].
base_prefs_init() will get another argument taking the quote chars,
and the declaration/definition of text_quote_chars will be in
base-prefs.[hc].

cheers,
Charles
Comment 5 Charles Kerr 2002-03-22 19:30:15 UTC
Just as an FYI for posterity's sake, tangentally related to
this patch, one of GNKSA's ``SHOULD'' clauses is that
when the user requests a followup or an e-mail reply,
the quote prefix SHOULD be `>'.

So though we may recognize other quote characters in the
display for the sake of colorizing/wrapping, we'll still
be posting with '>'.

See http://www.xs4all.nl/~js/gnksa/gnksa.txt
Comment 6 Christophe Lambin 2002-03-22 22:02:23 UTC
*** Bug 68159 has been marked as a duplicate of this bug. ***
Comment 7 Colin Leroy 2002-03-23 02:52:52 UTC
No problem for gnksa, I didn't want to allow user quoting with | or so...
Following is a new patch that fixes quoting when replying
(base-prefs.c was exactly what I was looking for without having found
it :)
Hope it's fine,
Colin
Comment 8 Colin Leroy 2002-03-23 02:53:37 UTC
Created attachment 7318 [details] [review]
the new patch (-p1 as usual)
Comment 9 Colin Leroy 2002-03-23 02:56:20 UTC
Created attachment 7319 [details] [review]
I didn't see the comment on bug 68159 ; this patch is with ">:|" by default.
Comment 10 Colin Leroy 2002-03-23 03:11:20 UTC
Created attachment 7320 [details] [review]
i forgot the test directory in the last one, sorry :-/
Comment 11 Charles Kerr 2002-03-23 05:50:55 UTC
committed to pan-0-11-fix branch.. :)