[O] multiple property values possible similar to multiple tags?

2017-09-07 Thread Xebar Saram
Hi all

I have this example property drawer in a capture template

:PROPERTIES:
:ID: %(org-id-uuid)
:PLACE: %^{Place?|-|@work|@home|@pc|@family|@shop}
:END:

i was wondering, is it possible for a single property to take multiple
value? im thinking something similar to tags like

:TAG1:TAG2:

i would have a property value of

:PLACE: @home @ shop

and if its possible will i be able to search agenda etc values based on
just 1 of these properties?

best

Z


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

2017-09-07 Thread Xebar Saram
Hi and thx for the response

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 TEST  :@work: :TAG:

while i expect the %^G capture to add to the existing tag entry so it looks
like this

** TODO TEST  :@work:TAG:

thx!

Z

On Fri, Sep 8, 2017 at 8:04 AM, Adam Porter  wrote:

> 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] 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] Bug: Fix for org-make-link-description-function use in org-insert-link [9.0.10 (9.0.10-5-g1654a5-elpa @ /home/rrt/.emacs.d/elpa/org-20170904/)]

2017-09-07 Thread Nicolas Goaziou
Hello,

Reuben Thomas  writes:

> ​Attached, a revised patch.

Applied, with a minor refactoring so some lines could fit under 80
columns. 

Thank you!

Regards,

-- 
Nicolas Goaziou



Re: [O] Scheme output results

2017-09-07 Thread Nicolas Goaziou
Hello,

Neil Jerram  writes:

> I believe the attached patch fixes those problems.

Applied. Thank you!

Regards,

-- 
Nicolas Goaziou



[O] ODT export of SVG image, wrong size properties

2017-09-07 Thread James Harkins
Hi,

I am exporting a document to ODT, including a small SVG image.

#+name: Notation1
#+caption: Transcription into Western notation of an example pattern string.
#+attr_odt: :width 6.88 :height 1.87
[[./notated-example.svg]]

The frame properties, however, do not respect the given size attributes.






"svg:width" and "svg:height" are correct, but the style also specifies 
~rel-height="scale"~ and, in LibreOffice 5.1, this overrides the specific 
height. So the image gets squashed: it's displayed with 33% of the height it 
should have.

Initially I tried without any "#+attr_odt" and got the incorrect display. The 
org manual says:

> To embed img.png with a height of 10 cm while retaining the original 
> height:width ratio, do the following
> 
>   #+ATTR_ODT: :height 10
>   [[./img.png]]

But I get the same incorrect result this way as well. So I tried setting the 
width and height explicitly to the SVG's dimensions, and the display is still 
wrong.

hjh




Re: [O] Bug: Fix for org-make-link-description-function use in org-insert-link [9.0.10 (9.0.10-5-g1654a5-elpa @ /home/rrt/.emacs.d/elpa/org-20170904/)]

2017-09-07 Thread Reuben Thomas
On 5 September 2017 at 23:02, Nicolas Goaziou 
wrote:

> Reuben Thomas  writes:
>
> > ​If you (or someone) can confirm your interpretation above, I would be
> > happy to update my patch to implement the two behaviours required,
> namely,
> > that org-make-link-description-function is only called if the
> > default-description argument to org-insert-link is nil
>
> Ack.
>
> > and that if that function returns nil, then the link location is used.
> > I would also clarify the docstring regarding the second behaviour.
>
> It may not be a terribly useful behaviour anyway. You can always use
> (lambda (link description) link) as
> `org-make-link-description-function'.
>
> Perhaps we can simply remove "When nil, the link location will be used"
> from the docstring. Your call.
>

​I've removed it.​

​Attached, a revised patch.

-- 
https://rrt.sc3d.org
From df6e155c0e14bae6cebb2e8ac904405163c32b7d Mon Sep 17 00:00:00 2001
From: Reuben Thomas 
Date: Tue, 5 Sep 2017 17:00:25 +0100
Subject: [PATCH] Fix logic of calling org-make-link-desciption-function

* lisp/org.el (org-insert-link): Simplify so that description is only
prompted for once, if auto-desc is not set, and takes as its default
value, in order, default-description, the return value of
org-make-link-description-function (if the variable is non-nil), and
the current desc. Update the docstring to reflect that
default-description takes precedence over
org-make-link-description-function.
(org-make-link-description-function): Remove from docstring the
statement that if the variable is nil, then the link will be used as
the default description. This is undesirable, and was not in any case
implemented.
---
 lisp/org.el | 41 -
 1 file changed, 20 insertions(+), 21 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 889987c..4347111 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1939,10 +1939,10 @@ in the Org buffer so that the change takes effect."
 
 (defcustom org-make-link-description-function nil
   "Function to use for generating link descriptions from links.
-When nil, the link location will be used.  This function must take
-two parameters: the first one is the link, the second one is the
-description generated by `org-insert-link'.  The function should
-return the description to use."
+This function must take two parameters: the first one is the
+link, the second one is the description generated by
+`org-insert-link'.  The function should return the description to
+use."
   :group 'org-link
   :type '(choice (const nil) (function)))
 
@@ -10152,15 +10152,14 @@ the current directory or below.
 A `\\[universal-argument] \\[universal-argument] \\[universal-argument]' \
 prefix negates `org-keep-stored-link-after-insertion'.
 
-If `org-make-link-description-function' is non-nil, this function will be
-called with the link target, and the result will be the default
-link description.
-
 If the LINK-LOCATION parameter is non-nil, this value will be used as
 the link location instead of reading one interactively.
 
-If the DEFAULT-DESCRIPTION parameter is non-nil, this value will be used
-as the default description."
+If the DEFAULT-DESCRIPTION parameter is non-nil, this value will
+be used as the default description.  Otherwise, if
+`org-make-link-description-function' is non-nil, this function
+will be called with the link target, and the result will be the
+default link description."
   (interactive "P")
   (let* ((wcf (current-window-configuration))
 	 (origbuf (current-buffer))
@@ -10294,17 +10293,17 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
 	  (when (equal desc origpath)
 	(setq desc path)
 
-(if org-make-link-description-function
-	(setq desc
-	  (or (condition-case nil
-		  (funcall org-make-link-description-function link desc)
-		(error (progn (message "Can't get link description from `%s'"
-	   (symbol-name org-make-link-description-function))
-  (sit-for 2) nil)))
-		  (read-string "Description: " default-description)))
-  (if default-description (setq desc default-description)
-	(setq desc (or (and auto-desc desc)
-		   (read-string "Description: " desc)
+(unless auto-desc
+  (setq desc (read-string "Description: "
+			  (or default-description
+  (when org-make-link-description-function
+(condition-case nil
+	(funcall org-make-link-description-function link desc)
+  (error (progn (message "Can't get link description from `%s'"
+			 (symbol-name org-make-link-description-function))
+		(sit-for 2) nil
+  
+  desc
 
 (unless (string-match "\\S-" desc) (setq desc nil))
 (when remove (apply 'delete-region remove))
-- 
2.7.4



Re: [O] org-agenda-current-time-string partly fontified with emphasis

2017-09-07 Thread Samuel Wales
On 9/7/17, Nicolas Goaziou  wrote:
> Indeed. === really means "=" character in verbatim markup.

fyi but not in all of the agenda current time string.  just the first
part in my example.

> You may be able to tweak fontification to ignore this special case. See
> `org-font-lock-set-keywords-hook' to install a special rule for.

are there examples of the usage of this?

> It will work as long as you don't export the document. For that case,
> you could write a filter turning multiple "=" into "\equal".

is there a filter that will change instances /before/ they get
converted by a backend?  depending on the backend sometimes i want ===
and sometimes a suitable short centered separator.  i don't want to
use hyphens, and org's separator is page-wide.



Re: [O] text search and restriction lock bugs

2017-09-07 Thread Samuel Wales
On 9/7/17, Nicolas Goaziou  wrote:
>> from org-agenda-text-search-extra-files?  imo it should not.
>
> Agreed. Fixed.

thank you.

>> 2.
>>
>> if you remove the restriction lock and refresh the agenda,
>> it will produce different results.
>>
>> imo, should act as if the restriction lock were still in place.  g
>> should refresh with the settings that were present at invocation.
>> sometimes you change buffer name, and run a new agenda, so that you
>> can have 2 agendas, one restricted and one not.
>
> Not sure I agree.

not able to convey my intuitions adequately atm.

>
>> the restriction lock is not fontified nicely so it can be desirable to
>> remove it for editing.
>
> Is this a different bug report?

no, haven't thought about it.

>> remove-duplicates.  imo the agenda could do

> Agreed. Fixed.

thank you.

-- 
The Kafka Pandemic: 

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

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
.



[O] duplicated test names... are these bugs?

2017-09-07 Thread Stig Brautaset

Hello!

Running tests on master for me, with make test, results in a single test
failure in `ob-shell/bash-uses-assoc-arrays'. While looking into that I
found that there are _two_ definitions of that in the test-ob-shell.el
file. This strikes me as unlikely to be ideal, and I decided to look a
bit further and it turns out this is not unique. Running the following
command from the top-level org-mode directory

: $ ag --nogroup --nonumbers ert-deftest  | sort | uniq -d

Results in

: testing/lisp/test-ob-lilypond.el:(ert-deftest ob-lilypond/ly-gen-html ()
: testing/lisp/test-ob-shell.el:(ert-deftest ob-shell/bash-uses-assoc-arrays ()
: testing/lisp/test-ob-shell.el:(ert-deftest 
ob-shell/generic-uses-no-assoc-arrays ()
: testing/lisp/test-ob.el:(ert-deftest 
test-ob/commented-last-block-line-with-var ()
: testing/lisp/test-ob.el:(ert-deftest 
test-ob/org-babel-remove-result--results-default ()
: testing/lisp/test-ob.el:(ert-deftest 
test-ob/org-babel-remove-result--results-list ()
: testing/lisp/test-ob.el:(ert-deftest 
test-ob/org-babel-remove-result--results-pp ()
: testing/lisp/test-org-table.el:(ert-deftest test-org-table/align ()

I'm not super familiar with ert, but I _assume_ that this will lead to
only the last definition of the test with the duplicate names being run
by 'make test'?

Stig


--
; GNU Emacs 26.0.50, Org mode version 9.1



Re: [O] Old 'C-c tab' binding shadowed

2017-09-07 Thread Marco Wahl
>> I think the bindings could coexist peacefully since
>>
> `org-table-toggle-column-width' makes sense only for the cursor located
>> in a table and `outline-show-children' makes most sense (AFAICS) when
>> called on a headline.
>>
>> Does this sound reasonable?
>>
>> Does anyone see clearly how to implement this?  (I don't.)
>>
>
> I  always wondered the same about other org-table-* bindings in org.el.
>
> This works:
>
> diff --git a/lisp/org.el b/lisp/org.el
> index a03d8c5a429..cba9b20482f 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -19632,7 +19632,12 @@ COMMANDS is a list of alternating OLDDEF NEWDEF
> command names."
>  (org-defkey org-mode-map "\C-j" 'org-return-indent)
>  (org-defkey org-mode-map "\C-c?"'org-table-field-info)
>  (org-defkey org-mode-map "\C-c "'org-table-blank-field)
> -(org-defkey org-mode-map (kbd "C-c TAB") #'org-table-toggle-column-width)
> +(org-defkey org-mode-map (kbd "C-c TAB")
> +'(menu-item "toggle-column-width-when-in-table" nil
> +:filter (lambda (&optional _)
> +  (if (org-at-table-p)
> +  #'org-table-toggle-column-width
> +#'outline-show-children
>  (org-defkey org-mode-map "\C-c+"'org-table-sum)
>  (org-defkey org-mode-map "\C-c="'org-table-eval-formula)
>  (org-defkey org-mode-map "\C-c'"'org-edit-special)
>
> I actually do this for org-table-* bindings in my config:
>
> ;; Bind the "org-table-*" command ONLY when the point is in an Org
> table.
> ;; http://emacs.stackexchange.com/a/22457/115
> (bind-keys
>  :map org-mode-map
>  :filter (org-at-table-p)
>  ("C-c ?" . org-table-field-info)
>  ("C-c SPC" . org-table-blank-field)
>  ("C-c +" . org-table-sum)
>  ("C-c =" . org-table-eval-formula)
>  ("C-c `" . org-table-edit-field)
>  ("C-#" . org-table-rotate-recalc-marks)
>  ("C-c }" . org-table-toggle-coordinate-overlays)
>  ("C-c {" . org-table-toggle-formula-debugger))
>
> Inspiration:
> http://endlessparentheses.com/define-context-aware-keys-in-emacs.html

Thanks!

Good to know a path to a personal configuration for the case no one else
is interested in the old C-c TAB behavior.


Ciao,
 Marco




Re: [O] Old 'C-c tab' binding shadowed

2017-09-07 Thread Marco Wahl
>> There is an issue with the binding of 'C-c tab' (to
>> `org-table-toggle-column-width') though.
>>
>> Before the 'C-c tab' was bound to `outline-show-children' (which I
>> enjoyed occasionally.)  With the current Org-tip version this binding is
>> gone.
>
> Isn't it equivalent to `org-cycle', i.e., TAB?

`outline-show-children' (and also `org-show-children' BTW) opens the
children up to a certain depth which can be set via prefix argument
(default: 1).  (I also like that) _just_ the headings appear with
`outline-show-children' -- e.g. properties and empty lines remain
hidden.


Cheers,
   Marco



Re: [O] Scheme output results

2017-09-07 Thread Neil Jerram

Hi Nicolas,

On 05/09/17 22:49, Nicolas Goaziou wrote:

Hello,

Neil Jerram  writes:


Hi Bastien & Nicolas,

I've been told by "Theodore Teah via RT "
that my copyright assignment is in place now.

Great!

I tried to build Org with your patch, but it generates compilation
warnings. Could you look into it?

Thank you.

Regards,



I believe the attached patch fixes those problems.

Regards - Neil

>From 35d3742774335decfcf8e4e5ab8e4101332a39a5 Mon Sep 17 00:00:00 2001
From: Neil Jerram 
Date: Sun, 20 Aug 2017 17:25:58 +0100
Subject: [PATCH] Improve Scheme code evaluation

* lisp/ob-scheme.el (org-babel-scheme-execute-with-geiser): Use
  Geiser's explicit 'retort' object, instead of catching and parsing
  an expected Emacs message (which for me is in any case overwritten
  by a following "Mark set" message); this also means we don't need
  the with-output-to-string approach for getting 'output' results.
  Also 'let' Geiser variables so as to avoid popping up the REPL
  and *Geiser dbg* buffers.
---
 lisp/ob-scheme.el | 62 ++-
 1 file changed, 34 insertions(+), 28 deletions(-)

diff --git a/lisp/ob-scheme.el b/lisp/ob-scheme.el
index b8867d5..f822e15 100644
--- a/lisp/ob-scheme.el
+++ b/lisp/ob-scheme.el
@@ -44,12 +44,18 @@
 (defvar geiser-impl--implementation)   ; Defined in geiser-impl.el
 (defvar geiser-default-implementation) ; Defined in geiser-impl.el
 (defvar geiser-active-implementations) ; Defined in geiser-impl.el
+(defvar geiser-debug-show-debug-p) ; Defined in geiser-debug.el
+(defvar geiser-debug-jump-to-debug-p)  ; Defined in geiser-debug.el
+(defvar geiser-repl-use-other-window)  ; Defined in geiser-repl.el
+(defvar geiser-repl-window-allow-split)	; Defined in geiser-repl.el
 
 (declare-function run-geiser "ext:geiser-repl" (impl))
 (declare-function geiser-mode "ext:geiser-mode" ())
 (declare-function geiser-eval-region "ext:geiser-mode"
   (start end &optional and-go raw nomsg))
 (declare-function geiser-repl-exit "ext:geiser-repl" (&optional arg))
+(declare-function geiser-eval--retort-output "ext:geiser-eval" (ret))
+(declare-function geiser-eval--retort-result-str "ext:geiser-eval" (ret prefix))
 
 (defcustom org-babel-scheme-null-to 'hline
   "Replace `null' and empty lists in scheme tables with this before returning."
@@ -150,35 +156,35 @@ is true; otherwise returns the last value."
 (with-temp-buffer
   (insert (format ";; -*- geiser-scheme-implementation: %s -*-" impl))
   (newline)
-  (insert (if output
-		  (format "(with-output-to-string (lambda () %s))" code)
-		code))
+  (insert code)
   (geiser-mode)
-  (let ((repl-buffer (save-current-buffer
-			   (org-babel-scheme-get-repl impl repl
-	(when (not (eq impl (org-babel-scheme-get-buffer-impl
-			 (current-buffer
-	  (message "Implementation mismatch: %s (%s) %s (%s)" impl (symbolp impl)
-		   (org-babel-scheme-get-buffer-impl (current-buffer))
-		   (symbolp (org-babel-scheme-get-buffer-impl
-			 (current-buffer)
-	(setq geiser-repl--repl repl-buffer)
-	(setq geiser-impl--implementation nil)
-	(setq result (org-babel-scheme-capture-current-message
-		  (geiser-eval-region (point-min) (point-max
-	(setq result
-	  (if (and (stringp result) (equal (substring result 0 3) "=> "))
-		  (replace-regexp-in-string "^=> " "" result)
-		"\"An error occurred.\""))
-	(when (not repl)
-	  (save-current-buffer (set-buffer repl-buffer)
-			   (geiser-repl-exit))
-	  (set-process-query-on-exit-flag (get-buffer-process repl-buffer) nil)
-	  (kill-buffer repl-buffer))
-	(setq result (if (or (string= result "#")
-			 (string= result "#"))
-			 nil
-		   result
+  (let ((geiser-repl-window-allow-split nil)
+	(geiser-repl-use-other-window nil))
+	(let ((repl-buffer (save-current-buffer
+			 (org-babel-scheme-get-repl impl repl
+	  (when (not (eq impl (org-babel-scheme-get-buffer-impl
+			   (current-buffer
+	(message "Implementation mismatch: %s (%s) %s (%s)" impl (symbolp impl)
+		 (org-babel-scheme-get-buffer-impl (current-buffer))
+		 (symbolp (org-babel-scheme-get-buffer-impl
+			   (current-buffer)
+	  (setq geiser-repl--repl repl-buffer)
+	  (setq geiser-impl--implementation nil)
+	  (let ((geiser-debug-jump-to-debug-p nil)
+		(geiser-debug-show-debug-p nil))
+	(let ((ret (geiser-eval-region (point-min) (point-max
+	  (setq result (if output
+			   (geiser-eval--retort-output ret)
+			 (geiser-eval--retort-result-str ret "")
+	  (when (not repl)
+	(save-current-buffer (set-buffer repl-buffer)
+ (geiser-repl-exit))
+	(set-process-query-on-exit-flag (get-buffer-process repl-buffer) nil)
+	(kill-buffer repl-buffer))
+	  (setq result (if (or (string= result "#")
+			   (string= result "#"))
+			   nil
+			 result)
 result))
 
 (defun org-babel-scheme--table-or-string (results)
-- 
2.7.4



[O] Bug: View scheduled tasks that have a specific state [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/)]

2017-09-07 Thread cro cefisso

Hello, I'm on Org-mode 8.2.10 on Xubuntu 16.04 and despite having tried many combinations, I can't manage to view all scheduled tasks that don't have "DONE" and "CANCELLED" as a state. For example, when I do : 

(setq org-agenda-custom-commands
      '(
    ("+" "Scheduled" 
      ((todo ""
        ((org-agenda-overriding-header "\nScheduled")
         (org-agenda-skip-function '(org-agenda-skip-entry-if 'notscheduled 'todo '("DONE" "CANCELLED")))
        )
      ))
    )
       )
)

it shows all scheduled tasks but including those with "DONE" and "CANCELLED" states...


Emacs  : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-04-17 on lgw01-04, modified by Debian
Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/)

current state:
==
(setq
 org-hide-leading-stars t
 org-tab-first-hook '(org-hide-block-toggle-maybe
              org-src-native-tab-command-maybe
              org-babel-hide-result-toggle-maybe
              org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
              org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-custom-commands '(("T" todo "TODO") ("N" todo "NEXT")
                  ("S" todo "STARTED") ("W" todo "WAITING")
                  ("F" todo "FROZEN") ("R" todo "REFERENCE")
                  ("D" todo "DELEGATED")
                  ("0" "Unscheduled"
                   ((todo ""
                 ((org-agenda-overriding-header
                   "\nUnscheduled")
                  (org-agenda-skip-function
                   (quote
                    (org-agenda-skip-entry-if
                     (quote timestamp) (quote todo)
                     (quote ("DONE" "CANCELLED")))
                    )
                   )
                  )
                 )
                )
                   )
                  ("1" "Scheduled today"
                   ((agenda ""
                 ((org-agenda-span 1)
                  (org-agenda-skip-function
                   (quote
                    (org-agenda-skip-entry-if (quote todo)
                     (quote ("DONE" "CANCELLED")))
                    )
                   )
                  )
                 )
                )
                   )
                  ("8" "Scheduled this week"
                   ((agenda ""
                 ((org-agenda-start-day "+0")
                  (org-agenda-span 8)
                  (org-agenda-skip-function
                   (quote
                    (org-agenda-skip-entry-if (quote todo)
                     (quote ("DONE" "CANCELLED")))
                    )
                   )
                  )
                 )
                )
                   )
                  ("3" "Scheduled this month"
                   ((agenda ""
                 ((org-agenda-start-day "+0")
                  (org-agenda-span 31)
                  (org-agenda-skip-function
                   (quote
                    (org-agenda-skip-entry-if (quote todo)
                     (quote ("DONE" "CANCELLED")))
                    )
                   )
                  )
                 )
                )
                   )
                  ("+" "Scheduled this month"
                   ((todo ""
                 ((org-agenda-overriding-header "\nScheduled")
                  (org-agenda-skip-function
                   (quote
                    (org-agenda-skip-entry-if
                     (quote notscheduled) (quote todo)
                     (quote ("DONE" "CANCELLED")))
                    )
                   )
                  )
                 )
                )
                   )
                  )
 org-default-notes-file "/home/crocefisso/.../Org-Mode/notes.org"
 org-todo-keyword-faces '(("TODO" :foreground "cadetblue1" :background
               "dark cyan" :bold t :weight bold)
              ("NEXT" :foreground "cadetblue1" :background
               "navy blue" :bold t :weight bold)
              ("DONE" :foreground "gray90" :background
               "dark olive green" :bold t :weight bold)
              ("STARTED" :foreground "pink" :background
               "dark orchid" :bold t :weight bold)
              ("WAITING" :foreground "LightGoldenrod1" :background
               "tan3" :bold t :weight bold)
              ("FROZEN" :foreground "cyan" :background "steelblue"
               :bold t :weight bold)
              ("REFERENCE" :foreground "pale green" :background
               "green4" :bold t :weight bold)
              ("CANCELLED" :foreground "gray65" :background
               "gray30" :bold t :weight bold)
              ("DELEGATED" :foreground "moccasin" :background
               "navajowhite3" :bold t :weight bold)
              )
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babe

[O] "broken" link in orgmode web page

2017-09-07 Thread Cesar
Hi folks,


While not a "bug" in Org-mode proper, if we count orgmode.org as documentation, 
then we can consider this as something worth mentioning (and repairing):


In the page Beamer presentations using the new export engine the link for « . . 
. nice article on how you could explore . . . », points to a local file system 
(file:///home/emacs/org/Worg/exporters/filter-markup.html), which fails (at 
least for me ).


At first I thought it was due my non canonical emacs + Org-mode installation 
(boss machine, non unix) but even in a Linux machine at my home this link 
fails...


HTH
--
Cesar Rabak




Re: [O] [Orgmode] Escaping braces and org-export-latex-classes behaviour

2017-09-07 Thread Haik Silm
I had the same problem. As a workaround I used \begingroup and \endgroup 
to denote {}


Best regards,
Haik

17.04.2010 20:13 Giulio Fella kirjutas:

Thanks for your reply.

I am afraid I know nothing about Tex, so I cannot comment on that. But
all my Latex references
e.g.http://en.wikibooks.org/wiki/LaTeX/Colors

give that as the correct syntax for \color, as opposed to e.g. \textcolor
which has the syntax you report.

But more generally, given that 90% of latex braces are just part of
command syntax I have a feeling that it would be more economical to
require the user to escape those braces which are indeed to be escaped
in Latex. I think Carsten has been correcting quite a number of these
"escape braces" bugs and I am not sure that the feature is worth his
time.

giulio
On Sat, Apr 17, 2010 at 9:09 PM, Darlan Cavalcante Moreira
 wrote:
>/I think the correct would be using Latex syntax like 
\color{red}{whatever}./

>
>/If you write using plain Tex syntax like {\color{red}whatever} org/
>/will not understand that the outer curly brackets are part of the/
>/command./
>
>
>/-- Darlan/
>
>/2010/4/16 Giulio Fella :/
>/> Hi,/
>/>/
>/> I have just upgraded from 6.33trans to 6.35g-55-g36d3e hoping to solve/
>/> a problem with escaping braces./
>/>/
>/> With LaTex_CLASS: beamer/
>/>/
>/> Something like/
>/> {\color{red}whatever}/
>/>/
>/> exports to latex with escaped outer braces. Namely/
>/>/
>/> \{\color{red}whatever\}/
>/>/
>/> This is the same behaviour as in 6.33trans. I had read it was a bug/
>/> which had been corrected. Is this a reappearing bug  or is there a way/
>/> round it?/
>/>/
>/> Also in version 6.33 the relevant content of org-export-latex-classes/
>/> used to be exported before that of BEAMER_HEADER_EXTRA. Now it is/
>/> parsed after it. Is there any variable I can set to reestablish the/
>/> old behaviour?/
>/>/
>/> Many thanks in advance./
>/>/
>/> Best wishes/
>/> Giulio/
>/>/
>/>/
>/> ___/
>/> Emacs-orgmode mailing list/
>/> Please use `Reply All' to send replies to the list./
>/> address@hidden/
>/> http://lists.gnu.org/mailman/listinfo/emacs-orgmode/
>/>/
>




[O] ox-html export bug with CUSTOM_ID

2017-09-07 Thread Deepak Cherian

This org file (OPTIONS are to keep the exported file clean)

-
* heading 1
* heading 2
:PROPERTIES:
:CUSTOM_ID: my-name
:END:



exports to

---

1 heading 1



class="section-number-2">2 heading 2




---

The "" for the second heading is unnecessary. 
Seems to only occur when CUSTOM_ID is set.


Deepak



Re: [O] Old 'C-c tab' binding shadowed

2017-09-07 Thread Kaushal Modi
On Thu, Sep 7, 2017 at 3:33 PM Marco Wahl  wrote:

> I think the bindings could coexist peacefully since
>
`org-table-toggle-column-width' makes sense only for the cursor located
> in a table and `outline-show-children' makes most sense (AFAICS) when
> called on a headline.
>
> Does this sound reasonable?
>
> Does anyone see clearly how to implement this?  (I don't.)
>

I  always wondered the same about other org-table-* bindings in org.el.

This works:

diff --git a/lisp/org.el b/lisp/org.el
index a03d8c5a429..cba9b20482f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19632,7 +19632,12 @@ COMMANDS is a list of alternating OLDDEF NEWDEF
command names."
 (org-defkey org-mode-map "\C-j" 'org-return-indent)
 (org-defkey org-mode-map "\C-c?"'org-table-field-info)
 (org-defkey org-mode-map "\C-c "'org-table-blank-field)
-(org-defkey org-mode-map (kbd "C-c TAB") #'org-table-toggle-column-width)
+(org-defkey org-mode-map (kbd "C-c TAB")
+'(menu-item "toggle-column-width-when-in-table" nil
+:filter (lambda (&optional _)
+  (if (org-at-table-p)
+  #'org-table-toggle-column-width
+#'outline-show-children
 (org-defkey org-mode-map "\C-c+"'org-table-sum)
 (org-defkey org-mode-map "\C-c="'org-table-eval-formula)
 (org-defkey org-mode-map "\C-c'"'org-edit-special)

I actually do this for org-table-* bindings in my config:

;; Bind the "org-table-*" command ONLY when the point is in an Org
table.
;; http://emacs.stackexchange.com/a/22457/115
(bind-keys
 :map org-mode-map
 :filter (org-at-table-p)
 ("C-c ?" . org-table-field-info)
 ("C-c SPC" . org-table-blank-field)
 ("C-c +" . org-table-sum)
 ("C-c =" . org-table-eval-formula)
 ("C-c `" . org-table-edit-field)
 ("C-#" . org-table-rotate-recalc-marks)
 ("C-c }" . org-table-toggle-coordinate-overlays)
 ("C-c {" . org-table-toggle-formula-debugger))

Inspiration:
http://endlessparentheses.com/define-context-aware-keys-in-emacs.html
-- 

Kaushal Modi


Re: [O] Old 'C-c tab' binding shadowed

2017-09-07 Thread Nicolas Goaziou
Hello,

Marco Wahl  writes:

> There is an issue with the binding of 'C-c tab' (to
> `org-table-toggle-column-width') though.
>
> Before the 'C-c tab' was bound to `outline-show-children' (which I
> enjoyed occasionally.)  With the current Org-tip version this binding is
> gone.

Isn't it equivalent to `org-cycle', i.e., TAB?

Regards,

-- 
Nicolas Goaziou



[O] Old 'C-c tab' binding shadowed

2017-09-07 Thread Marco Wahl
Hi!

I like the new column-width features.  Thanks!

There is an issue with the binding of 'C-c tab' (to
`org-table-toggle-column-width') though.

Before the 'C-c tab' was bound to `outline-show-children' (which I
enjoyed occasionally.)  With the current Org-tip version this binding is
gone.

I think the bindings could coexist peacefully since
`org-table-toggle-column-width' makes sense only for the cursor located
in a table and `outline-show-children' makes most sense (AFAICS) when
called on a headline.

Does this sound reasonable?

Does anyone see clearly how to implement this?  (I don't.)


Best regards
Marco




Re: [O] Bug: Symbol's value as variable is void: org-src-lang-modes

2017-09-07 Thread Kaushal Modi
On Thu, Sep 7, 2017 at 1:38 PM Elliott Slaughter 
wrote:

> Hi all,
>
> I have learned (thanks to the el-get developers) that org-mode uses
> with-eval-after-load, which was added in Emacs 24.4. (See discussion [1].)
>
> I confirmed that the master branch of org-mode loads (via el-get)
> successfully in 24.4.1 and fails to load in 24.3.1.
>
> [1]: https://github.com/dimitri/el-get/issues/2559#issuecomment-322881981
>

 I just pushed this to maint (and merged to master) that uses
eval-after-load instead of with-eval-after-load:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?h=maint&id=7a29c82e1100f0e0e5c1c8d8b276139358abb031
-- 

Kaushal Modi


Re: [O] ox-html export bug

2017-09-07 Thread kadal
The problem is that if you have CSS that decorates links by adding 
content after a link, that (empty) link gets decorated too.


Is it possible to remove it? There is no such empty link for the first 
heading which does not have CUSTOM_ID set.


Deepak

On 09/07/2017 10:32 AM, Nicolas Goaziou wrote:

Hello,

kadal  writes:


This org file

-
* heading 1
* heading 2
:PROPERTIES:
:CUSTOM_ID: my-name
:END:



exports to

---

1 heading 1



2 heading 2



---

The "" for the second heading is unnecessary.
Seems to only occur when CUSTOM_ID is set.


It is the internal reference for "my-name" custom ID.

Regards,






[O] match by property in agenda view

2017-09-07 Thread Xebar Saram
Hi all

i Have this item in a property drawer:

:people: %^{people?|-|allan|bob|joel}

now i have this custom agenda view defined


(add-to-list 'org-agenda-custom-commands
'("sk" "wtd"
tags  "people=\"allan\""
((org-agenda-sorting-strategy '(priority-down effort-down)))
))

yet when i launch it it never finds any items which have a  :people: allan
entry in the drawer

what am i missing?

thx

Z


Re: [O] Bug: Symbol's value as variable is void: org-src-lang-modes

2017-09-07 Thread Elliott Slaughter
Hi all,

I have learned (thanks to the el-get developers) that org-mode uses
with-eval-after-load, which was added in Emacs 24.4. (See discussion [1].)

I confirmed that the master branch of org-mode loads (via el-get)
successfully in 24.4.1 and fails to load in 24.3.1.

I'm not sure what the compatibility policy is in this project, and whether
or not this deserves a fix. I personally can work around this by building
Emacs from source on older machines, but I will need to do this on every
Ubuntu 14.04 machine I use.

[1]: https://github.com/dimitri/el-get/issues/2559#issuecomment-322881981

On Tue, Aug 15, 2017 at 1:10 PM, Kaushal Modi 
wrote:

> On Tue, Aug 15, 2017 at 3:48 PM Elliott Slaughter <
> elliottslaugh...@gmail.com> wrote:
>
>> Actually, the backtrace goes through the el-get loaddefs file, so maybe
>> something is going wrong there. Let me check with the el-get developers and
>> see if they know what is going on.
>>
>
> Yes, that's very likely. I have been building Org from master branch and
> it has been working fine.
>
> C-h v org-src-lang-modes tells that it is defined in org-src.el.
>
> So you probably have a mixed installation where an old org-src.el is
> loaded which doesn't have that variable defined.
>
> (I had recently written about how to install the development version of
> Org without causing mixed installations: https://scripter.co/building-
> org-development-version/ .)
>
> --
>
> Kaushal Modi
>



-- 
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to
predict the future is to invent it." - Alan Kay


Re: [O] ox-html export bug

2017-09-07 Thread Nicolas Goaziou
Hello,

kadal  writes:

> This org file
>
> -
> * heading 1
> * heading 2
> :PROPERTIES:
> :CUSTOM_ID: my-name
> :END:
>
> 
>
> exports to
>
> ---
> 
> 1 heading 1
> 
>
> 
>  class="section-number-2">2 heading 2
>
> 
> 
> ---
>
> The "" for the second heading is unnecessary.
> Seems to only occur when CUSTOM_ID is set.

It is the internal reference for "my-name" custom ID.

Regards,

-- 
Nicolas Goaziou



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

2017-09-07 Thread Xebar Saram
Hi!

I have this current capture

(add-to-list 'org-capture-templates '("bb" "Work.TODO" entry (file+headline
(concat pmm "/org/files/agenda/bgu.org") "TDEN") "* TODO %^G %? :@work:
\n%^T"
))

which seems to work by adding a tag (via the %^G) alongside the current
already defined tag in the capture template.

is there anyway to add a tag to the current tag in the capture template
(:@work: above).

Thx!

Z


[O] ox-html export bug

2017-09-07 Thread kadal

This org file

-
* heading 1
* heading 2
:PROPERTIES:
:CUSTOM_ID: my-name
:END:



exports to

---

1 heading 1



class="section-number-2">2 heading 2




---

The "" for the second heading is unnecessary. 
Seems to only occur when CUSTOM_ID is set.


Deepak



Re: [O] Table (used a "spreadsheet") org-sbe issues when the value is a string

2017-09-07 Thread Nicolas Goaziou
Alex Bennée  writes:

> So more correctly when org-confirm-babel-evaluate is set it breaks due
> to info not containing a character position for the TBLFM code. I fixed
> this by patching org-babel-check-confirm-evaluate:
>
> modified   lisp/ob-core.el
> @@ -242,7 +242,8 @@ should be asked whether to allow evaluation."
>   (and export (equal eval "query-export"))
>   (if (functionp org-confirm-babel-evaluate)
>   (save-excursion
> -   (goto-char (nth 5 info))
> +   (when (nth 5 info)
> + (goto-char (nth 5 info)))
> (funcall org-confirm-babel-evaluate
>  ;; language, code block body
>  (nth 0 info) (nth 1 info)))
>
> I'm not sure the goto-char is legitimate anyway as the documentation for
> org-confirm-babel-evaluate says nothing about point being set while it
> executes.

I agree and removed `goto-char'. Thank you for the analysis and the
patch.

Regards,



Re: [O] ics calendar?

2017-09-07 Thread Eric S Fraga
On Thursday,  7 Sep 2017 at 10:18, Matt Price wrote:
> So I'm really just asking whether other people do ics exports and if
> so, how you structure the org source files and so forth.

I use ics export to make my calendar available to my phone.  I have a
script that I run periodically which has the following lines:

--8<---cut here---start->8---
DIARY=...where my diary.org file resides...
emacs -Q --batch --debug-init \
--directory=${HOME}/s/emacs \
--load=custom.el \
--load=esf-org.el --visit=${DIARY}.org 
--eval='(org-icalendar-export-to-ics)'
--8<---cut here---end--->8---

and I then copy the resulting ics file to where Google Calendar, for
instance, can find it.  My custom.el has all of my Emacs customizations
and esf-org.el my org specific customizations.

I export all of my appointments and nothing else.  Tasks etc. are in
other org files.  I simply want my Pebble watch to vibrate when I have
an upcoming appointment and that's connected to my phone which needs my
calendar etc. etc. etc. :-) Sounds like the "For the want of a nail, the
kingdom was lost" kind of story: from Emacs via org to my watch in N
easy steps!

HTH,
eric

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.10-723-g23eba9


signature.asc
Description: PGP signature


Re: [O] Table (used a "spreadsheet") org-sbe issues when the value is a string

2017-09-07 Thread Alex Bennée

Alex Bennée  writes:

> Nicolas Goaziou  writes:
>
>> Hello,
>>
>> Alex Bennée  writes:
>>
>>> So calling scramble-string works as expected...
>>>
>>> #+tblname: reversed-strings
>>> | abcde   | #ERROR |
>>>
>>> | flibble | #ERROR |
>>> | dibble  | #ERROR |
>>> | xyzzy   | #ERROR |
>>> | another | #ERROR |
>>>
>>> #+TBLFM: $2='(org-sbe scramble-string (str $$1))
>>
>> I cannot reproduce it. I get:
>
> Hmm it turns out this interferes:
>
> ;; See 
> http://emacs.stackexchange.com/questions/499/finding-and-executing-org-babel-snippets-programatically
> (defun my-babel-hashed-confirm (lang body)

>
> (setq org-confirm-babel-evaluate 'my-babel-hashed-confirm)
>
> Resetting to org-confirm-babel-evaluate to nil and it works.

So more correctly when org-confirm-babel-evaluate is set it breaks due
to info not containing a character position for the TBLFM code. I fixed
this by patching org-babel-check-confirm-evaluate:

modified   lisp/ob-core.el
@@ -242,7 +242,8 @@ should be asked whether to allow evaluation."
(and export (equal eval "query-export"))
(if (functionp org-confirm-babel-evaluate)
(save-excursion
- (goto-char (nth 5 info))
+ (when (nth 5 info)
+   (goto-char (nth 5 info)))
  (funcall org-confirm-babel-evaluate
   ;; language, code block body
   (nth 0 info) (nth 1 info)))

I'm not sure the goto-char is legitimate anyway as the documentation for
org-confirm-babel-evaluate says nothing about point being set while it
executes.

--
Alex Bennée



Re: [O] setting local variables

2017-09-07 Thread Eric Abrahamsen
Nicolas Goaziou  writes:


[...]

> So, any objection to have all major back-ends ignoring unnumbered trees
> from TOC, and make that an Org specificity?

Sounds good!




Re: [O] Agenda broken after update to 9.1

2017-09-07 Thread Loris Bennett
Nicolas Goaziou  writes:

> Hello,
>
> "Loris Bennett"  writes:
>
>> However, when I try to clock into the first of several entries in the
>> agenda, I get the error
>>
>>   org-duration-to-minutes: Invalid duration format: ""
>>
>> and am not clocked in.  If I try the same entry a second time, there is
>> no error and I am clocked in.  Switching between clocks other than that
>> for the first entry work fine.
>
> I think I fixed it in maint. Could you confirm it?

Assuming I did everything correctly, I can confirm that the problem is
resolved in the following version:

  Org mode version 9.1 (release_9.1-21-g6cfc7c @ /home/loris/git/org-mode/lisp/)

Thanks for the new release and all your efforts.

Loris
-- 
This signature is currently under construction.




Re: [O] Table aligning and editing in 9.2

2017-09-07 Thread Nicolas Goaziou
Hello,

William Denton  writes:

> On 7 September 2017, William Denton wrote:
>
>> I can't find the "Dynamically narrow table columns" documentation,
>> though. Where is it?
>
> Aha, checking the Git commit I see it (in doc/org.texi).  (The title
> doesn't match, which threw me off.)

"Dynamically narrow table columns" is another entry in ORG-NEWS. But
there is, indeed, documentation in "org.texi".

> "To see the full text, hold the mouse over the field---a tool-tip window
> will show the full content.  To edit such a field, use the command
> @kbd{C-c `} (that is @kbd{C-c} followed by the grave accent).  This will
> open a new window with the full field."
>
> I wish I'd tested this before and noticed this, so I could comment.
> It makes using tables much less pleasurable, I think.

The above was also available in previous implementation of narrowed
columns.

What workflow are you missing? Note that typing in a shrunk column
expands it.

Regards,

-- 
Nicolas Goaziou



Re: [O] Table aligning and editing in 9.2

2017-09-07 Thread William Denton

On 7 September 2017, William Denton wrote:

I can't find the "Dynamically narrow table columns" documentation, though. 
Where is it?


Aha, checking the Git commit I see it (in doc/org.texi).  (The title doesn't 
match, which threw me off.)


"To see the full text, hold the mouse over the field---a tool-tip window
will show the full content.  To edit such a field, use the command
@kbd{C-c `} (that is @kbd{C-c} followed by the grave accent).  This will
open a new window with the full field."

I wish I'd tested this before and noticed this, so I could comment.  It makes 
using tables much less pleasurable, I think.


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



[O] ics calendar?

2017-09-07 Thread Matt Price
I've been using Kaushal's fantastic ox-hugo to build my course websites
(see http://2017.hackinghistory.ca/ for one more or less finished example;
slightly out of date and not-yet documented source files are on Github at
https://github.com/titaniumbones/Hacking-History/tree/2017).  It's a great
system  and I love it.

I've just noticed that Hugo supports .ics formats and thought it would be
useful to have a calendar for the class. I've never done .ics exports in
org -- I don't use the core calendar/agenda features very effectively --
and am not sure what the best way to do this would be.  So I'm really just
asking whether other people do ics exports and if so, how you structure the
org source files and so forth.

I look forward to hearing from everyone!

Matt


[O] Table aligning and editing in 9.2

2017-09-07 Thread William Denton
The new approach to table alignment, that will be in 9.2, is there now if you 
compile from source, which I did.  etc/ORG-NEWS says



** Incompatible changes
*** =align= STARTUP value no longer narrow table columns

Columns narrowing (or shrinking) is now dynamic. See [[*Dynamically
narrow table columns]] for details. In particular, it is decoupled from
aligning.


I can't find the "Dynamically narrow table columns" documentation, though. 
Where is it?


My main question is: Is it now necessary to use C-c ` to edit a cell in a table? 
Moving the point around skips from cell to cell without letting me edit it.  I 
hope this isn't permanent. :(


Bill
--
William Denton :: Toronto, Canada   ---   Listening to Art: 
https://listeningtoart.org/
https://www.miskatonic.org/ ---   GHG.EARTH: http://ghg.earth/
Caveat lector.  ---   STAPLR: http://staplr.org/



Re: [O] text search and restriction lock bugs

2017-09-07 Thread Nicolas Goaziou
Hello,

Samuel Wales  writes:

> recent maint.  these are separate, but 1 and 3 might be related, and 1 and
> 2 might be related, so i hope you don't mind if i put them together.
>
> 1.
>
> is it expected behavior that if you do a restriction lock on
> a subtree, then do a text search, it will include matches
> from org-agenda-text-search-extra-files?  imo it should not.

Agreed. Fixed.

> 2.
>
> if you remove the restriction lock and refresh the agenda,
> it will produce different results.
>
> imo, should act as if the restriction lock were still in place.  g
> should refresh with the settings that were present at invocation.
> sometimes you change buffer name, and run a new agenda, so that you
> can have 2 agendas, one restricted and one not.

Not sure I agree.

> the restriction lock is not fontified nicely so it can be desirable to
> remove it for editing.

Is this a different bug report?

> 3.
>
> finally, a user will sometimes bind org-agenda-files to a
> list that includes some of the
> org-agenda-text-search-extra-files files.  to avoid showing
> the same match twice, the user currently has to do
> remove-duplicates.  imo the agenda could do
> remove-duplicates to alleviate that burden.

Agreed. Fixed.

Thank you.

-- 
Nicolas Goaziou



Re: [O] Agenda broken after update to 9.1

2017-09-07 Thread Nicolas Goaziou
Hello,

"Loris Bennett"  writes:

> However, when I try to clock into the first of several entries in the
> agenda, I get the error
>
>   org-duration-to-minutes: Invalid duration format: ""
>
> and am not clocked in.  If I try the same entry a second time, there is
> no error and I am clocked in.  Switching between clocks other than that
> for the first entry work fine.

I think I fixed it in maint. Could you confirm it?

Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-agenda-current-time-string partly fontified with emphasis

2017-09-07 Thread Nicolas Goaziou
Hello,

Samuel Wales  writes:

> On 9/6/17, Samuel Wales  wrote:
>> in the new release, org-agenda-current-time-string is partly fontified
>> if it contains emphasis like "=== test ===".  my guess is best to not
>> fontify as it is not possible to
>> fix unless you turn it off for the entire buffer.
>
> the above is correct, but the cause is possibly related to the fact
> that there is an emphasis change from 9.0.
>
> before, "===" in the outline would not be fontified.  now it is.

Indeed. === really means "=" character in verbatim markup.

> can this be turned off?

You may be able to tweak fontification to ignore this special case. See
`org-font-lock-set-keywords-hook' to install a special rule for.

It will work as long as you don't export the document. For that case,
you could write a filter turning multiple "=" into "\equal".

Regards,

-- 
Nicolas Goaziou



Re: [O] setting local variables

2017-09-07 Thread Nicolas Goaziou
Hello,

Rasmus  writes:

> Speaking of LaTeX: not-in-toc and unnumbered is easy enough in LaTeX
> as it’s just section*.

Great.

> ox-odt, ox-html and ox-ascii all seem to add unnumbered headings to the
> toc.

These are trivial to handle, since they use
`org-export-collect-headlines' to build TOC. We just need to change this
function.

>> Or UNNUMBERED could imply "not in TOC" in "ox-texinfo.el", but that's
>> less good, IMO.
>
> One nice thing about this, I guess, is that it might allow you to use the
> "num" option to select which headings are kept out of the toc?

IIURC, num:N would be equivalent to toc:N. Maybe we could remove the
latter.

So, any objection to have all major back-ends ignoring unnumbered trees
from TOC, and make that an Org specificity?

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: org-split-string handles empty strings differently in 9.1

2017-09-07 Thread Nicolas Goaziou
Hello,

Erik Sjöstrand  writes:

> It seems that org-split-string was rewritten and handles empty strings
> differently in org-mode 9.1. Before (org-split-string "" " ") would
> return nil, but now it returns '("").

Correct.

> I couldn't see any information in the changelog about this.

Indeed. I overlooked this. I added this to ORG-NEWS.

> A side effect (among others, I would guess) of this is that
> org-entry-get-multivalued-property and org-entry-put-multivalued-property
> now return that a property always have a value, even though it is
> empty.

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Release 9.1

2017-09-07 Thread Eduardo Bellani
Yay
Jonas Bernoulli writes:

>> Org-mode 9.1 is out!
> Congratulations!


signature.asc
Description: PGP signature


[O] Bug: org-split-string handles empty strings differently in 9.1

2017-09-07 Thread Erik Sjöstrand
Hi!

It seems that org-split-string was rewritten, and handles empty strings
differently in org-mode 9.1. Before (org-split-string "" " ") would return
nil, but now it returns '(""). I couldn't see any information in the
changelog about this.

A side effect (among others, I would guess) of this is that
org-entry-get-multivalued-property and org-entry-put-multivalued-property
now return that a property always have a value, even though it is empty.

Emacs  : GNU Emacs 25.2.1 (x86_64-w64-mingw32)
 of 2017-04-24
Package: Org mode version 9.1 (9.1-elpaplus @
c:/home/.emacs.d/elpa/org-plus-contrib-20170906/)


Re: [O] setting local variables

2017-09-07 Thread Rasmus
Nicolas Goaziou  writes:

> Maybe UNNUMBERED property could imply a "not in TOC" clause in every
> back-end (I assume this is difficult to implement for LaTeX, though). In
> that case, UNNUMBERED would be a generic answer the problem.

Speaking of LaTeX: not-in-toc and unnumbered is easy enough in LaTeX as
it’s just section*.  It’s what it does now.  Unnumbered and in-the-toc is
harder, but e.g. KOMA-Script has it built in with \addpart{}, \addchap{}
(and maybe \addsec{}).  To add unnumbered headings in plain latex one
would have to add \addcontentsline{toc}{level}{title}.  Users have some
control over the matter in ox-latex via ox-latex-classes.

ox-odt, ox-html and ox-ascii all seem to add unnumbered headings to the
toc.

> Or UNNUMBERED could imply "not in TOC" in "ox-texinfo.el", but that's
> less good, IMO.

One nice thing about this, I guess, is that it might allow you to use the
"num" option to select which headings are kept out of the toc?

Rasmus

-- 
There are known knowns; there are things we know that we know