Re: Proposal: do not align tags in Agenda

2020-10-04 Thread Michaël Cadilhac
a misunderstanding of tags alignment). Here's a simpler patch. It may be a matter of taste, though. Cheers, M. On Tue, Sep 29, 2020 at 10:36 PM Kyle Meyer wrote: > > Michaël Cadilhac writes: > > > Hello all, > > > > I have a wide screen, which makes right edge alignment of tags in

Proposal: do not align tags in Agenda

2020-09-24 Thread Michaël Cadilhac
Hello all, I have a wide screen, which makes right edge alignment of tags in the agenda inconvenient (they're hard to match with the main entry). Setting org-agenda-tags-column to a specific column overwrites part of the entry, which is not optimal. I'd simply want the tag to be put _after_ the

Re: Why is Babel-C trimming its output?

2020-07-17 Thread Michaël Cadilhac
s there from the first commit of the file in git, so > there's no commit message to explain. > > My guess is that it was added to clean up cases that resulted in extra > trailing whitespace, but I dunno. > > > On Wed, Jul 15, 2020 at 7:12 PM Michaël Cadilhac > wrote: >

Why is Babel-C trimming its output?

2020-07-15 Thread Michaël Cadilhac
Hello, Quick question here: in ob-C.el, before returning the output of a C file, there's this line: (setq results (org-trim (org-remove-indentation results))) That seems quite arbitrary; is it on purpose? I have a C file that outputs some sort of list of formatted numbers, e.g.: 0 -17.8

Re: [O] org-icalendar: Change dates to today in VEVENT export

2019-09-15 Thread Michaël Cadilhac
Hi there, On Thu, 5 Sep 2019 at 11:53, Nicolas Goaziou wrote: > Michaël Cadilhac writes: > > +(defun org-icalendar-today-timestamp () > > + "Return a TIMESTAMP object for today, at 00:00." > > + (let ((dt (decode-time))) > > +(list 'timestamp > &

[O] Scheduling in a narrowed subtree: Bug?

2019-09-09 Thread Michaël Cadilhac
Is this the expected behavior? 1. Create an empty org file 2. Insert * Test * Test 2 3. With the cursor at Test, hit C-x n s to narrow the view to the Test subtree 4. Hit C-c C-s to schedule the line at any date. As a result, the SCHEDULED keyword is _not_ included in the narrow view, and

Re: [O] org-clock: Custom shortcuts for C-u C-c C-x C-i

2019-08-30 Thread Michaël Cadilhac
By the way, I've been using this for quite some time, and I find it quite useful. It may be worth considering it for inclusion—see attached patch. Opinions? On Thu, 14 Feb 2019 at 06:32, Michaël Cadilhac wrote: > Hi Leo; > > On Wed, 13 Feb 2019 at 17:46, Leo Gaspard wrote: &g

Re: [O] Can I get the results of shell code block when exit code is non-zero?

2019-08-29 Thread Michaël Cadilhac
Hi there, This is the expected behavior, implemented in `org-babel-eval`. (By the way, the docline of `org-babel-sh-evaluate` seems to talk about a different function.) As a workaround, you could define a new shell that always returns 0: (push "0bash" org-babel-shell-names)

[O] HTML export with LaTeX babel blocks

2019-08-28 Thread Michaël Cadilhac
My goal is to export SVG files of TikZ drawings in HTML. Now, what follows is a bit of a rant on `org-babel-execute:latex`; let's go through the options: - You're exporting to PNG without imagemagick: This uses `org-create-formula-image` which works really well, but it discards the options of

Re: [O] [Patch] Hide the file column in a clock report.

2019-08-28 Thread Michaël Cadilhac
Here attached. Let me know if that's all good! Cheers, M. On Sun, 3 Sep 2017 at 03:15, Nicolas Goaziou wrote: > Hello, > > Michaël Cadilhac writes: > > > From f251bf0fa764e245eabe88e3959e801af5c8fd37 Mon Sep 17 00:00:00 2001 > > From: =?UTF-8?q?Micha=C3=ABl=20Cadil

Re: [O] org-icalendar: Change dates to today in VEVENT export

2019-08-28 Thread Michaël Cadilhac
Hopefully I didn't miss anything—I've been running the patched version for weeks now, so it should be stable in any case. Patch 0003 above should still be OK. Cheers, M. On Tue, 12 Feb 2019 at 02:34, Nicolas Goaziou wrote: > Hello, > > Michaël Cadilhac writes: > > > Well,

Re: [O] Completely hide the :PROPERTIES: drawer in org-mode.

2019-08-28 Thread Michaël Cadilhac
Apologies for the delay. Is that alright? On Thu, 14 Feb 2019 at 17:15, Nicolas Goaziou wrote: > Michaël Cadilhac writes: > > > Will do. This in particular requires to swap fontifying the drawers > > and the keywords (since :END: and :PROPERTIES: are keywords): >

[O] [PATCH] Export with verbatim LaTeX removes spaces

2019-07-08 Thread Michaël Cadilhac
Hi, When LaTeX is exported verbatim, some spaces are lost. Try for instance: M-: (let ((org-html-with-latex 'verbatim)) (org-html-export-as-html)) RET on a buffer containing "$a$ $b$". Post-blanks were simply not added back, see below. Thanks! Cheers, Michaël ox.el: Add post-blanks when

[O] org-clock-resolving-clocks & idle

2019-02-25 Thread Michaël Cadilhac
Hi there; CONTEXT: When I'm idling with the clock running, Org asks if I want to resolve the clock when I come back (this is by setting org-clock-idle-time). PROBLEM: I'm not sure how recent the change was, but Org started asking me _multiple times_ what I want to do when back. CAUSE: It seems

[O] org-log-post-message: is it properly reset?

2019-02-22 Thread Michaël Cadilhac
Hi there; >From time to time, I have some spurious "Entry repeats" messages when editing tasks that have no repetition. I've tracked that down to org-log-post-message being message'd in org-store-log-note, and I can't really see anywhere where the variable is reset. Should it be reset after

Re: [O] Completely hide the :PROPERTIES: drawer in org-mode.

2019-02-14 Thread Michaël Cadilhac
On Thu, 14 Feb 2019 at 16:11, Nicolas Goaziou wrote: > Would you want to provide a patch including the replacement of > `org-special-keyword' with `org-drawer'? Will do. This in particular requires to swap fontifying the drawers and the keywords (since :END: and :PROPERTIES: are keywords):

Re: [O] Completely hide the :PROPERTIES: drawer in org-mode.

2019-02-14 Thread Michaël Cadilhac
Hi there; Again, thanks for your help Nicolas—that's much appreciated. On Wed, 13 Feb 2019 at 15:55, Nicolas Goaziou wrote: > The face you use for drawers is, well obnoxious, to say the least. No > wonder you find them cluttering your display. I agree; following your advice, I took the simpler

Re: [O] org-clock: Custom shortcuts for C-u C-c C-x C-i

2019-02-14 Thread Michaël Cadilhac
Hi Leo; On Wed, 13 Feb 2019 at 17:46, Leo Gaspard wrote: > Michaël Cadilhac writes: > > This is not possible out of the box; can you say a bit more about how > > you expect to indicate which tasks are to be always present? > > I would be thinking of something like defining

Re: [O] Completely hide the :PROPERTIES: drawer in org-mode.

2019-02-13 Thread Michaël Cadilhac
On Wed, 13 Feb 2019 at 14:32, Nicolas Goaziou wrote: > Since properties drawers are almost exclusively folded, I don't think > incriminated properties clutter display. Besides, I don't think any > property is irrelevant to every user. How would we know? I'd have a customizable list of

Re: [O] org-clock: Custom shortcuts for C-u C-c C-x C-i

2019-02-13 Thread Michaël Cadilhac
Hi there Leo; This is not possible out of the box; can you say a bit more about how you expect to indicate which tasks are to be always present? A quick-and-dirty way to implement something along these lines is to modify org-clock-history-push to always keep a selected set of markers in

Re: [O] Completely hide the :PROPERTIES: drawer in org-mode.

2019-02-12 Thread Michaël Cadilhac
Hi there; Agreed, hiding properties entirely seems overkill and quite limited in use cases. However, I think this stems from a more general need to hide properties that are irrelevant to the user—for instance, UIDs created by ox-icalendar, or other internal properties. As a user, I see no need

Re: [O] org-icalendar: Change dates to today in VEVENT export

2019-02-07 Thread Michaël Cadilhac
On Thu, 7 Feb 2019 at 13:30, Nicolas Goaziou wrote: > If you think that's a feature Org ought to provide, please consider > sending a patch about it. Well, certainly. I may not have had the best discipline in writing these, so turning them into patches is a bit painful. Let me know if I can

Re: [O] org-icalendar: Change dates to today in VEVENT export

2019-02-07 Thread Michaël Cadilhac
does not recognize X-WR-TIMEZONE.) Hopefully this will be useful for someone :-) Cheers; M. On Fri, 1 Feb 2019 at 12:47, Michaël Cadilhac wrote: > Hi there yall; > > I use org-icalendar to export my TODOs and events to an ics, that is then > imported in Google Calendar. As far

[O] org-icalendar: Change dates to today in VEVENT export

2019-02-01 Thread Michaël Cadilhac
Hi there yall; I use org-icalendar to export my TODOs and events to an ics, that is then imported in Google Calendar. As far as I can see, Google Calendar still doesn't support VTODOs, so only the VEVENTs are relevant. *My goal is to have my day on Google Calendar looks like my Org Agenda; *in

[O] [PATCH] org.el: Fix typo

2018-10-09 Thread Michaël Cadilhac
Hi there; Smallest possible typo. :-) Cheers; M. From 18461bcddf8549f03f5a57128900c3d56b6a7381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Cadilhac?= Date: Tue, 9 Oct 2018 17:57:55 +0100 Subject: [PATCH] org.el: Fix typo * lisp/org.el (org-enforce-todo-checkbox-dependencies): Fix

Re: [O] [Patch] Hide the file column in a clock report.

2017-09-02 Thread Michaël Cadilhac
On 2 September 2017 at 03:20, Adam Porter wrote: > One suggestion: > > +:hidefiles @r{Should the file column be hidden when multiple files are > parsed?} > > It would be clearer if it said something like, "Hide file column when > multiple files are parsed." The other

[O] [Patch] Hide the file column in a clock report.

2017-08-31 Thread Michaël Cadilhac
Hi there; Not sure it's for everyone, but I really don't need the file column in my clock report, even though I use multiple files. Here's a patch that allows this, if there's any interest. M. From f251bf0fa764e245eabe88e3959e801af5c8fd37 Mon Sep 17 00:00:00 2001 From:

Re: [O] org-icalendar--combine-files aggressively releases buffers

2017-08-31 Thread Michaël Cadilhac
Hi there; On 31 August 2017 at 15:00, Nicolas Goaziou wrote: > After a cursory look I think we should: > > 1. Remove (org-agenda-prepare-buffers files), which doesn't seem to be >useful and can lead to errors (it can throw `nextfile') but nothing >catches it. > >

[O] org-icalendar--combine-files aggressively releases buffers

2017-08-31 Thread Michaël Cadilhac
Hi there; I have an idle timer that uses org-icalendar-combine-agenda-files to publish my agenda. It may well be that I hadn't saved one of the Org files used in there, hence when org-icalendar--combine-files uses : (org-release-buffers org-agenda-new-buffers) …I'm prompted to save before

[O] iCalendar export and missed deadlines.

2017-08-09 Thread Michaël Cadilhac
Hi there; When I miss a deadline and scheduled todo, the org-agenda neatly prints the item until I've turned it to DONE. In iCalendar export, I expect/wish that it is also the case when deadlines and scheduled todos are exported as Events (I use VEVENT's as Google Calendar seems to not support

[O] [PATCH] org-capture.el: Document what the time stamp is in capture templates

2017-08-05 Thread Michaël Cadilhac
On 5 August 2017 at 12:46, Adam Porter wrote: > If you could send a TINYCHANGE patch to the docstring, I'm sure Nicolas > would be grateful! :) Sure thing! M. From 7c8569f6bf694bb45ac5334c3bcb13e54e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Cadilhac?=

Re: [O] Time stamped TODOs with current-time from everywhere.

2017-08-05 Thread Michaël Cadilhac
On 5 August 2017 at 04:27, Adam Porter <a...@alphapapa.net> wrote: > Michaël Cadilhac <mich...@cadilhac.name> writes: > >> However, suppose I'm in Calfw; I jump to some date, hit SPACE and I'm >> now in Org-Agenda mode, ready to hit k to capture (because Calfw-Org &

[O] Time stamped TODOs with current-time from everywhere.

2017-08-04 Thread Michaël Cadilhac
Hi there people; I have a few TODO templates of the form: ("td" "Todo deadline (with reminders)" entry (file "~/org/todos.org") "* TODO %^{Todo}\n DEADLINE: %^t\n %U\n%i%?") The goal is to have two time stamps: an inactivated one (%U), recording the time the TODO

[O] Bug: Wrong type argument: integer-or-marker-p, nil on refile

2017-08-02 Thread Michaël Cadilhac
Hi there everyone; Here's the ECM. init.el: (require 'org) (setq org-refile-use-outline-path (quote file)) Now open an Org file, say foo.org, and type C-u C-c C-w foo.org/ RET At org.el:11832, pos is nil. Cheers; M.