Re: [O] refile workflow -- move to same heading in different file?

2017-08-06 Thread Adam Porter
Raymond Zeitler writes: Hi Ray, > A final update... it works. Of course you knew that, but I was > convinced otherwise. Glad you got it working. :) > > One Internet search result for "Emacs No Match" linked to a subtopic > of Completion in the Emacs manual. So I read more

Re: [O] Slow speed of week and month views

2017-08-06 Thread Adam Porter
Karl Voit writes: >> It might be helpful if you posted a censored version of your large Org >> files somewhere. There's a function by Nicolas that replaces all the >> characters with "x", and there's also a function that replaces words >> with random words of the same

Re: [O] ANN: org-super-agenda

2017-07-29 Thread Adam Porter
Adam Porter <a...@alphapapa.net> writes: Hi friend, FYI, this package is now on MELPA, and has had significant changes since I announced it. Please let me know any feedback you may have. Thanks. https://github.com/alphapapa/org-super-agenda

Re: [O] ANN: org-super-agenda

2017-07-29 Thread Adam Porter
Adam Porter <a...@alphapapa.net> writes: >> How do I get un-prioritised TODO entries listed? > > I don't have a selector for unprioritized TODO entries...yet. I'll look > into that. :) Silly me, you can already do that, like this: #+BEGIN_SRC (let ((org-agenda-fi

Re: [O] ox-taskjuggler on MELPA useful despite org-plus-contrib

2017-08-08 Thread Adam Porter
Tim Cross writes: > While there are some minor issues with org-plus-contrib, I find them to > be minor and mostly due to limitations in package.el (for example, > dependency on org results in both org-plus-contrib and org packages > being installed). In fact, I find

Re: [O] calculate weekday of birthday

2017-07-31 Thread Adam Porter
Hi Salome, The decode-time function returns a list that includes the day-of-week as a number from 0-6. You'll have to give it an encoded time, which you can use encode-time for. A wild idea would be to use the shell "date" command, which is overkill for this, but I just happen to have this code

Re: [O] [RFC] Shrink columns dynamically

2017-07-31 Thread Adam Porter
feedback here is that maybe the startup keywords would be more descriptive if they were something like "table-shrink" or "column-shrink". I could imagine some new Org users conflating "folded" and "shrink" until they have used a more advanced feature like table column width cookies. :) Thanks, Adam

Re: [O] ANN: org-super-agenda

2017-07-28 Thread Adam Porter
Eric S Fraga <e.fr...@ucl.ac.uk> writes: > Hi Adam, > > have now given this a try. Looks really nice. Some questions, if I > may. I would like to have the following sections: Hi Eric, Thanks, I appreciate your feedback. > 1. items that have deadlines, any deadline for

Re: [O] agenda configurable entry-text-mode

2017-07-28 Thread Adam Porter
Alexander Baier <alexander.ba...@mailbox.org> writes: > Hi Adam, > > I hadn't heard of org-quick-peek. I found > https://github.com/alphapapa/org-quick-peek but could not find the > package on MELPA, do you know why this is the case? Hi Alexander, Actually I haven't subm

Re: [O] Update to org-protocol-capture-html

2017-07-28 Thread Adam Porter
Nikolay Kudryavtsev writes: > My testing had shown that if in > org-protocol-check-filename-for-protocol we have (server-delete-client > _client) instead of (server-edit), the client process gets closed > fine. May I propose such a change? Hi Nikolay, I'm not

Re: [O] ANN: org-super-agenda

2017-07-29 Thread Adam Porter
Adam Porter <a...@alphapapa.net> writes: > After thinking about this some more, I have an idea: if I go ahead and > import the agenda-building functions into my package and modify them, I > can use a minor mode to override the standard functions with advice. > That way use

[O] FYI: with-org-today-date macro, helps with testing

2017-07-29 Thread Adam Porter
Hi friends, Just wanted to drop this here. I was testing some agenda-related code, and got tired of having to keep moving the dates forward on my test data as days passed in real life, so after digging into the agenda code, I came up with this macro that makes testing much easier: #+BEGIN_SRC

Re: [O] [PATCH] Add option to automatically align tags in agenda view

2017-08-08 Thread Adam Porter
Kyle Meyer <k...@kyleam.com> writes: >From ea3007a8b35d727f71860bd7697808f90d5e1e66 Mon Sep 17 00:00:00 2001 From: Adam Porter <a...@alphapapa.net> Date: Mon, 7 Aug 2017 08:50:26 -0500 Subject: [PATCH] org-agenda.el: Add option to automatically align tags in agenda * lisp/org-ag

Re: [O] [PATCH] Add option to automatically align tags in agenda view

2017-08-08 Thread Adam Porter
Kyle Meyer writes: >> (org-agenda-align-tags): Handle automatic alignment >> (org-agenda-tags-column): Add 'auto setting > > You're missing the file name in the entries above. Also, the entries > should end in a period. Oops, fixed. > Since you're changing the default value,

Re: [O] verbatim =[[link]]= and code ~[[link]]~ render as links

2017-08-08 Thread Adam Porter
Kaushal Modi writes: > Are you referring to: > > [[https://www.example.com][=verbatim link descr=]] > > ? Well, here's what I've noticed: + [[https://www.example.com][=verbatim link descr=]] - Renders in the Emacs buffer as a link, colored as a link rather than a

Re: [O] Change in appearance of org-todo-keywords

2017-08-09 Thread Adam Porter
Colin Baxter writes: > Considering how fundamental keywords and tags are to org-mode, I'm a > little surprised that only two other users have reported the issue. It's because of the bravery of users like you that I don't run master. ;)

Re: [O] agenda configurable entry-text-mode

2017-08-09 Thread Adam Porter
Alexander Baier writes: > This looks really nice! A few things I discovered: Thanks, I will fix these soon!

Re: [O] [PATCH] Add option to automatically align tags in agenda view

2017-08-07 Thread Adam Porter
Kyle Meyer <k...@kyleam.com> writes: > ... with just one case and a fallthrough, I'd prefer you test with eq > rather than using pcase. Hi Kyle, Ok, I've updated the patch. Thanks, Adam >From 99a61e09d5267ddaa84e8f93fbab161144aea011 Mon Sep 17 00:00:00 2001 Fr

Re: [O] verbatim =[[link]]= and code ~[[link]]~ render as links

2017-08-08 Thread Adam Porter
Wolfram Volpi writes: > org-mode renders links in verbatim and code as links: > > verbatim: =[[link]]= > > code: ~[[link]]~ > > They should be rendered as plain text. Hi Wolfram, Why do you think they should be rendered as plain text instead of as links? I use

Re: [O] emacs-orgmode "Archives Search String" search box is broken.

2017-08-08 Thread Adam Porter
Wolfram Volpi writes: > From http://lists.gnu.org/archive/html/emacs-orgmode/, the emacs-orgmode > "Archives Search String". > The search box gets results that have nothing to do with the search terms I > entered. > > hesiii said the same thing on >

Re: [O] source block breaks when code looks like heading

2017-08-08 Thread Adam Porter
bruce robertson writes: > How would the source for the math then work? If you edit the code-block with C-c ', the escape characters will be handled automatically.

Re: [O] ox-taskjuggler on MELPA useful despite org-plus-contrib

2017-08-08 Thread Adam Porter
Nicolas Goaziou writes: >> At least until the underlying problem with org-plus-contrib is >> resolved. > > What exactly is the underlying problem? FWIW I have been using org-plus-contrib for a while now, and I haven't had any problems with my customizations.

[O] [PATCH] Add option to automatically align tags in agenda view

2017-08-07 Thread Adam Porter
Hi Nicolas, Here is a patch to optionally automatically align tags in the agenda view to the right edge of the window. I don't yet have the CA done, but I think this qualifies as a tinychange. Thanks, Adam >From 8cd0a4035ddb8fcd90d6011c9fd529526472b379 Mon Sep 17 00:00:00 2001 From: A

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

2017-08-05 Thread Adam Porter
Michaël Cadilhac <mich...@cadilhac.name> writes: > Thanks for your expertise Adam. Glad I could help, but I think you did the sleuthing here. ;) > It seems indeed that org-agenda-capture (or equivalently, setting > org-capture-use-agenda-date) affects the default date at al

Re: [O] Getting ox-taskjuggler on MELPA

2017-08-05 Thread Adam Porter
Simon Guest writes: > I am a user of ox-taskjuggler. Since I am currently running the > version of org mode bundled with Emacs, this doesn't include the > contrib stuff like ox-taskjuggler. So currently I have had to grab a > copy of ox-taskjuggler.el manually, and stick it on

Re: [O] Firefox extension "Org-capture" stopped working after update

2017-08-17 Thread Adam Porter
Colin Baxter writes: Hi Colin, > You can also launch conkeror using palemoon, and this looks like the > future. Thanks, I have heard of conkeror but never got around to trying it. I'm not sure what you mean about launching it from palemoon though. Why would you do that?

[O] named anchors in HTML export

2017-08-18 Thread Adam Spiers
an anchor for an arbitrary element, short of some ugly "+HTML" hack? By the way, this question is also being tracked here: https://github.com/org2blog/org2blog/issues/239 Thanks! Adam

Re: [O] named anchors in HTML export

2017-08-19 Thread Adam Spiers
On 19 August 2017 at 09:50, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Adam Spiers <orgm...@adamspiers.org> writes: >> I was also expecting to be able to use #+NAME: foo in front of a >> headline > > You cannot use a NAME keyword to a headline (or an in

Re: [O] make compile fails

2017-08-19 Thread Adam Porter
Jarmo Hurri writes: > Running 'make cleanall' didn't help. > > However, a fresh clone followed by a reconfiguration of local.mk solved > the issue. Most likely the result of a local.mk that is no longer > consistent. Just FYI, you can avoid having to re-clone the repo by

Re: [O] [PATCH] org-agenda: Add 'none setting for org-agenda-overriding-header

2017-08-19 Thread Adam Porter
r changes. Thanks, Adam>From 203bc583da0c482ab7092623383fe47c2d729420 Mon Sep 17 00:00:00 2001 From: Adam Porter <a...@alphapapa.net> Date: Sat, 19 Aug 2017 21:26:12 -0500 Subject: [PATCH] org-agenda: Refactor org-agenda-overriding-header code Replace org-agenda-overriding-header tests in th

Re: [O] [PATCH] org-agenda: Add 'none setting for org-agenda-overriding-header

2017-08-22 Thread Adam Porter
Hi Nicolas, Nicolas Goaziou writes: > Nitpick: the paragraph above usually comes after the list of changes. Fixed. > Nitpick: you can only write "Use macro" once, on the last line. Fixed. > Why `cl-defmacro'? Usually, `defmacro' is enough. Fixed. > While we're at

Re: [O] dynamic date arithmetic in a macro or otherwise (simulating a "date counter")?

2017-08-22 Thread Adam Porter
I just discovered this yesterday, and it seems relevant: https://github.com/abo-abo/tiny Apparently it can be used like this: m\n8| TODO Learning from Data Week %(+ x 2) \nSCHEDULED: <%(date "Oct 7" (* x 7))> DEADLINE: <%(date "Oct 14" (* x 7))> Which results in: TODO Learning from

Re: [O] [PATCH] org-agenda: Add 'none setting for org-agenda-overriding-header

2017-08-22 Thread Adam Porter
Adam Porter <a...@alphapapa.net> writes: > I'll post a new patch soon. Thanks. Hi Nicolas, Here are the patches. Please let me know if any other changes are needed. Thanks, Adam >From 2b938e98e2cc2409044eb7b03bff98b0a37d404e Mon Sep 17 00:00:00 2001 From: Adam Porter <a..

Re: [O] counter macro in dates?

2017-08-23 Thread Adam Porter
Matt Price writes: > I'd love to be able generate dates dynamically using the {{{n}}} org > macro, or some other mechanism. I don't immediately see how that would > be possible but maybe someone can guide me. I'd want to do something > equivalent to this pseudo-elisp: > >

Re: [O] merging subtrees (in a syllabus)

2017-08-23 Thread Adam Porter
* TODO Learning from Data Week 3 SCHEDULED: <2013-10-14 Mon> DEADLINE: <2013-10-21 Mon> [...] Hope this helps! Adam

Re: [O] [RFC] Remove Org Struct mode

2017-08-23 Thread Adam Porter
Rasmus writes: > I also would like to see a minor-mode for Org-like cycling when using > outline-minor-mode, as I use this feature in init.el. Outshine provides this feature. In my init file, I have headers like: Org And when I press TAB with point on that line, it

Re: [O] Firefox extension "Org-capture" stopped working after update

2017-08-18 Thread Adam Porter
Colin Baxter writes: > Conkeror is "just" a bunch of javascripts. You need a runtime > environment, like Gecko or XULRunner, to launch it. As we know, Mozilla is no > longer actively developing XULRunner. One option is to use Gecko or Goanna > (or XULRunner) in palemoon and

Re: [O] mathjax

2017-06-12 Thread Adam Aviv
omize this variable. > > This variable was introduced, or its default value was changed, in > version 8.3 of the Org package. > > > Value: ((path "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/ > MathJax.js?config=TeX-AMS_HTML") > (scale "100") >

[O] org-wikinodes and org 9.0.7

2017-06-04 Thread Adam Sneller
I am having trouble using org-wikinodes with the latest version of org (9.0.7). When I open my test.org file, I get a message in the mini-buffer "Failed to add wikinodes to 'org-font-lock-extra-keywords'". So after some trial and error, I changed this line in org-wikinodes:

Re: [O] Bug: markdown export errors on headers [9.0.9 (9.0.9-82-gb862c2-elpaplus @ /home/fommil/.emacs.d/elpa/org-plus-contrib-20170814/)]

2017-09-08 Thread Adam Porter
"Loris Bennett" writes: >> I and others have asked a few times why the packages are structured in >> this way, but nobody seems able to provide the rationale. Personally, I >> think we should just have an org package and an org-contrib package >> which depends on the

Re: [O] add additional tag (using %^G) to existing tag in org capture

2017-09-08 Thread Adam Porter
Xebar Saram writes: > the issues is that it dosent seem to add an additional tag to the already > defined tag list in the capture (:@work: ) but instead add another :TAG: field > apart from the already existing tag field. so the final result looks like > this: > > ** TODO

Re: [O] Automatic mtime and ctime on all or select group of trees?

2017-09-06 Thread Adam Porter
Jorge Morais Neto writes: > Thank you for the tip. But instead of adding precisely what you > suggested, I have added “:group 'org-expiry”. The warning is gone and > the option does show up when I invoke customize-group and type > “org-expiry”. I have run some other

Re: [O] [PATCH] org-agenda: Add 'none setting for org-agenda-overriding-header

2017-09-06 Thread Adam Porter
Nicolas Goaziou writes: > If you feel like it, some tests in "test-org-agenda.el" would be nice, > too. Hi Nicolas, I looked at that file and I see that it's pretty basic. I recently put together a sort of testing framework for org-super-agenda that makes it pretty

Re: [O] [PATCH] org-agenda: Add 'none setting for org-agenda-overriding-header

2017-09-06 Thread Adam Porter
By the way, one of its features is that, when a test doesn't pass, it shows a line-by-line diff of the agenda buffer compared with the saved result. It's saved me a lot of time when debugging test failures, as otherwise I'd have to visually compare a large agenda buffer. :)

Re: [O] How to use the list search?

2017-09-06 Thread Adam Porter
Nick Dokos writes: > Ah, Gmane, Gmane - wherefore art thou, Gmane? Indeed. In the meantime, this might also be useful, as it has a decent UI. I haven't tested its searching extensively, but it seems to give more useful results than the lists.gnu.org server.

Re: [O] org-agenda-skip-function does not find inherited tags

2017-09-08 Thread Adam Porter
I think the function org-get-tags-at should also be helpful here.

Re: [O] add additional tag (using %^G) to existing tag in org capture

2017-09-07 Thread Adam Porter
Xebar Saram writes: > is there anyway to add a tag to the current tag in the capture template > (:@work: above). Hey Z, Sorry, I don't understand the question. Can you clarify what you mean?

Re: [O] counter macro in dates?

2017-08-23 Thread Adam Porter
Kaushal Modi writes: > +1 for tiny :) > > When I discovered it, I went a bit overboard and wrote a helper fn > (modi/tiny-helper in here[1]) so that I don't have to remember the > tiny syntax. I still use tiny from time to time. > > [1]: >

Re: [O] [RFC] Remove Org Struct mode

2017-08-23 Thread Adam Porter
ally in outshine.el? Well, the first thing that comes to mind is to unset the properties of the outline-level faces, but I'm not sure if you can do that per-buffer. So you might try removing the outline-font-lock-keywords or outline-font-lock-faces. Hope this helps. Adam

[O] Old org.el ending up in current tar packages?

2017-08-23 Thread Adam Porter
It seems that org.el in org-20170821.tar is out of date. Sharon Kimble noticed that something was wrong, and after much digging, we found that org-clock.el has been updated to have calls to org-time-string-to-seconds with 2 arguments, but the function definition in org.el only takes 1 argument.

Re: [O] Issue with org-super-agenda and %%diary

2017-08-20 Thread Adam Porter
BTW, Robert and I fixed this here: https://github.com/alphapapa/org-super-agenda/issues/11

Re: [O] [PATCH] org-agenda: Add 'none setting for org-agenda-overriding-header

2017-08-17 Thread Adam Porter
at this approach gives more flexibility, allowing users to insert a blank header if they want. But if you would prefer it that way, I'll adjust the patch. Let me know. Thanks, Adam

Re: [O] Automatic mtime and ctime on all or select group of trees?

2017-09-02 Thread Adam Porter
Samuel Wales writes: > pedantry: > > birth time, sometimes called btime, is a new kernel feature, present > in some filesystems but not traditionally available to stat. Actually that's a very good reminder, especially for people who work on both Windows and *nix. In

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

2017-09-02 Thread Adam Porter
Michaël Cadilhac writes: > While I definitely agree that question form is weird, I copied it from > the ":level" option (arguably without thinking twice) which reads: > > :level @r{Should a level number column be included?} > > In any case, let's not repeat that

Re: [O] Bug: markdown export errors on headers [9.0.9 (9.0.9-82-gb862c2-elpaplus @ /home/fommil/.emacs.d/elpa/org-plus-contrib-20170814/)]

2017-09-04 Thread Adam Porter
"Loris Bennett" writes: > I didn't know about this function either. Is it correct that the org > parts of 'org-plus-contrib' shadow the whole of 'org', e.g. > > ... > /home/loris/.emacs.d/elpa/org-plus-contrib-20170828/org hides >

Re: [O] keyboard scrolling with inline images

2017-09-02 Thread Adam Porter
This happens to me as well. I always thought it was simply an Emacs limitation. Do any of the options in "M-x customize-apropos RET scroll RET" make a difference?

Re: [O] [RFC] Remove Org Struct mode

2017-09-02 Thread Adam Porter
Michael Brand writes: > I assume in the above sentence you meant that a comment to be a > heading has not to be indented. Well, yes and no. On my config, " ;;; test" is highlighted as a heading, but it's only foldable as ";;; test". > That is at least what I

Re: [O] EXPORT_FILE_NAME property default to heading content?

2017-09-02 Thread Adam Porter
Tim Visher writes: > I like the filename of the exported file to always match the content of the > heading being exported. Is that possible? At the moment I basically duplicate > it > like: > > ** Foo Heading > :PROPERTIES: > :EXPORT_FILE_NAME: Foo Heading > :END: I

Re: [O] Ag (the Silver Searcher) knows about Org files now

2017-09-01 Thread Adam Porter
Ah, you had me for a moment there: I thought you meant that it understood Org files semantically, so it could search entries within Org files. That would be very helpful for helm-org-rifle. Maybe someday...

Re: [O] Bug: markdown export errors on headers [9.0.9 (9.0.9-82-gb862c2-elpaplus @ /home/fommil/.emacs.d/elpa/org-plus-contrib-20170814/)]

2017-09-01 Thread Adam Porter
Kaushal Modi writes: > M-x list-load-path-shadows will also help. Pay attention to shadows on org > packages. Wow, I did not know about that command. I have a bit of cleaning-up to do. :)

Re: [O] How to use the list search?

2017-09-01 Thread Adam Porter
You're not doing anything wrong, it's just not a very good search engine.

Re: [O] Bug: markdown export errors on headers [9.0.9 (9.0.9-82-gb862c2-elpaplus @ /home/fommil/.emacs.d/elpa/org-plus-contrib-20170814/)]

2017-09-01 Thread Adam Porter
Wow, thanks, that is comprehensive. :)

Re: [O] [maint bug, org-clock.el] org-time-string-to-seconds

2017-09-01 Thread Adam Porter
Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> There’s bug in maint that made it into Org v9.0.10 via commit >> 7e241af591df15d2b7587648ed2342ae3a5d0e5b. In org-clock.el, the v9.1 >> signature of ‘org-time-string-to-seconds’ has made it into >>

Re: [O] links to id:

2017-09-01 Thread Adam Porter
I'm a bit confused by your description of the problem. Could you describe it again with explicit reproduction steps?

Re: [O] Change todo state when scheduled or a deadline is set

2017-09-01 Thread Adam Porter
Narendra Joshi writes: > I would like to change the state of a task to TODO when it is scheduled > or a deadline is set for the task. I couldn't find any hook that is > called after scheduling. How can I do this? Hi Narendra, You're right, looking at

Re: [O] Sort error [9.0.9 (9.0.9-88-g251f88-elpa @ /home/someone/.emacs.d/elpa/org-20170821/)]

2017-09-01 Thread Adam Porter
Curious, I see that the functions org-clocking-buffer and org-clock-is-active are identical. Should one of these be a deprecated alias?

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

2017-09-01 Thread Adam Porter
Michaël Cadilhac writes: > 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. This looks very nice! One suggestion:

Re: [O] grab html pages and copy them into a org buffer.

2017-09-01 Thread Adam Porter
:) Also see org-protocol-capture-html, which makes it easy to capture parts of web pages as Org syntax, instead of entire pages.

Re: [O] Automatic mtime and ctime on all or select group of trees?

2017-09-01 Thread Adam Porter
As Eric mentioned, a heading can be created by simply typing, so making that detect whether a new heading is created is possible, but I guess it would require some ugly hacks. Maybe if you could hook into the font-lock code, but like I said...ugly hacks. :) However, it would be easy to add

Re: [O] visualization of org-todo-list

2017-09-01 Thread Adam Porter
Pdj writes: > Dear All, > > in Org-Agenda(t) aka org-todo-list, > > 1) is it possible to get rid of the top lines > "Global list of TODO items of type: ALL > Available with ‘N r’: (0)[ALL] (1)TODO (2)WAIT ..." ? Not at the moment, but you could write an advice function to

Re: [O] [PATCH] org-agenda: Add 'none setting for org-agenda-overriding-header

2017-09-01 Thread Adam Porter
Hi Nicolas, Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Adam Porter <a...@alphapapa.net> writes: > >> Here are the patches. Please let me know if any other changes are >> needed. > > Thank you! Comments follow. > >> +(defmacro o

Re: [O] [PATCH] org-agenda: Add 'none setting for org-agenda-overriding-header

2017-09-02 Thread Adam Porter
Hi Nicolas, Here is another patch series with the requested changes. Thanks, Adam >From 98a90c8e05acc8733972be731e5a9eb1efe10fee Mon Sep 17 00:00:00 2001 From: Adam Porter <a...@alphapapa.net> Date: Sat, 19 Aug 2017 21:26:12 -0500 Subject: [PATCH 1/2] org-agenda: Refactor org-agenda-o

Re: [O] Sort error [9.0.9 (9.0.9-88-g251f88-elpa @ /home/someone/.emacs.d/elpa/org-20170821/)]

2017-09-02 Thread Adam Porter
Hi Nicolas, Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > Adam Porter <a...@alphapapa.net> writes: > >> Curious, I see that the functions org-clocking-buffer and >> org-clock-is-active are identical. Should one of these be a deprecated >

Re: [O] Export subtrees of level n

2017-09-03 Thread Adam Porter
Michael Welle writes: > Is there an existing way to say that I want to go up to a level n > heading and then export, or do I have to implement that by myself? I think you'll have to do it yourself. Here are a couple of ideas: 1. Write a function to export a subtree with a

Re: [O] Automatic mtime and ctime on all or select group of trees?

2017-09-02 Thread Adam Porter
Jorge Morais Neto writes: Hi Jorge, Thanks for sharing that, I didn't even remember org-expiry. Very clever use of it! You seem to know more about elisp than you give yourself credit for. :) > Suggestions welcome. It currently > gives compile warnings, which I ignore

Re: [O] function for inserting a block

2017-09-02 Thread Adam Porter
Hi Eric, Thanks for doing this. I've had some similar code in my config for a while. I'll share some of it here in case you find it useful in doing this. You especially might find the org-read-structure-template function useful. Note that some of this uses s and hydra, which obviously isn't

Re: [O] function for inserting a block

2017-09-03 Thread Adam Porter
Nicolas Goaziou writes: > You need to clean these markers at the end of the function. Markers set > to a position are never garbage-collected. Usually, it happens at the > end of an `unwind-protect'. Not that I oppose cleaning up markers after you're done with them, but

[O] Agenda-like/query language project: org-agenda-ng/org-ql

2018-05-10 Thread Adam Porter
gains a faster Elisp implementation, I think it would be fast enough in all cases. So my question is, would anyone find this generally useful? Should I consider polishing it up and releasing it as a package (in which case, it would probably be called something like org-ql rather than org-agenda-ng, and the agenda-like views would be ancillary)? Any questions, ideas, suggestions, and contributions are welcome. Thanks, Adam

[O] ANN/RFC: org-sidebar

2018-05-23 Thread Adam Porter
Hi all, Inspired by a post on Reddit, which was inspired by the Organized plugin for the Atom editor, I came up with this: https://github.com/alphapapa/org-sidebar This package presents a helpful sidebar view for Org buffers. At the top is a chronological list of scheduled and deadlined tasks

[O] ANN: org-make-toc package makes tables of contents

2018-06-08 Thread Adam Porter
, etc, and you can exclude headings from TOCs. https://github.com/alphapapa/org-make-toc Any comments or suggestions are welcome. Hope you find this useful. Thanks, Adam

Re: [O] ANN/RFC: org-sidebar

2018-06-08 Thread Adam Porter
On Mon, Jun 4, 2018 at 9:19 AM, Holst Thomas (PS-EC/ESE4) wrote: > Hello Adam, > > No problem. I am not that good in elisp, but I like to help testing. So I am > glad I could help here. > > After a git pull the error is gone - but I don't get any entries in the > sideba

[O] New org-count-words function

2018-06-12 Thread Adam Porter
Hi friends, Here's a new function that counts lines, words, and characters in the region or the subtree at point. It prints a message like `count-words` does, like: Subtree "Heading" has 7 line, 5 words, and 28 characters. Note that it does *not* count words in heading lines, planning

[O] org-metaup destructive when region active?

2018-06-14 Thread Adam Porter
Hi, I noticed that using org-metaup when a region is active seems to behave in an unintuitive and potentially dangerous way. I would expect that it would behave similarly to org-refile when a region is active, but it doesn't. Looking at the code, I see that it does this: ┌ │ (let* ((a (min

[O] org creates bibtex fontification buffers without setting dialect, causes error

2018-06-14 Thread Adam Porter
Hi, For a while now I've been getting "(wrong-type-argument stringp nil)" errors from a timer running bibtex-parse-buffers-stealthily. Finally I've tracked it down to an "*org-src-fontification:bibtex-mode*" buffer (which is hidden, but shows up in ibuffer by pressing "C-u g"). The backtrace

Re: [O] ANN/RFC: org-sidebar

2018-06-04 Thread Adam Porter
k it needs some more work first. Thanks, Adam

Re: [O] ANN/RFC: org-sidebar

2018-06-04 Thread Adam Porter
Hi Thomas, On Mon, Jun 4, 2018 at 4:03 AM, Thomas Holst wrote: > Hi Adam, > > I really like the idea of org-sidebar. I tried it and followed the > instructions in README.org but I get an error. Here is the > bactrace: > > Debugger entered--Lisp error: (void-variable main-win

[O] org-map-entries calls org-agenda-prepare-buffers unnecessarily?

2018-06-24 Thread Adam Porter
Hi, I've noticed that org-map-entries calls org-agenda-prepare-buffers whenever its SCOPE argument is nil. According to the docstring, a nil SCOPE means, "The current buffer, respecting the restriction if any," so it doesn't seem necessary to call org-agenda-prepare-buffers. I noticed this

Re: [O] Is there a way to get all agenda TODOs programmatically?

2017-12-31 Thread Adam Porter
Marcin Borkowski writes: > Thanks again. I played around with this for some time, but there is one > problem. The agenda has a lot of settings, and replicating them with > org-map-entries turned out to be no fun. > > Is there a way to plug into the agenda generating functions

Re: [O] Is there a way to get all agenda TODOs programmatically?

2018-01-03 Thread Adam Porter
Nicolas Goaziou writes: Hi Nicolas, > I don't think the size of the functions matter much. Agenda is optimized > for single day view, so it is fast in this case because it only looks > for "interesting" headlines. However, this mechanism is terrible for > multi-days

Re: [O] Is there a way to get all agenda TODOs programmatically?

2018-01-03 Thread Adam Porter
Hi Marcin (and all), I have some more code you might find useful. I had an idea to take a different approach with my org-agenda-ng code (not using org-element to parse the whole buffer first), and it seems to be working well so far. The code is here:

Re: [O] Is there a way to get all agenda TODOs programmatically?

2018-01-03 Thread Adam Porter
Forgive the self reply, but I just made a change which makes the code much more pleasant. The matching functions are bound internally during matching, so instead of: (org-agenda-ng--agenda :files org-agenda-files :pred (lambda () (and (org-agenda-ng--todo-p) (or

Re: [O] New feature? Remove duplicate subheadings, preserving order

2018-01-01 Thread Adam Porter
Allen Li writes: > I don’t know if a more intelligent way of handling tags and todo > keywords is worth the extra complexity, but in the use case that I > imagine it makes sense to match using only the heading/list item: > > * Things to buy > ** TODO cabbage > ** DONE

Re: [O] New feature? Remove duplicate subheadings, preserving order

2018-01-02 Thread Adam Porter
e ways." I hope that these explanations help clarify our perspectives. We are not attacking you, your code, or its potential usefulness. We are simply concerned about implementing such things in ways that are best for users. Thanks, Adam

Re: [O] specify different agenda item colors for different custom agenda views

2018-01-02 Thread Adam Porter
Nicolas Goaziou writes: > Hello, > > Rainer Stengele writes: > >> These posts which stay unanswered - either they are too stupid or too >> complicated?! > > AFAIC, questions about the Agenda tend to belong to the second > category. Indeed! :)

Re: [O] New feature? Remove duplicate subheadings, preserving order

2018-01-02 Thread Adam Porter
Nick Dokos writes: > There be dragons. > > The problem is that some things happen invisibly and far away from > where you are, so you don't know about it and you don't find out for a > couple of weeks. Undo and automatic backups are useless in that case. > > That *has*

Re: [O] New feature? Remove duplicate subheadings, preserving order

2018-01-03 Thread Adam Porter
Ihor Radchenko writes: > Is there any possible way to prevent it more reliably? > > I am aware of org-catch-invisible-edits, but this is obviously not > enough. Does it make sense to generate some kind of subtree based diff > after each change, so that user can review all

Re: [O] Is there a way to get all agenda TODOs programmatically?

2018-01-03 Thread Adam Porter
Marcin Borkowski writes: > and thanks for your answer. I never thought about analyzing agenda > /output/ - that is quite clever! I still think it's a hack, and > I really regret that Org does not offer a programmer a better API for > agenda (and many other things) - there could

Re: [O] Is there a way to get all agenda TODOs programmatically?

2018-01-03 Thread Adam Porter
Nicolas Goaziou writes: >> I have some more code you might find useful. I had an idea to take a >> different approach with my org-agenda-ng code (not using org-element to >> parse the whole buffer first), and it seems to be working well so far. > > Clearly,

Re: [O] How to get a list of all TODO keywords from defined variable `org-todo-keywords`?

2018-01-03 Thread Adam Porter
This might do: (completing-read "Todo keyword: " org-todo-keywords-for-agenda nil t)

[O] integrating org-mode with complice.co?

2018-08-09 Thread Adam Spiers
ode. Does that make sense, or is it a dumb idea? :-) Thanks, Adam

<    1   2   3   4   5   6   7   8   9   >