mu4e-date-format-long and message-citation-line-format

285 views
Skip to first unread message

Ramon Diaz-Uriarte

unread,
Nov 5, 2013, 6:05:02 PM11/5/13
to mu-di...@googlegroups.com
Dear All,

I am having two problems that I suspect are related:

1. I am trying to change the citation line when replying or forwarding. I am doing

(setq message-citation-line-function 'message-insert-formatted-citation-line)
(setq message-citation-line-format "On %a, %d-%m-%Y, at %R, %f wrote:")


but all PM hours are treated as AM.  I am not even sure this is a mu4e problem, but I can't tell.


2. I thought the above could be due to the Date field in the Message View, which shows hours as PM (as the original setting of mu4e-date-format-long was %c). I've tried chaging the variable mu4e-date-format-long, but it seems to have no effect. In fact, I went so far as to change it in the source .el file (mu4e-vars.el) but it seems to have no effect at all.


But both issues seem rather bizarre to me.

In case it matters, changing mu4e-headers-time-format does work as expected.



Best,

R.




Ramon Diaz-Uriarte

unread,
Nov 5, 2013, 7:18:21 PM11/5/13
to mu-di...@googlegroups.com
A further update, that does not fully explain the problem to me, but solves the issue at least :-).

I was launching emacs from gmrun (I use xmonad as WM). That lead to the time being shown as AM/PM in the message view, and to the changes in the citation line format not to work. If, however, I start emacs from a terminal, things work fine: the date in the message view is shown in 24h format, and the citation line format change works. The problem seems to be that gmrun is not using the LC_TIME I have in my .bashrc (LC_TIME="en_GB.UTF-8").

Best,

R.

Alan Schmitt

unread,
Nov 6, 2013, 3:19:59 AM11/6/13
to mu-di...@googlegroups.com
Hi Ramon,

rdi...@gmail.com writes:

> A further update, that does not fully explain the problem to me, but solves
> the issue at least :-).
>
> I was launching emacs from gmrun (I use xmonad as WM). That lead to the
> time being shown as AM/PM in the message view, and to the changes in the
> citation line format not to work. If, however, I start emacs from a
> terminal, things work fine: the date in the message view is shown in 24h
> format, and the citation line format change works. The problem seems to be
> that gmrun is not using the LC_TIME I have in my .bashrc
> (LC_TIME="en_GB.UTF-8").

On thing you can do is change the LC_TIME directly in your .emacs. For
instance I have this in mine:

#+BEGIN_SRC emacs-lisp
(setenv "LANG" "en_US.UTF-8")
#+END_SRC

Alan

Ramon Diaz-Uriarte

unread,
Nov 6, 2013, 3:42:42 AM11/6/13
to mu-di...@googlegroups.com

Hi Alan,
Thanks for the suggestion. I tried that (removing the org part, leaving just the
setenv, and using LC_TIME and LANG) but it still does not seem to work.


What I do not understand is that it seems that the way Date is displayed in
message affects what message-citation-line-format produces (presumably, because
it gets the wrong information when I ask for "%R" in the citation-line-format
when date was being displayed with AM/PM).


Best,

R.


>
> Alan

--
Ramon Diaz-Uriarte
Department of Biochemistry, Lab B-25
Facultad de Medicina
Universidad Autónoma de Madrid
Arzobispo Morcillo, 4
28029 Madrid
Spain

Phone: +34-91-497-2412

Email: rdi...@gmail.com
ramon...@iib.uam.es

http://ligarto.org/rdiaz



Reply all
Reply to author
Forward
0 new messages