[O] [patch] Improve fast todo selection alignment

2019-02-20 Thread Carlos Pita
This avoids lines with just a closing "}", which look rather ugly.
Quite similar to my previous patch for fast tag selection.

Regards
--
Carlos
From 239e0d036da94b2a950db3ad1f7e82c5ca6d8daa Mon Sep 17 00:00:00 2001
From: memeplex 
Date: Thu, 21 Feb 2019 01:09:29 -0300
Subject: [PATCH] Fix fast todo selection menu alignment

* lisp/org.el (org-fast-todo-selection): Avoid lines with just a
  closing delimiter.
---
 lisp/org.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index ef6e40ca9..a34211b65 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12573,7 +12573,8 @@ Returns the new TODO keyword, or nil if no state change should occur."
 	(when (and (= cnt 0) (not ingroup)) (insert "  "))
 	(insert "[" c "] " tg (make-string
    (- fwidth 4 (length tg)) ?\ ))
-	(when (= (setq cnt (1+ cnt)) ncol)
+	(when (and (= (setq cnt (1+ cnt)) ncol)
+		   (not (equal (car tbl) '(:endgroup
 	  (insert "\n")
 	  (when ingroup (insert "  "))
 	  (setq cnt 0)
-- 
2.20.1



Re: [O] URL storage and search - Bookmark+ vs Org Mode

2019-02-20 Thread Samuel Wales
org agenda search can find urls, as can isearch, all, occur, etc.

org-capture extension can save to org from gui browser.

copy all urls extension used to save all tabs from firefox in org link
format.  idk what teh best replacement is for webextension.

in principle, it should be possible to create a gui browser extension
in which you can open all selected headers' urls in the gui browser.
and also mark tabs in gui browser save to org headers with a tag.
thus, you could have a topic dedicated to researching food processors
[or whatever topic], and load up a set of tabs, then edit those tabs
in firefox, then save back to org.  optionally deleting the ones with
that tag that are not being saved.  however, it's just an idea.


On 2/20/19, stardiviner  wrote:
>
> I use Org Mode to store all bookmarks. I save it as "Bookmarks.org",
> then use helm-org-rifle to quick locate the category headline, if failed
> find wanted bookmarks, then use Isearch to search text. You can create a
> helper command to quickly auto open bookmarks org file, and auto toggle
> quick locating and search. All in one command. Using Org, you can add
> extra info anything you want to take note about bookmarks, not just URL
> and title.
>
> Roland Everaert  writes:
>
>> Hello,
>>
>> I am still debating with myself which one is the most appropriate to store
>> and
>> search for URLs.
>>
>> The bookmark(+) feature is interesting because it provides a dedicate
>> interface for bookmarking any kind of resources including URLs, but I
>> find the interface to search for bookmarks and to jump between different
>> bookmark file strange if not inefficient.
>>
>> On the other hand, Org-mode don't provide any dedicated interface
>> for storing and searching URLs, but switching from Org Mode file to the
>> next one and searching for data is much more intuitive.
>>
>> Hence, what is the experience of the community with both tools and how
>> you store your internet bookmarks, both to store a particular article or
>> the
>> home page of a website?
>>
>>
>> Thanks for your time,
>>
>> Roland Everaert.
>
>
> --
> [ stardiviner ]
>I try to make every word tell the meaning what I want to express.
>
>Blog: https://stardiviner.github.io/
>IRC(freenode): stardiviner, Matrix: stardiviner
>GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
>
>


-- 
The Kafka Pandemic: 

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.



Re: [O] URL storage and search - Bookmark+ vs Org Mode

2019-02-20 Thread stardiviner


I use Org Mode to store all bookmarks. I save it as "Bookmarks.org",
then use helm-org-rifle to quick locate the category headline, if failed
find wanted bookmarks, then use Isearch to search text. You can create a
helper command to quickly auto open bookmarks org file, and auto toggle
quick locating and search. All in one command. Using Org, you can add
extra info anything you want to take note about bookmarks, not just URL
and title.

Roland Everaert  writes:

> Hello,
>
> I am still debating with myself which one is the most appropriate to store and
> search for URLs.
>
> The bookmark(+) feature is interesting because it provides a dedicate
> interface for bookmarking any kind of resources including URLs, but I
> find the interface to search for bookmarks and to jump between different
> bookmark file strange if not inefficient.
>
> On the other hand, Org-mode don't provide any dedicated interface
> for storing and searching URLs, but switching from Org Mode file to the
> next one and searching for data is much more intuitive.
>
> Hence, what is the experience of the community with both tools and how
> you store your internet bookmarks, both to store a particular article or the
> home page of a website?
>
>
> Thanks for your time,
>
> Roland Everaert.


--
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3



Re: [O] Bug: Clock report failing with "invalid time specification" [9.2.1 (9.2.1-dist @ /home/eibhear/eibhear_org/lisp/org-9/lisp/)]

2019-02-20 Thread Nicolas Goaziou
Hello,

Éibhear  writes:

> I believe there is a bug in the preparation of a clock report when the
> :step parameter is set.
>
> Example:
> 
> * Headline 1
>   :LOGBOOK:
>   CLOCK: [2019-02-20 Wed 08:39]--[2019-02-20 Wed 14:05] =>  5:26
>   CLOCK: [2019-02-19 Tue 13:38]--[2019-02-19 Tue 17:48] =>  4:10
>   CLOCK: [2019-02-19 Tue 08:42]--[2019-02-19 Tue 12:40] =>  3:58
>   CLOCK: [2019-02-18 Mon 15:34]--[2019-02-18 Mon 17:44] =>  2:10
>   CLOCK: [2019-02-18 Mon 13:41]--[2019-02-18 Mon 14:48] =>  1:07
>   CLOCK: [2019-02-18 Mon 08:32]--[2019-02-18 Mon 12:58] =>  4:26
>   :END:
>
>   Some text
>
>   #+BEGIN: clocktable :scope file :maxlevel 2 :block thisweek :step week
>
>   #+END:
>
> Typing C-c C-c to refresh the table results in an error "invalid time
> specification", failing on line 2738 of org-clock.el.

FWIW, I cannot reproduce it.

Regards,

-- 
Nicolas Goaziou



[O] Bug: (org-icalendar-include-todo 'unblocked') does not seem to work [9.2.1 (9.2.1-23-g126a37-elpa @ /home/duane/.emacs.d/elpa/org-20190218/)]

2019-02-20 Thread Duane Farnsworth


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See

https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.


Greetings,

Setting org-icalendar-include-todo to unblocked does not seem to work. I would 
expect unblocked TODO entries to be exported as VTODO entries in the 
.ics-extension file generated by org-icalendar-export-agenda-files. Instead, no 
plain TODO entries are exported. I tried doing a clean install of emacs and 
orgmode in case something had gotten messed up with my local files -- no luck.

Emacs : GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
of 2017-09-22, modified by Debian
Package: Org mode version 9.2.1 (9.2.1-23-g126a37-elpa @ 
/home/duane/.emacs.d/elpa/org-20190218/)

current state:
==
(setq
org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) ("C" 
. c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh)
("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) 
("dot" . fundamental) ("elisp" . emacs-lisp)
("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite" . sql))
org-hide-leading-stars t
org-agenda-tags-todo-honor-ignore-options t
org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
org-icalendar-combined-agenda-file "/home/duane/Org/org-ical.ics"
org-speed-command-hook '(org-speed-command-activate 
org-babel-speed-command-activate)
org-agenda-fontify-priorities t
org-occur-hook '(org-first-headline-recenter)
org-use-fast-todo-selection 'prefix
org-metaup-hook '(org-babel-load-in-session-maybe)
org-icalendar-include-todo 'unblocked
org-sort-agenda-notime-is-late nil
org-html-format-drawer-function '(closure
(htmlize-buffer-places org-html-format-table-no-css htmlize-css-name-prefix 
htmlize-output-type
htmlize-output-type htmlize-css-name-prefix t)
(_name contents) contents)
org-log-done 'time
org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
org-confirm-shell-link-function 'yes-or-no-p
org-columns-default-format "%25ITEM %12CATEGORY %TODO %3PRIORITY %TAGS"
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-startup-align-all-tables t
org-icalendar-use-deadline '(event-if-not-todo event-if-todo)
org-file-apps '((auto-mode . emacs) ("\\.x?html?\\'" . "firefox %s") 
("\\.pdf\\'" . default))
org-special-ctrl-a/e 'reversed
org-agenda-todo-ignore-scheduled t
org-agenda-prefix-format '((agenda . "%-15c %-15t %s") (timeline . " % s") 
(todo . "%-16:c ") (tags . "%?-16:T ")
(search . " %?-12:c %?-16:T "))
org-agenda-custom-commands '(("w" "Show agenda for week starting on a Monday" 
agenda "" ((org-agenda-start-on-weekday 1)))
("b" "Show all TODOs as a Block List"
((tags-todo "clarion+TODO=\"TODO\"" ((org-agenda-overriding-header "Clarion")))
(tags-todo "personal+TODO=\"TODO\"" ((org-agenda-overriding-header "Personal")))
(tags-todo "-personal-clarion+TODO=\"TODO\"" ((org-agenda-overriding-header 
"Miscellaneous"
nil)
("x" . "TODO lists by tags with agenda")
("y" "Show all TODOs and all agenda items"
((alltodo "" ((org-agenda-overriding-header "Todo List"))) (agenda "" 
((org-agenda-overriding-header "Agenda"
nil nil)
("z" . "Show TODOS by tag"))
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-default-notes-file "~/Org/misc.org"
org-todo-keyword-faces '(("WAIT" :foreground "grey50" :weight bold))
org-capture-templates '(("t" "Todo" entry (file+headline "~/Org/misc.org" 
"Tasks") "* TODO %^{Title of Note} \n%i %?")
("e" "Event" entry (file+headline "~/Org/misc.org" "Calendar")
"* Event %^{Title of Note}\nAddress\\Location: %^{Address\\Location} \nContact 
Info: %^{Contact Info}\n%^T %?")
("j" "Journal" entry (file+headline "~/Org/personal.org" "Journal") "* %U\n%i 
%?\n")
("n" "Note" entry (file+headline "~/Org/misc.org" "Notes") "* %^{Title of Note} 
%i %?")
("a" "Appointment" entry (file+headline "~/Org/misc.org" "Calendar")
"* APPOINT %^{Title of Note}\n:PROPERTIES:\n:SUMMARY: %^{Summary} 
\n:DESCRIPTION: %^{Description (include contact info)}\n:TIMEZONE: 
America/New_York\n:LOCATION: %^{Location}\n:APPT_WARNTIME: %^{Alarm warn time 
(0 for none)}\n:END:\n%^T %?")
("c" "Calendar" entry (file+headline "~/Org/misc.org" "")
"* %^{Title of Entry} \n:PROPERTIES:\n:SUMMARY: %^{Summary} \n:DESCRIPTION: 
%^{Description (include contact info)}\n:TIMEZONE: America/New_York\n:LOCATION: 
%^{Location}\n:APPT_WARNTIME: %^{Alarm warn time (0 for none)}\n:END:\n%^T %?")
)
org-agenda-remove-tags t
org-icalendar-use-scheduled '(event-if-not-todo event-if-todo)
org-startup-indented t
org-latex-format-drawer-function '(closure (t) (_ contents) contents)
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-from-is-user-regexp "\\"
org-src-mode-hook '(org-src-b

[O] Bug: Clock report failing with "invalid time specification" [9.2.1 (9.2.1-dist @ /home/eibhear/eibhear_org/lisp/org-9/lisp/)]

2019-02-20 Thread Éibhear
Hi,

I believe there is a bug in the preparation of a clock report when the
:step parameter is set.

Example:

* Headline 1
  :LOGBOOK:
  CLOCK: [2019-02-20 Wed 08:39]--[2019-02-20 Wed 14:05] =>  5:26
  CLOCK: [2019-02-19 Tue 13:38]--[2019-02-19 Tue 17:48] =>  4:10
  CLOCK: [2019-02-19 Tue 08:42]--[2019-02-19 Tue 12:40] =>  3:58
  CLOCK: [2019-02-18 Mon 15:34]--[2019-02-18 Mon 17:44] =>  2:10
  CLOCK: [2019-02-18 Mon 13:41]--[2019-02-18 Mon 14:48] =>  1:07
  CLOCK: [2019-02-18 Mon 08:32]--[2019-02-18 Mon 12:58] =>  4:26
  :END:

  Some text

  #+BEGIN: clocktable :scope file :maxlevel 2 :block thisweek :step week

  #+END:

Typing C-c C-c to refresh the table results in an error "invalid time
specification", failing on line 2738 of org-clock.el.

When I revert to org-9.2.0, the error is present, but when I revert to
org-9.1.9, the clocktable refreshes successfully.

Éibhear

Emacs  : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5)
 of 2017-09-12 on hullmann, modified by Debian
Package: Org mode version 9.2.1 (9.2.1-dist @
/home/eibhear/eibhear_org/lisp/org-9/lisp/)

-- 
Éibhear Ó hAnluain
Dublin, Ireland.
+---++
| e-mail: eibhear@gmail.com | Web: [http://www.gibiris.org/] |
| Twitter: @eibhear | Google+: +Éibhear Ó hAnluain   |
| Mobile: +353 86 856 5666  | VoIP: sip:eibh...@linphone.org |
+---++



signature.asc
Description: OpenPGP digital signature


Re: [O] [PATCH 1/2] Fix narrowing for 1-line subtrees

2019-02-20 Thread Leo Vivier
Hello,

Nicolas Goaziou  writes:

> Thank you. It looks good. Could you write a few tests about that?

I’ve never done it, but it should be pretty easy to figure out how to
write them with all the macros.  I’ll look into it.

I’ll also continue the work on the patch to figure out how to handle the
condition tree for `org-add-planing-info'.

I’ll update you when I’ve made progress.

Thanks.

Best,
-- 
Leo Vivier
English Studies & General Linguistics
Master Student, English Department
Université Rennes 2



Re: [O] Org can't export inline image link to PDF

2019-02-20 Thread stardiviner

Nicolas Goaziou  writes:

> Hello,
>
> stardiviner  writes:
>
>> Now I figured out, because the filename contains a space, which Org auto
>> converted to `%20' when exit org-insert-link. That's why can't see the
>> inline image in exported PDF file. After I renamed image filename with
>> replace space with underline "_". Problem solved.
>>
>> But, if possible, I still hope Org can fix this problem.
>
> Fixed. Thank you.
>
> Regards,

Hi, Nicolas, as always, thanks for quick fix. Still a minor issue.

Here is the screenshot in attachment, you can see the characters 23.bb
left side of the inline image.

The original Org inline image format is:

```org
#+ATTR_ORG: :width 200
#+ATTR_LATEX: :width 2.0in
#+ATTR_HTML: :id avatar :width 200px :alt 那时23岁的我
[[file:data/images/me_picture%2023.jpg]]
```



-- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  


Re: [O] org-agenda fails when a scheduled/deadline date is in the past [9.1.9 (release_9.1.9-65-g5e4542 @ /Users/borwick/.emacs.d/elpa/org-plus-contrib-20190218/)]

2019-02-20 Thread Nicolas Goaziou
Hello,

John Borwick  writes:

> Hello! OK I just downloaded & installed org-plus-contrib-20190218.tar.
> Unfortunately I still got this error. The last working version for me
> is org-plus-contrib-20181224.tar.

I cannot reproduce it. Maybe a mixed installation?

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH 1/2] Fix narrowing for 1-line subtrees

2019-02-20 Thread Nicolas Goaziou
Hello,

Leo Vivier  writes:

> Here's the proper version:

Thank you. It looks good. Could you write a few tests about that?

Regards,

-- 
Nicolas Goaziou



Re: [O] Org can't export inline image link to PDF

2019-02-20 Thread Nicolas Goaziou
Hello,

stardiviner  writes:

> Now I figured out, because the filename contains a space, which Org auto
> converted to `%20' when exit org-insert-link. That's why can't see the
> inline image in exported PDF file. After I renamed image filename with
> replace space with underline "_". Problem solved.
>
> But, if possible, I still hope Org can fix this problem.

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] URL storage and search - Bookmark+ vs Org Mode

2019-02-20 Thread Roland Everaert
Hello,

I am still debating with myself which one is the most appropriate to store and
search for URLs.

The bookmark(+) feature is interesting because it provides a dedicate
interface for bookmarking any kind of resources including URLs, but I
find the interface to search for bookmarks and to jump between different
bookmark file strange if not inefficient.

On the other hand, Org-mode don't provide any dedicated interface
for storing and searching URLs, but switching from Org Mode file to the
next one and searching for data is much more intuitive.

Hence, what is the experience of the community with both tools and how
you store your internet bookmarks, both to store a particular article or the
home page of a website?


Thanks for your time,

Roland Everaert.

-- 
Luke, use the FOSS

Sent from Emacs



Re: [O] [Proposal] Make Org keybinding popup buffer/window controllable?

2019-02-20 Thread stardiviner


Eric S Fraga  writes:

> On Wednesday, 20 Feb 2019 at 12:23, stardiviner wrote:
>> My notebook computer is a smaller screen computer. When I open 5, 6
>> windows, it will make every window small. When I using
>> `org-insert-structure-template` or `org-export-dispatch`, They have a
>> long length content, if those popup buffer are display in my small size
>> window. I can't see part of them. This is really annoying me.
>
> I don't know about org-insert-structure-template but you can scroll the
> org-export-dispatch window with SPC.

You're right. org-export-dispatch can navigate with SPC, Tab, DEL,
C-n/p. I noticed the headline now. Thanks.

I tried SPC in org-insert-structure-template, but not work. Because it's
taken by following keybinding. None of upper keybinding (SPC, Tab, DEL,
C-n/C-p) works.

-- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  



Re: [O] [Proposal] Make Org keybinding popup buffer/window controllable?

2019-02-20 Thread Eric S Fraga
On Wednesday, 20 Feb 2019 at 12:23, stardiviner wrote:
> My notebook computer is a smaller screen computer. When I open 5, 6
> windows, it will make every window small. When I using
> `org-insert-structure-template` or `org-export-dispatch`, They have a
> long length content, if those popup buffer are display in my small size
> window. I can't see part of them. This is really annoying me.

I don't know about org-insert-structure-template but you can scroll the
org-export-dispatch window with SPC.
-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.1-242-g7e98c5