Re: [PATCH] New function org-agenda-filter-set

2020-05-22 Thread Stefan Kangas
Kyle Meyer  writes:

> nitpick: Could you update the docstring to explicitly mention STR and to
> describe NEGATE?

Fixed in the attached patch.

> Thanks for the patch.

Thanks for reviewing.

Best regards,
Stefan Kangas
From 5a9a7d810e174dfad30a6ec657b39cbe83879f94 Mon Sep 17 00:00:00 2001
From: Stefan Kangas 
Date: Sat, 23 May 2020 07:13:29 +0200
Subject: [PATCH] New function org-agenda-filter-set

* lisp/org-agenda.el (org-agenda-filter)
(org-agenda-filter-set): Refactor out from 'org-agenda-filter', to
create a better interface to filter the agenda from Lisp.
---
 lisp/org-agenda.el | 102 +
 1 file changed, 57 insertions(+), 45 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index ab13f926c..858de02c7 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7655,7 +7655,60 @@ consistency with the other filter commands."
 	   (if keep current nil)))
 	(org-agenda-filter-apply org-agenda-effort-filter 'effort)
 
-(defun org-agenda-filter ( strip-or-accumulate)
+(defun org-agenda-filter-set (str  force-keep negate)
+  "Set agenda filter from string STR.
+STR is parsed according to the rules described in
+`org-agenda-filter'.
+
+If FORCE-KEEP is non-nil, add the new filter elements to the
+existing ones.
+
+If NEGATE is non-nil, negate the entire filter."
+  (let* ((tag-list (org-agenda-get-represented-tags))
+ (category-list (org-agenda-get-represented-categories))
+ (keep (or force-keep
+   (if (string-match "^\\+[+-]" str)
+   (progn (setq str (substring str 1)) t
+ (fc (if keep org-agenda-category-filter))
+ (ft (if keep org-agenda-tag-filter))
+ (fe (if keep org-agenda-effort-filter))
+ (fr (if keep org-agenda-regexp-filter))
+ pm s)
+(while (string-match "^[ \t]*\\([-+]\\)?\\(\\([^-+<>=/ \t]+\\)\\|\\([<>=][0-9:]+\\)\\|\\(/\\([^/]+\\)/?\\)\\)" str)
+  (setq pm (if (match-beginning 1) (match-string 1 str) "+"))
+  (when negate
+(setq pm (if (equal pm "+") "-" "+")))
+  (cond
+   ((match-beginning 3)
+;; category or tag
+(setq s (match-string 3 str))
+(cond
+ ((member s tag-list)
+  (add-to-list 'ft (concat pm s) 'append 'equal))
+ ((member s category-list)
+  (add-to-list 'fc (concat pm s) 'append 'equal))
+ (t (message
+ "`%s%s' filter ignored because tag/category is not represented"
+ pm s
+   ((match-beginning 4)
+;; effort
+(add-to-list 'fe (concat pm (match-string 4 str)) t 'equal))
+   ((match-beginning 5)
+;; regexp
+(add-to-list 'fr (concat pm (match-string 6 str)) t 'equal)))
+  (setq str (substring str (match-end 0
+(org-agenda-filter-remove-all)
+(and fc (org-agenda-filter-apply
+ (setq org-agenda-category-filter fc) 'category))
+(and ft (org-agenda-filter-apply
+ (setq org-agenda-tag-filter ft) 'tag 'expand))
+(and fe (org-agenda-filter-apply
+ (setq org-agenda-effort-filter fe) 'effort))
+(and fr (org-agenda-filter-apply
+ (setq org-agenda-regexp-filter fr) 'regexp))
+(run-hooks 'org-agenda-filter-hook)))
+
+(defun org-agenda-filter ( strip-or-accumulate filter-string)
   "Prompt for a general filter string and apply it to the agenda.
 
 The string may contain filter elements like
@@ -7702,9 +7755,7 @@ the variable `org-agenda-auto-exclude-function'."
 	(unless (null org-agenda-tag-filter)
 	  (org-agenda-filter-apply org-agenda-tag-filter 'tag 'expand)))
 ;; Prompt for a filter and act
-(let* ((tag-list (org-agenda-get-represented-tags))
-	   (category-list (org-agenda-get-represented-categories))
-	   (negate (equal strip-or-accumulate '(4)))
+(let* ((negate (equal strip-or-accumulate '(4)))
 	   (cf (mapconcat #'identity org-agenda-category-filter ""))
 	   (tf (mapconcat #'identity org-agenda-tag-filter ""))
 	   (rpl-fn (lambda (c) (replace-regexp-in-string "^\+" "" (or (car c) ""
@@ -7717,47 +7768,8 @@ the variable `org-agenda-auto-exclude-function'."
 		   " [+cat-tag<0:10-/regexp/]: ")
 		  'org-agenda-filter-completion-function
 		  nil nil ff))
-	   (keep (or (if (string-match "^\\+[+-]" f-string)
-			 (progn (setq f-string (substring f-string 1)) t))
-		 (equal strip-or-accumulate '(16
-	   (fc (if keep org-agenda-category-filter))
-	   (ft (if keep org-agenda-tag-filter))
-	   (fe (if keep org-agenda-effort-filter))
-	   (fr (if keep org-agenda-regexp-filter))
-	   pm s)
-  (while (string-match "^[ \t]*\\([-+]\\)?\\(\\([^-+<>=/ \t]+\\)\\|\\([<>=][0-9:]+\\)\\|\\(/\\([^/]+\\)/?\\)\\)" f-string)
-	(setq pm (if (match-beginning 1) (match-string 1 f-string) "+"))
-	(when negate
-	  (setq pm (if (equal pm "+") "-" "+")))
-	(cond
-	 ((match-beginning 3)
-	  ;; category or tag
-	  (setq s (match-string 3 f-string))
-	  (cond
-	   ((member s 

Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-22 Thread Kyle Meyer
Hi Roland,

Roland Coeurjoly writes:

> I added version 9.4 to ORG-NEWS.
> Please tell me if that's OK or I should instead put it in 9.3.

I don't think you managed to place your patch correctly on top of the
current master (5adfb533c at the time of writing) because ...

> --- a/etc/ORG-NEWS
> +++ b/etc/ORG-NEWS
> @@ -10,6 +10,15 @@ See the end of the file for license conditions.
>  
>  Please send Org bug reports to mailto:emacs-orgmode@gnu.org.
>  
> +* Version 9.4
> +
> +** Incompatible changes
> +** New features
> +** New functions
> +** Removed functions and variables
> +** Miscellaneous
> +*** ob-haskell: introduce :compile header argument

... ORG-NEWS in master already has a section for 9.4.

You can correct the situation by fetching and then rebasing onto master.



Re: [PATCH] New function org-agenda-filter-set

2020-05-22 Thread Kyle Meyer
Stefan Kangas writes:

> Please find attached a patch to add a new function org-agenda-filter-set
> which allows you to specify the same strings as in the org-agenda-filter
> prompt directly from Lisp.  It allows you to do things like:
>
> (org-agenda-filter-set "-@foo-bar")
>
> Before, this would have involved doing more of the heavy lifting
> manually using org-agenda-filter-apply.

Sounds good to me.

> Subject: [PATCH] New function org-agenda-filter-set
>
> * lisp/org-agenda.el (org-agenda-filter)
> (org-agenda-filter-set): Refactor out from 'org-agenda-filter', to
> create a better interface to filter the agenda from Lisp.
> ---
>  lisp/org-agenda.el | 100 +
>  1 file changed, 55 insertions(+), 45 deletions(-)

As expected from the description, the bulk of this is code movement, all
of which looked sensible when I inspected it with
--color-moved=default --color-moved-ws=allow-indentation-change

> -(defun org-agenda-filter ( strip-or-accumulate)
> +(defun org-agenda-filter-set (str  force-keep negate)
> +  "Set agenda filter from string.
> +The string is parsed according to the rules described in
> +the `org-agenda-filter' command.
> +
> +If FORCE-KEEP is non-nil, add the new filter elements to the
> +existing ones."

nitpick: Could you update the docstring to explicitly mention STR and to
describe NEGATE?

Thanks for the patch.



Re: [QUESTION] Org "customid" and "coderef" links seems not fontified as other file: link

2020-05-22 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


Nicolas Goaziou  writes:

> Hello,
>
> stardiviner  writes:
>
>> I have following minimal testing code:
>>
>> #+begin_src emacs-lisp
>> (defun org-link-beautify (start end path bracketp)
>>   "Display icon for the Org link type."
>>   (message
>>(format "start: %s, end: %s, path: %s, bracketp: %s" start end path 
>> bracketp)))
>>
>> (dolist (link-type (mapcar 'car org-link-parameters))
>> (org-link-set-parameters link-type :activate-func #'org-link-beautify))
>> #+end_src
>>
>> The ~message~ does not print parameter values at all. I guess those 
>> "customid"
>> [[#Usage] and "coderef" (coderef) are different with "file:" etc links. Is 
>> this
>> true? Here is my complete source code I want to try fontify customid and 
>> coderef
>> links.
>>
>> https://github.com/stardiviner/org-link-beautify/blob/master/org-link-beautify.el#L67
>>
>> Is there any way to fix this problem?
>
> [[#cusom]], [[*headline]], [[(coderef)]] or, simply [[target]], are
> internal links, with a special syntax. In particular, they do not go
> through the `org-link-parameters' process.
>
> We could integrate them in that variable, i.e., extract the "follow"
> function from `org-link-open', handle completion, storage, with
> dedicated functions, etc.

That's a good solution, will be simple for future links manipulation.

>
> Help welcome.

Sure, anything I can help you can say.

>
> Meanwhile, your best bet is to defadvice `org-activate-links'.

I read the function `org-activate-links' source code, I guess you mean I can
advice on the `properties' let-binding variable. Add `'display' text property,
right? I don't know how to add advice for this functionality. Do you have any
sample code for hinting? I will be much thankful.

Regards,

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

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

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7IeYsUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsNjbggAlcDuPz9vXMC62NSZYf0WRIwD0893
UTsRr8sLlVWtIQV7eZ764mDrd7uOwzNnYTcBS2MbopzLs7sBRg4i6hmqKhAJFCYf
RuNJNnWg8oNQhiOTuN7eBRMIIv7k741T5H/8F4MdzX3KvtXhjoNjFm2BUdtwtWLl
UMAbazuRaDtjY3+sPtcGkXk6ZmkNtCh3LoPMYkfeq4dGXWantvlxDO6EYoJI+Klm
mPlqKXRSsVaZLbzxqAuqrQhIZog2gq+0nla2uqKTAocdNtTvWGqtlEbMd5p/BYB3
f/YGeFfJH5FeXIiuxZuFK83sVtpf1H3jtenHWQciuj+sqKgRN9acOi+bdg==
=tMva
-END PGP SIGNATURE-



Re: yhetil.org/orgmode now supports searching by Gmane ID

2020-05-22 Thread Kyle Meyer
Bastien writes:

> Kyle Meyer  writes:
>
>> Anyway, for the public-inbox archives at ,
>
> I find the interface to be very useful.

I'm glad to hear that!

> Is it possible to make it the standard/official way to search through
> emacs-orgmode mailing list?  Perhaps by hosting it on orgmode.org or
> by having a CNAME pointing to it?
>
> Let me how I can help with this.

Making it available at orgmode.org sounds fine to me.  My preference
would be for the orgmode.org server to host an actual mirror of the
archive.  This wouldn't involve setting up incoming mail on the server;
getting new messages would be a "git fetch && public-inbox-index".
Hopefully setting things up would be pretty painless given that I
already have a working setup.

And, as a general note, I'd be happy to see others host mirrors.  One of
the great things about public-inbox is that it makes it easy to do so.

>> I've recently generated Gmane ID to Message-ID mappings and hooked them
>> up to public-inbox's altid feature.  The end result is that you can now
>> use the "gmane:" prefix to search by the Gmane ID:
>>
>>   https://yhetil.org/orgmode/?q=gmane%3A112052
>
> That's very useful too.  We would fix the dead links on worg.

True :)  In my view it'd be best to rewrite the URLs in a form that
includes the message ID.  That (1) makes it easier to rewrite them to a
different host/server if they break in the future and (2) lets users
find the message in whatever archive they prefer, including their local
mail, as long as lookup by message ID is supported.

If anyone is interested in the Gmane ID to message ID mappings, you can
get them with

  curl -d'' -XPOST https://yhetil.org/orgmode/gmane.sql.gz | \
gzip -dc | sqlite3 gmane.sqlite3

(Note that -d'' seems to be necessary but shouldn't be.  I haven't
looked into it, though.)



Re: issue tracker?

2020-05-22 Thread Ken Mankoff
On Wed, May 20, 2020 at 7:36 PM Anthony Carrico 
wrote:

> Given that the mailing list holds the issues, it would be nice if you
> could import the mailing list into your client as a lump (maildir/mbox).
> Currently you can only download it chunk by chunk, so it isn't really
> practical for a newcomer to import the whole list to do research a new
> issue before reporting it.
>

You can import it. See recent announcement to this list:
https://lists.gnu.org/archive/html/emacs-orgmode/2020-04/msg00020.html

  -k.


Re: Hiding emphasis markers

2020-05-22 Thread Bastien
Hi Mark,

"Mark E. Shoulson"  writes:

> All right, then, you asked for it.  It's really very sloppy code right
> now; I'm just playing around to see what works.  Comments are kind of 
> stream-of-consciousness, they may be out of date wrt what works and
> what doesn't etc.  But hey, have fun. 
> https://gist.github.com/clsn/819a6463b1741eb465b310c39b4902a1

If/when it gets in a share you like, maybe you can add this to
https://orgmode.org/worg/org-hacks.html ?

-- 
 Bastien



Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-22 Thread Roland Coeurjoly
I added version 9.4 to ORG-NEWS.
Please tell me if that's OK or I should instead put it in 9.3.

On Fri, May 22, 2020 at 5:30 PM Nicolas Goaziou 
wrote:

> Hello,
>
> Roland Coeurjoly  writes:
>
> > The assignment process with the FSF is complete.
>
> Great news!
>
> Unfortunately, now I cannot your patch anymore. Would you mind rebasing
> it on top of master, and add an entry in ORG-NEWS, probably in
> "Miscellaneous" function.
>
> Regards,
>
> --
> Nicolas Goaziou
>
From daa91128ae38ffa47831c840b399144dd07c0b4a Mon Sep 17 00:00:00 2001
From: Roland Coeurjoly 
Date: Sat, 25 Apr 2020 20:35:22 +0200
Subject: [PATCH 1/1] ob-haskell: introduce :compile header argument

* lisp/ob-haskell (org-babel-haskell-compiler):
(org-babel-header-args:haskell): new variables.
(org-babel-haskell-execute):
(org-babel-haskell-interpret): new functions.
(org-babel-execute:haskell): use new functions.
---
 etc/ORG-NEWS   |  9 +
 lisp/org/ob-haskell.el | 78 +++---
 2 files changed, 82 insertions(+), 5 deletions(-)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index ce08496b20..2ac4315aa4 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -10,6 +10,15 @@ See the end of the file for license conditions.
 
 Please send Org bug reports to mailto:emacs-orgmode@gnu.org.
 
+* Version 9.4
+
+** Incompatible changes
+** New features
+** New functions
+** Removed functions and variables
+** Miscellaneous
+*** ob-haskell: introduce :compile header argument
+
 * Version 9.3
 
 ** Incompatible changes
diff --git a/lisp/org/ob-haskell.el b/lisp/org/ob-haskell.el
index e004a3405e..55989adba1 100644
--- a/lisp/org/ob-haskell.el
+++ b/lisp/org/ob-haskell.el
@@ -23,12 +23,13 @@
 
 ;;; Commentary:
 
-;; Org-Babel support for evaluating haskell source code.  This one will
-;; be sort of tricky because haskell programs must be compiled before
+;; Org Babel support for evaluating Haskell source code.
+;; Haskell programs must be compiled before
 ;; they can be run, but haskell code can also be run through an
 ;; interactive interpreter.
 ;;
-;; For now lets only allow evaluation using the haskell interpreter.
+;; By default we evaluate using the Haskell interpreter.
+;; To use the compiler, specify :compile yes in the header.
 
 ;;; Requirements:
 
@@ -47,6 +48,7 @@
 (declare-function run-haskell "ext:inf-haskell" ( arg))
 (declare-function inferior-haskell-load-file
 		  "ext:inf-haskell" ( reload))
+(declare-function org-entry-get "org" (pom property  inherit literal-nil))
 
 (defvar org-babel-tangle-lang-exts)
 (add-to-list 'org-babel-tangle-lang-exts '("haskell" . "hs"))
@@ -60,8 +62,66 @@ org-babel-haskell-eoe
 
 (defvar haskell-prompt-regexp)
 
-(defun org-babel-execute:haskell (body params)
-  "Execute a block of Haskell code."
+(defcustom org-babel-haskell-compiler "ghc"
+  "Command used to compile a Haskell source code file into an executable.
+May be either a command in the path, like \"ghc\"
+or an absolute path name, like \"/usr/local/bin/ghc\".
+The command can include a parameter, such as \"ghc -v\""
+  :group 'org-babel
+  :package-version '(Org "9.4")
+  :type 'string)
+
+(defconst org-babel-header-args:haskell '(compile . :any)
+  "Haskell-specific header arguments.")
+
+(defun org-babel-haskell-execute (body params)
+  "This function should only be called by `org-babel-execute:haskell'"
+  (let* ((tmp-src-file (org-babel-temp-file
+			"Haskell-src-"
+".hs"))
+ (tmp-bin-file
+  (org-babel-process-file-name
+   (org-babel-temp-file "Haskell-bin-" org-babel-exeext)))
+ (cmdline (cdr (assq :cmdline params)))
+ (cmdline (if cmdline (concat " " cmdline) ""))
+ (flags (cdr (assq :flags params)))
+ (flags (mapconcat #'identity
+		   (if (listp flags)
+   flags
+ (list flags)) " "))
+ (libs (org-babel-read
+	(or (cdr (assq :libs params))
+	(org-entry-get nil "libs" t))
+	nil))
+ (libs (mapconcat #'identity
+		  (if (listp libs) libs (list libs))
+		  " ")))
+(with-temp-file tmp-src-file (insert body))
+(org-babel-eval
+ (format "%s -o %s %s %s %s"
+ org-babel-haskell-compiler
+	 tmp-bin-file
+	 flags
+	 (org-babel-process-file-name tmp-src-file)
+	 libs)
+ "")
+(let ((results
+	   (org-babel-eval
+	(concat tmp-bin-file cmdline) "")))
+  (when results
+(setq results (org-trim (org-remove-indentation results)))
+(org-babel-reassemble-table
+ (org-babel-result-cond (cdr (assq :result-params params))
+	   (org-babel-read results t)
+	   (let ((tmp-file (org-babel-temp-file "Haskell-")))
+	 (with-temp-file tmp-file (insert results))
+	 (org-babel-import-elisp-from-file tmp-file)))
+ (org-babel-pick-name
+	  (cdr (assq :colname-names params)) (cdr (assq :colnames params)))
+ (org-babel-pick-name
+	  (cdr 

`with` as a list.

2020-05-22 Thread Mario Frasca

good day to you all

now and then I use emacs to make graphs.  now recently I was plotting 
point data, and a running average "fit", so I wanted to have points, and 
lines, which I know it's possible in `gnuplot` but now how do I do that 
from org-plot …


I wrote a small patch for org-plot.el, I'm not a Lisp programmer so I'm 
sure the patch looks terrible, but it does allow me to do this:


#+PLOT: ind:1 deps:(3 6 4 7) with:(points lines points lines)

it's two additions:

1. it lets me specify the order in which the dependent columns should be 
considered.


2. it lets me specify a different `with` for each column, in the same order.

if you leave the `with` away, you get "lines" for all columns.

if you specify only one `with` value, that value is used for all columns.

if you specify more `deps` than `with`, the ones not specified will get 
"lines".


if you specify more `with` than `deps`, they are ignored.

I ran the tests, and I get two failing ones, quite unrelated according 
to me:


2 unexpected results:
   FAILED  ob-exp/evaluate-all-executables-in-order
   FAILED  ob-exp/export-call-line-information

I have not defined test cases for the new behaviour, I'm willing to do 
that (learning the way this test environment works), but I don't find 
the location of the other tests related to the area of the program, 
which I'm tweaking.


best regards all,

Mario Frasca

diff --git a/lisp/org-plot.el b/lisp/org-plot.el
index a23195d2a..87a415137 100644
--- a/lisp/org-plot.el
+++ b/lisp/org-plot.el
@@ -179,6 +179,28 @@ and dependent variables."
 	  (setf back-edge "") (setf front-edge ""
 row-vals))
 
+(defun org-plot/zip-deps-with (num-cols ind deps with)
+  "describe each column to be plotted as (col . with)"
+  ;; make 'deps explicit
+  (unless deps
+(setf deps (let (r)
+		 (dotimes (i num-cols r)
+		   (unless (eq num-cols (+ ind i))
+		 (setq r (cons (- num-cols i) r)))
+  ;; make sure 'with matches 'deps
+  (unless with
+(setf with "lines"))
+  (unless (listp with)
+(setf with (mapcar (lambda (x) with) deps)))
+  ;; invoke zipping function on converted data
+  (org-plot/zip deps with))
+
+(defun org-plot/zip (xs ys)
+  (unless
+  (null xs)
+(cons (cons (car xs) (or (car ys) "lines"))
+	  (org-plot/zip (cdr xs) (cdr ys)
+
 (defun org-plot/gnuplot-script (data-file num-cols params  preface)
   "Write a gnuplot script to DATA-FILE respecting the options set in PARAMS.
 NUM-COLS controls the number of columns plotted in a 2-d plot.
@@ -240,22 +262,22 @@ manner suitable for prepending to a user-specified script."
 			   "%Y-%m-%d-%H:%M:%S") "\"")))
 (unless preface
   (pcase type			; plot command
-	(`2d (dotimes (col num-cols)
-	   (unless (and (eq type '2d)
-			(or (and ind (equal (1+ col) ind))
-(and deps (not (member (1+ col) deps)
-		 (setf plot-lines
-		   (cons
-			(format plot-str data-file
-(or (and ind (> ind 0)
-	 (not text-ind)
-	 (format "%d:" ind)) "")
-(1+ col)
-(if text-ind (format ":xticlabel(%d)" ind) "")
-with
-(or (nth col col-labels)
-(format "%d" (1+ col
-			plot-lines)
+	(`2d (dolist
+		 (col-with
+		  (org-plot/zip-deps-with num-cols ind deps with))
+	   (setf plot-lines
+		 (cons
+		  (format plot-str data-file
+			  (or (and ind (> ind 0)
+   (not text-ind)
+   (format "%d:" ind)) "")
+			  (car col-with)
+			  (if text-ind (format ":xticlabel(%d)" ind) "")
+			  (cdr col-with)
+			  (or (nth (1- (car col-with))
+   col-labels)
+  (format "%d" (car col-with
+		  plot-lines
 	(`3d
 	 (setq plot-lines (list (format "'%s' matrix with %s title ''"
 	data-file with
@@ -310,7 +332,8 @@ line directly before or after the table."
 table data-file params)))
 		 (when y-labels (plist-put params :ylabels y-labels)
   ;; Check for timestamp ind column.
-  (let ((ind (1- (plist-get params :ind
+  (let ((ind (1- (plist-get params :ind)))
+	(with (plist-get params :with)))
 	(when (and (>= ind 0) (eq '2d (plist-get params :plot-type)))
 	  (if (= (length
 		  (delq 0 (mapcar
@@ -320,7 +343,7 @@ line directly before or after the table."
 		 0)
 	  (plist-put params :timeind t)
 	;; Check for text ind column.
-	(if (or (string= (plist-get params :with) "hist")
+	(if (or (and (stringp with) (string= with "hist"))
 		(> (length
 			(delq 0 (mapcar
  (lambda (el)


Re: Additonal slashes in URI sent to org-protocol

2020-05-22 Thread Bastien
Hi Ferdinand,

thanks for your patch, I applied it against master:
https://code.orgmode.org/bzg/org-mode/commit/928e67df7e

I slightly condensed the commit message and I don't think
there is a real need for a comment in the code, but why not.

Cheers,

-- 
 Bastien



Re: [PATCH] strike-through text in tables

2020-05-22 Thread Bastien
Hi Mark,

"Mark E. Shoulson"  writes:

> I didn't see a response to this, and I hope it's just because I sent
> it wrongly or something.  If not, is there something amiss with this?
>
> Make a org-mode table.  In one of the cells of the table, have some
> text that is +struck out+.  Note that the struck-out text is default
> text color (black, for me), and not org-table text color (blue, for
> me).

I cannot reproduce this problem: all text in my table, striked-through
or not, is blue.

Do you have a way to reproduce your problem (ECM and versions)?

Thanks,

-- 
 Bastien



Re: please mention the blog-admin package for blogging with nikola

2020-05-22 Thread Bastien
Hi,

dalanicolai  writes:

> Please mention the blog-admin package for blogging with Nikola on the
> worg site. I chose to blog with Nikola because I found on the worg
> site that is support org-mode. It took me a lot of time and effort to
> finally stumble upon this simple solution to maintain my blog from
> emacs. Anyway, mentioning this package can persuade people to blog
> with Nikola, and it can save them a lot of time searching for easy
> good solutions (Eventually I actually, redundantly,  started coding a
> similar extension myself). Thank's a lot! Keep up the great work :)

Can you git clone https://code.orgmode.org/bzg/worg.git and send a
patch against the page where you want this to be mentioned?

Thanks,

-- 
 Bastien



Re: [Patch] Document org-capture-templates entry type default strings

2020-05-22 Thread Bastien
Hi,

No Wayman  writes:

> I assume I'll receive some sort of confirmation from FSF when
> everything is processed?

Yes, you should receive a confirmation - if not within a week or so,
let me know, sometimes asking again helps.

Best,

-- 
 Bastien



Re: [PATCH] Fix `org-babel-detangle' handling of false positives

2020-05-22 Thread Bastien
Hi Kevin,

Kevin Foley  writes:

> I've completed the copyright assignment so should be good to go with
> this.

great, thanks for letting us know!

> Haven't had a chance to see if any conflicts have come up in the
> meantime but will try to take a look today.

I tried to apply your patch but I was not able to apply it, perhaps
just a problem with extracting it from your email.

Can you send an (perhaps updated) version as an attachment?

Thanks,

-- 
 Bastien



Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-22 Thread Nicolas Goaziou
Hello,

Roland Coeurjoly  writes:

> The assignment process with the FSF is complete.

Great news!

Unfortunately, now I cannot your patch anymore. Would you mind rebasing
it on top of master, and add an entry in ORG-NEWS, probably in
"Miscellaneous" function.

Regards,

-- 
Nicolas Goaziou



Re: patch for org-confluence.el to add menu entry

2020-05-22 Thread Bastien
Hi Richard,

Richard Kim  writes:

> I would like to suggest the following patch so that I can easily
> export to Confluence wiki format using the usual org-mode export
> mechanism.

I added the menu entry here:
https://code.orgmode.org/bzg/org-mode/commit/cd336c2a

For future contributions as patches, please read this page:
https://orgmode.org/worg/org-contribute.html

Thanks,

-- 
 Bastien



Re: [QUESTION] Org "customid" and "coderef" links seems not fontified as other file: link

2020-05-22 Thread Nicolas Goaziou
Hello,

stardiviner  writes:

> I have following minimal testing code:
>
> #+begin_src emacs-lisp
> (defun org-link-beautify (start end path bracketp)
>   "Display icon for the Org link type."
>   (message
>(format "start: %s, end: %s, path: %s, bracketp: %s" start end path 
> bracketp)))
>
> (dolist (link-type (mapcar 'car org-link-parameters))
> (org-link-set-parameters link-type :activate-func #'org-link-beautify))
> #+end_src
>
> The ~message~ does not print parameter values at all. I guess those "customid"
> [[#Usage] and "coderef" (coderef) are different with "file:" etc links. Is 
> this
> true? Here is my complete source code I want to try fontify customid and 
> coderef
> links.
>
> https://github.com/stardiviner/org-link-beautify/blob/master/org-link-beautify.el#L67
>
> Is there any way to fix this problem?

[[#cusom]], [[*headline]], [[(coderef)]] or, simply [[target]], are
internal links, with a special syntax. In particular, they do not go
through the `org-link-parameters' process.

We could integrate them in that variable, i.e., extract the "follow"
function from `org-link-open', handle completion, storage, with
dedicated functions, etc.

Help welcome.

Meanwhile, your best bet is to defadvice `org-activate-links'.

Regards,

-- 
Nicolas Goaziou



Re: Assistant to remove unused IDs of org-id

2020-05-22 Thread Bastien
Hi Marc-Oliver,

Marc-Oliver Ihm  writes:

> as I use the excellent package org-id in a somewhat non-standard way,
> I tend to produce IDs, that are not referenced from anywhere. Org-id
> handles this great and does not suffer in performance, but eventually
> I want to remove those unreferenced IDs.
> Therefore I have written a small interactive assistant:
>
> https://github.com/marcIhm/org-working-set/blob/master/org-id-cleanup.el

This looks useful - if you some place where to document this on worg,
please go ahead!

Best,

-- 
 Bastien



Re: org-thtml - static html site in pure org + Emacs

2020-05-22 Thread Bastien
Hi Juan,

Juan José García-Ripoll  writes:

> I have created this standalone framework for building static HTML sites
> using Emacs and org-mode
>https://github.com/juanjosegarciaripoll/org-thtml/

This looks useful, thanks for sharing.

If you see a page on https://orgmode.org/worg/ where to mention this,
please send a patch against https://code.orgmode.org/bzg/worg/, this
would help others discover org-thtml

Thanks,

-- 
 Bastien



Re: [BUG] ob-clojure.el new backend 'inf-clojure not compatible with latest version inf-clojure

2020-05-22 Thread Bastien
Hi,

stardiviner  writes:

> I try to use 'inf-clojure babel eval backend. But I got error:

Thanks for reporting this.  I just had a look and inf-clojure changed
in a way that makes it difficult for now to use it.  I need to report
a problem with `clojure-project-dir' first, which current throws an
error when calling inf-clojure from an org file that is not part of
a clojure project.

I'll report when I make progress on this.

-- 
 Bastien



Re: Setting org-todo-keywords through directory-local variables

2020-05-22 Thread Nicolas Goaziou
Hello,

Kévin Le Gouguec  writes:

> Kévin Le Gouguec  writes:
>
>> Can anyone confirm that this would (in principle) be the way forward, or
>> tell me if I am missing something[3]?
>
> I went ahead and cooked up a proof-of-concept patch, which
>
> (1) adds safe-local-variable properties to org-todo-keywords and
> org-todo-keyword-faces,
>
> (2) stops applying default-value to org-todo-keywords,
>
> (3) delays regexps/font-lock setups until after file- and dir-local
> variables have been set.
>
> While this patch contains a few things that make me weary[1], it solves
> my use-case, and passes the current test suite with Emacs 26.3 and 28.
>
> Does this look sound overall?  Does anyone have any idea what kind of
> breakage might be slipping through the test suite?

This looks hackish. Also, Org needs the STARTUP part early on, so you
cannot really delay it.

I /think/ the rest can be delayed, but I admit I'm not too sure either.
I think the expected way to do this is to add a SETUPFILE.

Regards,

-- 
Nicolas Goaziou



Re: ISSUE: org publish document processor silently inserts licensed content into targets by default

2020-05-22 Thread Bastien
Hi Anthony,

Anthony Carrico  writes:

> ISSUE: An author should expect a compiler to avoid claiming authorship
> over target code, however, currently the org-mode publish document 
> processor silently inserts licensed content into target documents by
> default.
>
> SOLUTION: The following script is a drop-in-replacement which provides
> the same API as the original, without a license. It also opts not to 
> highlight code links, but only their targets, which seems less
> distracting (it is a simple change to keep the original behavior if 
> preferred).

If you think it is useful as a patch against Org, not just as a way to
customize a setup, can you send a patch?

See https://orgmode.org/worg/org-contribute.html on how to contribute.

Thanks,

-- 
 Bastien



Re: global macros

2020-05-22 Thread Nicolas Goaziou
Hello,

"Dauer, Michael"  writes:

> I want to set some org-mode macro globally in my init.el. E.g. author
> should be set to user-full-name, but I also want other stuff defined.
> Having to import these via setup or include files is not an option.
>
> Macros seem to be "buffer-local", which seems to mean that a cannot just
> add my macros to org-macro-templates.

See `org-export-global-macros'.

> BTW: What would be a good way to implement a general include file for all
> exports, i.e. to generally include a file with each export without having
> to write it into each file/branch to be included. I assume there is an
> export hook before macro expansion at which I can include the file. Which
> hook? What function to include my file?

See `org-export-before-processing-hook'.

Regards,

-- 
Nicolas Goaziou



Re: issue tracker?

2020-05-22 Thread Anthony Carrico

On 5/22/20 4:17 AM, Roland Everaert wrote:

Example of message states:
[QUESTION] -> [ANSWER]
[BUG] -> ( [CONFIRMED] | [WONTFIX] | [SOLVED] )
[CONFIRMED] -> ( [SOLVED] | [PLANNED] )
[FEATURE] -> ( [WONTDO] | [PLANNED] | [IMPLEMENTED] )
[PLANNED] -> ( [IMPLEMENTED] | [SOLVED] )


I love your enthusiasm. A mailing list has no means to type check 
messages, so I think it does call for a more simplified mechanism, 
especially as a first pass (note that the machine is necessarily 
nondeterministic, since different people can cause it to transition at 
the same time by sending a message).


I'd argue that questions and answers are just normal threads, that don't 
need a state, and issues just need an open state, and a closed state. 
/The details of the of those states are in the threads for anyone who 
cares to look/. So, OPEN/CLOSED and let the threads speak for themselves.


In this way, there are just two kinds of discussions: tracked, and 
untracked. Newbies can quickly pick up the OPEN/CLOSED grammar. People 
can meander threads between the richer states in their discussion, 
hopefully with good subject lines, and 'bots just need to look for one 
pair of keywords, ignoring threads without those keywords. I don't 
actually use emacs for email, but I'm guessing it wouldn't be too hard 
for someone to write an elisp script to scan a mailbox/maildir to gather 
a list of subject lines--is this true?


--
Anthony Carrico



Re: get the body of a heading up to the next subheading

2020-05-22 Thread Bastien
Hi John,

John Kitchin  writes:

> Here is a new version that might fail some other way!
>
> (defun canvas-org-get-heading-body ()
>   "Return the body of the current heading up to the next heading."
>   (interactive)
>   (save-excursion
>     (unless (org-at-heading-p)
>       (org-previous-visible-heading 1))
>     (org-end-of-meta-data)
>     (buffer-substring (point)
>      (progn (org-next-visible-heading 1) (point)

Maybe this is useful enough to end up in
https://orgmode.org/worg/org-hacks.html ?

We obviously need to make this page more readable and useful,
but new contents is always welcome.

Thanks,

-- 
 Bastien



Re: ox-confluence.el: omit radio target links (that end up being dead links)

2020-05-22 Thread Bastien
Hi Karl,

I fixed this here:
https://code.orgmode.org/bzg/org-mode/commit/ceb0ef95fb

Thanks for the report,

-- 
 Bastien



Re: [PATCH] Fix `org-babel-detangle' handling of false positives

2020-05-22 Thread Kevin Foley


Hi,

I've completed the copyright assignment so should be good to go with
this.

Haven't had a chance to see if any conflicts have come up in the
meantime but will try to take a look today.

Kevin



Re: Headlines require both space and star

2020-05-22 Thread Bastien
Hi Ryan,

I've tried to make this a bit clearer in the documentation and the
tutorial:

https://code.orgmode.org/bzg/org-mode/commit/27ec1c2cff
https://code.orgmode.org/bzg/worg/commit/b42f8d20a4

Thanks,

-- 
 Bastien



Re: ical2org.awk

2020-05-22 Thread Bastien
Hi Eric,

Eric S Fraga  writes:

> Yes, I guess ical2org does expect gawk.  I should have made that
> clear.  On my Debian installation (currently a bullseye/sid
> combination), /usr/bin/awk points to gawk (via /etc/alternatives/awk) so
> I never thought about it. 

I allowed myself to use #!/usr/bin/env gawk -f here:

https://code.orgmode.org/bzg/worg/commit/2d5d92ca61

I see there is
https://github.com/msherry/ical2org/blob/master/ical2org.awk

so perhaps hosting the code on worg/code/ is not so useful
anymore?  If you see useful places in Worg where pointers
could be updated, please go ahead.

Thanks,

-- 
 Bastien



Re: Bug: JS code in code block isn't executed, it throws an error [9.3.6 (9.3.6-25-g685b2c-elpaplus @ /Users/serg/.spacemacs-emacs/elpa/28.0/develop/org-plus-contrib-20200316/)]

2020-05-22 Thread Bastien
Hi Sergey,

I think this issue is fixed here:
https://code.orgmode.org/bzg/org-mode/commit/47b653450f

Please let us know otherwise.

Thanks,

-- 
 Bastien



Re: ob-js uses deprecated Node APIs

2020-05-22 Thread Bastien
Hi Ivan,

Ivan Sokolov  writes:

> I ran into problems with ob-js. When resolving them, I found that
> require ('sys') is deprecated, there is a patch.

applied against the maint branch, thanks a lot, and thanks Matt for
confirming the issue.

-- 
 Bastien



bug#41364: 27.0.91; org-self-insert-command does not work

2020-05-22 Thread General discussions about Org-mode.
Hi Tim,

you need to add (require 'org-tempo) to your configuration to get
 writes:

> Tim Hawes  writes:
>
>> Start emacs with emacs -Q
>> Start or open an org-mode document
>> type > describe-key looks correct.
>
> Does the following snippet from ORG-NEWS's "incompatible changes"
> section[1] look relevant?

-- 
 Bastien





bug#15888: 24.3.50; Eval-after-load eval'ed twice

2020-05-22 Thread Bastien
Hi Sebastien,

are you still seeing something weird in this area?

I could not reproduce the problem you describe.

If you don't report anything wrong within a month or so,
I will close this bug report.

Thanks,

-- 
 Bastien





bug#36984: 27.0.50; Calling newline in org src opens org src edit

2020-05-22 Thread Bastien
Hi Deric,

Nicolas Goaziou  writes:

> Deric Bytes  writes:
>
>> Calling M-x newline when in org src block. Turns it yellow and prevents
>> editing (it opens org edit src )
>>
>> I have tried the latest emacs and org-mode. And run the following code
>> in an emacs -q
>
> I didn't try with Emacs 27, but with Org 9.3 and Emacs 26.3, I cannot
> reproduce your problem.

I cannot reproduce this problem neither, I'm closing this bug report
now, feel free to reopen it if needed.

Thanks,

-- 
 Bastien





bug#19014: 25.0.50; Disable Org, Tbl, & Text menu items that change buffer when read-only

2020-05-22 Thread Bastien
Hi Drew,

Adams  writes:

> Your call.  It doesn't matter to me, personally.  I'm thinking
> only of Org users - what might help them.  And you obviously are
> a better judge of that.  Feel free to close the bug, if you don't
> think it needs or is worth fixing.

I've never seen this issue brought by Org users in the last six years
so I guess we can safely close this, which I'm doing now.

Thanks,

-- 
 Bastien





bug#15164: 24.3.50; e

2020-05-22 Thread Bastien
Eli Zaretskii  writes:

> severity 15164 wishlist
> thanks
>
>> From: "Fabrice Niessen" 
>> Date: Thu, 22 Aug 2013 23:01:06 +0200
>> 
>> When fontifying the whole line for headings (in Org) with a background color
>> and an overline "rule", the "rule" stops at the last shown character of the
>> headline, while the background color goes well up to the end of the screen.
>
> The 'overline' attribute is applied only to the foreground of the
> face, not to the background.  That is how Emacs always worked.
>
> Volunteers are welcome to apply the relevant attributes to the face
> extension code.

I think this can safely be closed.  Fabrice, feel free to reopen this
issue if you think it is important enough.  Thanks,

-- 
 Bastien





bug#24198: bug#24211: Subject: 25.0.94; Proposal to make orgmode agenda really useful

2020-05-22 Thread Bastien
Hi Christoph,

thanks for the proposal about enhancing Org Agenda.

If you think it is still useful to push for this idea, can you repost
it to emacs-orgmode@gnu.org, where such feature requests are discuted,
preferrably with one feature per thread?

I am closing the report from here.

Thanks,

-- 
 Bastien





bug#34684: 26.1; Strange characters when inserting date

2020-05-22 Thread Eli Zaretskii
> From: Bastien 
> Cc: "Wong, Philip" ,  rpl...@gmail.com,
>   34...@debbugs.gnu.org
> Date: Fri, 22 May 2020 14:10:21 +0200
> 
> It seems like the bug is not related to org-mode.

It isn't, but it can also be closed.  Which I did.

Thanks.





bug#35847: org-babel clojure bug? nil prepended to all results?

2020-05-22 Thread Bastien
Hi Brian,

Brian Beckman  writes:

> I originally submitted this to the nrepl / cider group in github
> because my workaround entailed a (most likely bogus) change to nrepl,
> but they closed it and told me to submit it here. My original
> submission is copied below. The response of the nrepl maintainer can
> be found at https://github.com/nrepl/nrepl/issues/146

ob-clojure.el has been going through a major rewrite since last year,
and I cannot reproduce this issue.  I am closing this report now.  If
you still see the issue, please report it to emacs-orgmode@gnu.org.

Thanks,

-- 
 Bastien





bug#37333: Org-mode python output not working

2020-05-22 Thread Bastien
Hi Michael,

Bastien  writes:

> I cannot reproduce this bug with latest Org from the master branch.
> If you can, let me know.  Otherwise, I'll close this bug in a month
> or so.

I am closing this bug report now.  If this is still a problem, please
test again latest Org and report it to emacs-orgmode@gnu.org.

-- 
 Bastien





bug#34684: 26.1; Strange characters when inserting date

2020-05-22 Thread Bastien
It seems like the bug is not related to org-mode.

I'd like to "unassign" the bug report from org-mode, but
I am not sure how to do that.  If anyone can help, thanks.

-- 
 Bastien





bug#25487: 26.0.50; org-table-align doesn't work with different face sizes in row

2020-05-22 Thread Bastien
Hi Ryan and Nicolas,

Nicolas Goaziou  writes:

> Ryan McCarl  writes:
>
>> (1) Define the faces org-table and org-link with a fixed-width font
>> (Inconsolata in
>> my case) so table alignment should normally work.
>> (2) Define the scale of the org-link face to 0.9 and the scale of the
>> org-table face to 1.0.
>> (3) Embed a link among other text in the table row.
>
> Table alignment assumes fixed width characters. Changing the scale of
> the face defeats this assumption. I think this should be marked as
> WONTFIX.

Agreed.  I'm closing this bug now.

-- 
 Bastien





bug#2409: Status: 23.0.90; org-mode + viper-mode + ns make typing unresponsive

2020-05-22 Thread Bastien
bug#2409 <2...@debbugs.gnu.org> writes:

> retitle 2409 23.0.90; org-mode + viper-mode + ns make typing unresponsive
> reassign 2409 emacs,org-mode
> submitter 2409 Steve Purcell 
> severity 2409 normal

The bug was considered by several people in this thread as
non-reproducible.  Although I am not entirely it is not reproducible,
I close it, considering it is quite old now.

Steven, feel free to report the bug to emacs-orgmode@gnu.org is it is
still there.

-- 
 Bastien





bug#11710: Status: 24.1.50; Bidi attributes are not exported in org-mode html output

2020-05-22 Thread Bastien
bug#11710 <11...@debbugs.gnu.org> writes:

> retitle 11710 24.1.50; Bidi attributes are not exported in org-mode html 
> output
> reassign 11710 emacs,org-mode
> submitter 11710 Dov Grobgeld 
> severity 11710 normal

Closing this old bug, as there was no follow-up.

If the problem still exists, please report it to emacs-orgmode@gnu.org.

-- 
 Bastien





Re: issue in orgmode manual

2020-05-22 Thread Bastien
Hi Max and John,

thanks for reporting this, it is now fixed.

Best,

-- 
 Bastien



Re: Scrolling through features on website doesn't work properly

2020-05-22 Thread Bastien
Hi Janek,

Janek F  writes:

> Trying to scroll through the features of org mode on https://
> orgmode.org/features.html# with the buttons didn't work for me,
> neither on Firefox nor Chromium.
> On other subpages, such as https://orgmode.org/#docs, it did work.

thanks for reporting this and sorry for the delay.

It is fixed now.

-- 
 Bastien



Re: emacs + org-mode in virtual machine/docker/...

2020-05-22 Thread Dan Pomohaci

Hi,

I made a docker image dpom/godevem 
(https://hub.docker.com/repository/docker/dpom/godevem) for golang 
development with emacs.

It is use by my golang course students and
it runs on any platform that has installed docker engine.

Best regards,
Dan

On 22.05.2020 00:28, briangpowell . wrote:
> Oh if you're talking about students that use a combo of Mac & Windows &
> Linux:
>
> Suggest VirtualBox --its free and can be installed and ported to each
>
> But VirtualBox is based largely on Qemu; and for students, I highly
> recommend they become adept at running and using Qemu
>
> I've booted and run many different operating system guest systems using
> Qemu--even an OS written entirely in Assembler
>
> Believe it would be loads of fun for students to load and run many
> different operating systems with Qemu or distributions of Linux or any
> OS on the fly
>
> But back to our original focus: Running Emacs Org-Mode on a Virtual
> Machine that is extremely portable--you can do this with Qemu--you can
> make your own Linux distro with Emacs Org-mode, make an ISO, a .iso file
> and boot and run it with Qemu
>
> You can put it all on a USB key and run it on any machine--and then edit
> the .iso and add software later if you like
>
> But enough about Qemu for student education etc.
>
> Suggest:
>
> * Install VirtualBox {on all 2 operating systems
>
> * Make an virtual machine {Linux or Windows--maybe Mac would be a
> problem--but I just checked--you could host a VirtualBox virtual machine
> on a Mac so they should be able to do that (I used to run VMWare every
> day on my mac and huge Mac servers--booted and ran many virtual
> machines--it was awesome)
>
> * Install Emacs & Org-Mode on the VirtualBox virtual machine & show your
> students, etc.=> reproducible research computing, at its best!
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Thu, May 21, 2020 at 2:02 PM briangpowell .  > wrote:
>
> You name it in the virtual world & I've done it--and of course Emacs
> Org-Mode works great in ALL of them
>
> KVM+Docker{which I posted to this group about
> previously}+VMWare+Qemu+VirtualBox+etc. --I agree with other person:
> You can find ready-made Docker containers running emacs--personally
> I didn't find it all that interesting--too restrictive--prefer
> VMWare Workstation images that I can easily make snapshots of--its
> great to have many development versions and easily trash something
> and just pull out another snapshot version to use instead if I don't
> like things {packaging or libraries can get messed up}
>
> As much as I hate MicroSoft Windows, it pains me to suggest this;
> but, I suggest CygWin--which is a RedHat gift--you can just install
> your favorite Desktop like LXDE/XWindows/whatever--and run that
> right along with Micro$0ft WindBlowz--works great--right on top of
> it--I run Org-Mode on that too--lots of fun, highly recommend it
>
> All the best software is ported to ALL platforms--Emacs is in that
> category of course
>
> Alternatively you can FUSE filesystems together--so machines can
> become part of the directory of the machine you're most comfortable
> with {that runs your fave Org-Mode implementation}
>
> On Thu, May 21, 2020 at 9:28 AM John Kitchin
> mailto:jkitc...@andrew.cmu.edu>> wrote:
>
> Has anyone had any success in creating or using any kind of
> virtual machine that can work across platforms to run
> emacs+org-mode?
>
>
> John
>
> ---
> Professor John Kitchin
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> @johnkitchin
> http://kitchingroup.cheme.cmu.edu
>



global macros

2020-05-22 Thread Dauer, Michael
Hi,

I want to set some org-mode macro globally in my init.el. E.g. author
should be set to user-full-name, but I also want other stuff defined.
Having to import these via setup or include files is not an option.

Macros seem to be "buffer-local", which seems to mean that a cannot just
add my macros to org-macro-templates.

So what would be a good way to achieve my requirements?

BTW: What would be a good way to implement a general include file for all
exports, i.e. to generally include a file with each export without having
to write it into each file/branch to be included. I assume there is an
export hook before macro expansion at which I can include the file. Which
hook? What function to include my file?

Thanks,
Michael


Re: emacs + org-mode in virtual machine/docker/...

2020-05-22 Thread briangpowell .
Would like to "allow the windows host to access the guest using SSH to run
Emacs Org-Mode" suggestions:

* Install Cygwin on Windows and use Cygwin's SSH tools & run X on Cygwin &
login to your Linux virtual machine desktop

** Then can use X11VNC and/or TightVNC client if you run a VNC server of
some sort on your VirtualBox virtual machine

*  Possibly you could install a NOMACHINE server {https://www.nomachine.com}
on the Linux virtual machine & a windows NOMACHINE client on your Windows
host machine & login to your Linux virtual machine desktop








https://www.nomachine.com/

On Fri, May 22, 2020 at 4:08 AM Roland Everaert 
wrote:

> I am a user of emacs on virtual machines at work, and the environment
> works pretty well. I use virtual box as the provided workstation host
> windows, but the virtual machine host a linux os though. The only thing I
> didn't manage to do yet, is to allow the windows host to access the guest
> using SSH. I have read many articles, but none of them seems to work :(
>
> Any suggestion for the latter topic, (off this list), is welcomed
>
> Regards,
>
> Roland.
>
> On Fri, May 22, 2020 at 7:27 AM Jens Lechtenboerger <
> lech...@wi.uni-muenster.de> wrote:
>
>> On 2020-05-21, John Kitchin wrote:
>>
>> > What do you do with this image? I would be happy to continue this
>> off-list
>> > if it seems better.
>>
>> I generate self-study HTML presentations with audio as OER based on
>> reveal.js.  See there for a course about to start in two weeks:
>> https://oer.gitlab.io/OS/
>>
>> Material generated from this:
>> https://gitlab.com/oer/OS/-/blob/master/.gitlab-ci.yml
>>
>> A howto: https://oer.gitlab.io/emacs-reveal-howto
>>
>> Best wishes
>> Jens
>>
>>


Re: Setting org-todo-keywords through directory-local variables

2020-05-22 Thread Nicolas Goaziou
Hello,

Kévin Le Gouguec  writes:

> I'd like to set org-todo-keywords and org-todo-keyword-faces through
> directory-local variables, to get rid of duplicate #+SEQ_TODO lines in
> my Org files[1].
>
> Right now I see two obstacles for this to work:
>
> (1) org-set-regexps-and-options, which sets up a bunch of TODO-related
> machinery, insists on using (default-value 'org-todo-keywords),
>
> (2) this function is called in the major mode function, which IIUC means
> that directory-local values have not been applied yet.
>
> The first obstacle looks like it can be easily removed[2]; the second
> obstacle looks more substantial.  It is trivially side-stepped by
> sticking (hack-local-variables) at the top of org-mode; to my untrained
> eye, it looks like TRT would rather be for Org to add
> org-set-regexps-and-options to hack-local-variables-hook.
>
> This sounds like a risky change though: I imagine that a lot of what
> happens in the major mode function depends on what
> org-set-regexps-and-options sets up, and would therefore need to be
> moved to this hook as well.  Figuring which parts should be moved seems
> like a non-trivial task that might introduce some regressions…
>
>
> Can anyone confirm that this would (in principle) be the way forward, or
> tell me if I am missing something[3]?

Did you consider using SETUPFILE?

Regards,

-- 
Nicolas Goaziou



Re: issue tracker?

2020-05-22 Thread Roland Everaert
I will surely state the obvious, but the output of this discussion is that
ther4e is a need for everybody, what ever our relationship to org-mode or
emacs, needs a way to filter the various conversation about org-mode on the
various communication channel used by the project.

This mainly imply this ML and if there is a way to pre-format messages we
want to send to the ML it will make filtering easier.

In fact, a good approach would be the same as for todo state.

Example of message states:
[QUESTION] -> [ANSWER]
[BUG] -> ( [CONFIRMED] | [WONTFIX] | [SOLVED] )
[CONFIRMED] -> ( [SOLVED] | [PLANNED] )
[FEATURE] -> ( [WONTDO] | [PLANNED] | [IMPLEMENTED] )
[PLANNED] -> ( [IMPLEMENTED] | [SOLVED] )

Of Course, nothing should prevent moving a message from [BUG] to [QUESTION]
for example.

Hope this will help go on with a solution and an actual implementation, I
suppose mainly documentation on the org website and configuration for all
of us.

Regards,

Roland.


On Thu, May 21, 2020 at 6:32 PM Eric Abrahamsen 
wrote:

> Kévin Le Gouguec  writes:
>
> > Nicolas Goaziou  writes:
> >
> >> - As pointed out, Org has a bug tracker : Emacs' Debbugs. See
> >>   . Org users do not send bugs
> >>   through it much.
> >
> > (In the event that they do, should whoever follows bug-gnu-emacs refer
> > these users to emacs-orgmode?)
>
> Maybe a first step would be changing `org-submit-bug-report' to submit
> the bug to debbugs, not to this mailing list?
>
> I know I'd be happy to help with bug triage, but I don't go wading
> through this mailing list like I used to. I do use debbugs for other
> stuff, though, and it would be easy to add an extra filter that I check
> regularly.
>
> 2¢...
>
>


Re: emacs + org-mode in virtual machine/docker/...

2020-05-22 Thread Roland Everaert
I am a user of emacs on virtual machines at work, and the environment works
pretty well. I use virtual box as the provided workstation host windows,
but the virtual machine host a linux os though. The only thing I didn't
manage to do yet, is to allow the windows host to access the guest using
SSH. I have read many articles, but none of them seems to work :(

Any suggestion for the latter topic, (off this list), is welcomed

Regards,

Roland.

On Fri, May 22, 2020 at 7:27 AM Jens Lechtenboerger <
lech...@wi.uni-muenster.de> wrote:

> On 2020-05-21, John Kitchin wrote:
>
> > What do you do with this image? I would be happy to continue this
> off-list
> > if it seems better.
>
> I generate self-study HTML presentations with audio as OER based on
> reveal.js.  See there for a course about to start in two weeks:
> https://oer.gitlab.io/OS/
>
> Material generated from this:
> https://gitlab.com/oer/OS/-/blob/master/.gitlab-ci.yml
>
> A howto: https://oer.gitlab.io/emacs-reveal-howto
>
> Best wishes
> Jens
>
>


Re: Fwd: Support compilation of Haskell in org mode babel blocks.

2020-05-22 Thread Roland Coeurjoly
The assignment process with the FSF is complete.

Best regards,

Roland

On Tue, May 5, 2020 at 11:31 PM Nicolas Goaziou 
wrote:

> Hello,
>
> Roland Coeurjoly  writes:
>
> > Please see attached patch.
>
> Great!
>
> It seems that this is a patch that needs to be applied on top of the
> previous one. Could you merge them into a single patch and send it
> again?
>
> Please let me know when the FSF registers you.
>
> Regards,
>
> --
> Nicolas Goaziou
>