Re: How to send patch for org-contrib?

2023-05-25 Thread dalanicolai
Ah great, good to know... thanks again!

On Thu, 25 May 2023 at 12:57, Ihor Radchenko  wrote:

> dalanicolai  writes:
>
> > I have just created a patch for org-eldoc.el in org-contrib.
> > I tried to send it using the 'Prepare a patchset' functionality on
> > sourcehut which
> > requires me to enter some email-address for where to send it to.
> > As I have no idea where to send it, I simply filled in the address of
> this
> > mailing list.
> > However, I do not see the message appear in my inbox.
> >
> > So, I am wondering, how should I send a patch for org-contrib?
>
> You patch did reach the Org ML:
>
> https://list.orgmode.org/168500905821.7612.716094690080728324...@git.sr.ht/T/#t
>
> It is also likely listed somewhere in your sr.ht account, like in
> activity feed (mine is https://sr.ht/~yantar92/). In future, you can add
> your personal email to CC when sending a patchset.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


Re: [PATCH org-contrib 0/1] Fix org-eldoc functionality

2023-05-25 Thread dalanicolai
Thanks, for the quick merge. And noted... :)


On Thu, 25 May 2023 at 13:03, Ihor Radchenko  wrote:

> ~dalanicolai  writes:
>
> > Eldoc functionality only works after a restricted set of commands (see
> > the variable 'eldoc-message-commands'). Because `org-self-insert-
> > command', by default, is not in that list, eldoc functionality works
> > poorly in org-mode (it does not work when typing, only when navigating).
> > This patch fixes it for when using org-eldoc.el.
>
> Applied, onto master.
>
> https://git.sr.ht/~bzg/org-contrib/commit/aed67d095de23bc45446777f7b8fb30b8e5c0c51
>
> Do note that we only provide minimal maintenance for org-contrib.
> Packages from org-contrib are looking for new proper maintainers.
> See https://orgmode.org/worg/org-orphanage.html
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


How to send patch for org-contrib?

2023-05-25 Thread dalanicolai
Hello,

I have just created a patch for org-eldoc.el in org-contrib.
I tried to send it using the 'Prepare a patchset' functionality on
sourcehut which
requires me to enter some email-address for where to send it to.
As I have no idea where to send it, I simply filled in the address of this
mailing list.
However, I do not see the message appear in my inbox.

So, I am wondering, how should I send a patch for org-contrib?

Thank you


[PATCH org-contrib 0/1] Fix org-eldoc functionality

2023-05-25 Thread ~dalanicolai
Eldoc functionality only works after a restricted set of commands (see
the variable 'eldoc-message-commands'). Because `org-self-insert-
command', by default, is not in that list, eldoc functionality works
poorly in org-mode (it does not work when typing, only when navigating).
This patch fixes it for when using org-eldoc.el.

Daniel Nicolai (1):
  Fix org-eldoc: add 'org-self-insert-command' to
'eldoc-message-commands'

 lisp/org-eldoc.el | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.38.4



[PATCH org-contrib 1/1] Fix org-eldoc: add 'org-self-insert-command' to 'eldoc-message-commands'

2023-05-25 Thread ~dalanicolai
From: Daniel Nicolai 

---
 lisp/org-eldoc.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/org-eldoc.el b/lisp/org-eldoc.el
index 5b4f66d..7137c46 100644
--- a/lisp/org-eldoc.el
+++ b/lisp/org-eldoc.el
@@ -54,6 +54,8 @@
   :group 'org-eldoc
   :type 'string)
 
+(eldoc-add-command 'org-self-insert-command)
+
 (defun org-eldoc-get-breadcrumb ()
   "Return breadcrumb if on a headline or nil."
   (let ((case-fold-search t) cur)
-- 
2.38.4



Re: [FR] Add support for racket images in org-babel

2022-12-21 Thread dalanicolai
Thanks for your answer!


> You likely need to extend `org-babel-scheme--table-or-string' to
> understand Image: type.
>

It looks to me that when `org-babel-execute:scheme` gets executed, then the
result will not get inserted as a link, as that would require the results
type 'file', right?
>From the manual <https://orgmode.org/manual/Results-of-Evaluation.html>, it
seems to me that using the 'file' type is required to get the result
inserted as a link.

However, I can not see how the code does the following as explained in the
manual.

The manual <https://orgmode.org/manual/Results-of-Evaluation.html> states
(under Type/file):

> If ‘file’ header argument is missing, Org generates the base name of the
> output file from the name of the code block, and its extension from the ‘
> file-ext’ header argument. In that case, both the name and the extension
> are mandatory.
>
suggesting that a file gets written also when there is no :file header
argument.

But from the `and` condition here
<https://github.com/bzg/org-mode/blob/bd468136dd1a2172302b3ec980c5e6b6e327d683/lisp/ob-core.el#L820>
in `org-babel-execute-src-block`, it looks to me that a file is only
written when a :file argument is provided (via the `with-temp-file` that
follows within the 'when file ...').
Anyway, this I only found when trying to find out how the result gets
formatted as a link.

I guess to get the racket `Image` file-path to formatted correctly, it
would be preferable to only touch ob-scheme for that. In which case, I
think the 'result' under 'org-babel-result-cond' at the end of
'org-babel-execute:scheme' should get (re)formatted conditionally (when the
results is a racket image (link)).

So in the end, I conclude that maybe the advice as mentioned in my
'original' mail, might be already the 'cleanest' solution (and that it does
not cause any problem concerning a file getting written to disk, as
luckily, org does not seem to write files when no :file header argument is
given). Anyway, I am struggling to find out how to come up with an
alternative clean(er) solution.

On Sun, 18 Dec 2022 at 13:38, Ihor Radchenko  wrote:

> dalanicolai  writes:
>
> > I have not asked anywhere yet, but I do not know a 'standard org-mode'
> way
> > to make org-mode show the plot images. Racket creates a temp image file
> and
> > returns a string that includes the path to the file. The actual format of
> > the string is:
> >
> > "\"#\""
> >
> > I could create a patch for it, but I am not sure how to best implement it
> > (in a clean way).
>
> You likely need to extend `org-babel-scheme--table-or-string' to
> understand Image: type.
>
> > however, it would be great if support could be added to ob-scheme itself.
> > I would be happy to do it, but as mentioned before I don't think I know
> how
> > to do it in the proper way. I would probably just add a condition around
> the
> > 'result' in 'org-babel-execute:scheme' as follows:
>
> I do not know much about scheme.
>
> Generally, ob-* libraries try their best to convert native language
> types to Elisp. If # is something that is unambiguously
> identified as image file, I do not see why we cannot support it,
> converting the # representation to file link. Especially,
> when users request :results file.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


[FR] Add support for racket images in org-babel

2022-12-15 Thread dalanicolai
Hello,

I am trying out racket  which seems to provide a
quite nice plotting package .
Also, it is easy to install and configure, easy to learn. and it has great
learning material.
It looks like a great simple (compared to common-lisp or clojure)
alternative to python
(so far for the enthusiasm).

I have not asked anywhere yet, but I do not know a 'standard org-mode' way
to make org-mode show the plot images. Racket creates a temp image file and
returns a string that includes the path to the file. The actual format of
the string is:

"\"#\""

I could create a patch for it, but I am not sure how to best implement it
(in a clean way).

Currently, I am simply using the following advice (while including in the
header ':results file'):

  (with-eval-after-load 'ob-scheme
> (defun ob-racket-advice (orig-fun  args)
>   (let ((result (print (apply orig-fun args
> (if (string-match "\"# (nth 1 (string-split result " " nil ">\""))
>   result)))
>
> (advice-add 'org-babel-execute:scheme :around #'ob-racket-advice))
>

however, it would be great if support could be added to ob-scheme itself.
I would be happy to do it, but as mentioned before I don't think I know how
to do it in the proper way. I would probably just add a condition around the
'result' in 'org-babel-execute:scheme' as follows:

  (org-babel-result-cond result-params
>(if (and (eq impl 'racket)
>  (string-match "\"# (nth 1 (string-split result " " nil ">\""))
>   result)
>(org-babel-scheme--table-or-string table)))
>

Thank you!


Re: [BUG] demarcate block splits block even when outside of src-block

2022-10-25 Thread dalanicolai
Great! Thank you...

On Tue, 25 Oct 2022 at 11:41, Ihor Radchenko  wrote:

> dalanicolai  writes:
>
> >  [9.5.4 (release_9.5.4 @ /usr/local/share/emacs/29.0.50/lisp/org/)]
> >
> > When trying to create a new src-block via `M-x
> > org-babel-demarcate-block` immediately after a previous code block (only
> > empty lines in between), then the command behaves like when splitting a
> > src-block (inserting an #+end_src first, followed by a #+begin_src).
> >
> > However, as the point is outside of the source block, according to the
> > docstring of the command, a new source block should be created.
> >
> > As a comment, normally when creating a new source block, Emacs prompts
> > for the source block type. However, currently, when used as mentioned
> > here, the command automatically sets the type (because it tries to
> > split). I would say that is convenient behavior, so that effectively
> > only the order of the inserted lines should get reversed.
>
> Thanks for reporting!
> Fixed on main.
>
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=cd835dcad87bc5b3855832449188dd007fce115c
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>


[BUG] demarcate block splits block even when outside of src-block

2022-06-12 Thread dalanicolai
 [9.5.4 (release_9.5.4 @ /usr/local/share/emacs/29.0.50/lisp/org/)]

When trying to create a new src-block via `M-x
org-babel-demarcate-block` immediately after a previous code block (only
empty lines in between), then the command behaves like when splitting a
src-block (inserting an #+end_src first, followed by a #+begin_src).

However, as the point is outside of the source block, according to the
docstring of the command, a new source block should be created.

As a comment, normally when creating a new source block, Emacs prompts
for the source block type. However, currently, when used as mentioned
here, the command automatically sets the type (because it tries to
split). I would say that is convenient behavior, so that effectively
only the order of the inserted lines should get reversed.

In any case, thanks for the amazing work!

Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.34, cairo version 1.17.6)
 of 2022-06-12
Package: Org mode version 9.5.4 (release_9.5.4 @
/usr/local/share/emacs/29.0.50/lisp/org/)

current state:
==
(setq
 org-link-elisp-confirm-function 'yes-or-no-p
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
 org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
  [add-hook change-major-mode-hook org-show-all append local]
  5]
#[0 "\300\301\302\303\304$\207"
  [add-hook change-major-mode-hook org-babel-show-result-all
   append local]
  5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-confirm-shell-link-function 'yes-or-no-p
 outline-isearch-open-invisible-function 'outline-isearch-open-invisible
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-speed-command-hook '(org-speed-command-activate
 org-babel-speed-command-activate)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
 org-babel-header-arg-expand)
 org-link-shell-confirm-function 'yes-or-no-p
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-loop-over-headlines-in-active-region nil
 org-occur-hook '(org-first-headline-recenter)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("attachment" :follow org-attach-follow :complete
org-attach-complete-link)
  ("id" :follow org-id-open)
  ("eww" :follow org-eww-open :store org-eww-store-link)
  ("rmail" :follow org-rmail-open :store
org-rmail-store-link)
  ("mhe" :follow org-mhe-open :store org-mhe-store-link)
  ("irc" :follow org-irc-visit :store org-irc-store-link
:export org-irc-export)
  ("info" :follow org-info-open :export org-info-export
:store org-info-store-link)
  ("gnus" :follow org-gnus-open :store
org-gnus-store-link)
  ("docview" :follow org-docview-open :export
org-docview-export :store org-docview-store-link)
  ("bibtex" :follow org-bibtex-open :store
org-bibtex-store-link)
  ("bbdb" :follow org-bbdb-open :export org-bbdb-export
:complete org-bbdb-complete-link :store
org-bbdb-store-link)
  ("w3m" :store org-w3m-store-link)
  ("doi" :follow org-link-doi-open :export
org-link-doi-export)
  ("file+sys") ("file+emacs")
  ("shell" :follow org-link--open-shell)
  ("news" :follow
#[514 "\301\300\302Q\"\207"
 ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"]
)
  ("mailto" :follow
#[514 "\301\300\302Q\"\207"
 ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"]
)
  ("https" :follow
#[514 "\301\300\302Q\"\207"
 ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"]
)
  ("http" :follow
#[514 "\301\300\302Q\"\207"
 ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"]
)
  ("ftp" :follow
#[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"]
 6 "\n\n(fn URL ARG)"]
)
  ("help" :follow org-link--open-help :store
org-link--store-help)
  ("file" :complete org-link-complete-file)
  ("elisp" :follow org-link--open-elisp))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 )


Re: What's up with ob-template.el? It seems heavily outdated

2021-09-25 Thread dalanicolai
Hi Bastien,

For sure I am happy to contribute it to (w)org.

I have very recently assigned copyright to the FSF for sketch-mode
<https://github.com/dalanicolai/sketch-mode> (it is currently on
https://elpa.gnu.org/devel/).
So do I have to assign separately again for this contribution? (Would be no
problem of course, just a question)

Anyway, I will already attach the patch. For some reason my Emacs (i.e.
Spacemacs) also reformats the table with
supported languages in index.org. So, maybe you can check if it is
correctly formatted. As I updated this long ago,
it would take me too long to look again at this now (so therefore, I simply
added a link to a mail from Eric Schulte
with some more info), but it should be better than the current info, and a
very acceptable (re)start.

Regards,
Daniel


On Sat, 25 Sept 2021 at 16:19, Bastien  wrote:

> Hi,
>
> thanks for your work on ob-template.el.
>
> Would you be willing to contribute it to Org's core?
>
> If so, please fill in this form:
> https://orgmode.org/request-assign-future.txt
>
> Once that's done, please send a patch to this list against the main
> branch.  See the instructions on contributing here:
>
> https://orgmode.org/worg/org-contribute.html
>
> Thanks!
>
> --
>  Bastien
>
From e75d75bd60dcc8074e2712936d19d4147ef79fa2 Mon Sep 17 00:00:00 2001
From: Daniel Nicolai 
Date: Sat, 25 Sep 2021 22:58:39 +0200
Subject: [PATCH] Update ob-template.el file

---
 org-contrib/babel/languages/index.org | 220 +++---
 org-contrib/babel/ob-template.el  |  61 +--
 2 files changed, 168 insertions(+), 113 deletions(-)

diff --git a/org-contrib/babel/languages/index.org b/org-contrib/babel/languages/index.org
index 626b81ff..2d582ff7 100644
--- a/org-contrib/babel/languages/index.org
+++ b/org-contrib/babel/languages/index.org
@@ -31,103 +31,103 @@ the Emacs package system.
 
 #+caption: Languages supported by Babel
 #+name: babel-languages
-| Core language| Identifier  | Requirements   | Maintainer|
-|--+-++---|
-| [[file:ob-doc-abc.org][ABC]]  | =abc= | [[http://moinejf.free.fr/][abcm2ps]], [[https://github.com/mkjunker/abc-mode][abc-mode]]  | William Waites|
-| [[file:ob-doc-asymptote.org][Asymptote]]| =asymptote=   | [[http://asymptote.sourceforge.net/][Asymptote]], [[http://asymptote.sourceforge.net/doc/Editing-modes.html][asy-mode]]| Luc Pellissier|
-| [[file:ob-doc-awk.org][Awk]]  | =awk= | AWK| Tyler Smith   |
-| [[file:ob-doc-C.org][C]]| =C=   | none   | Thierry Banel |
-| [[file:ob-doc-C.org][C++]]  | =cpp= | none   |   |
-| Calc | =calc=| none   | Tom Gillespie |
-| [[file:ob-doc-clojure.org][Clojure]]  | =clojure= | [[http://clojure.org/][Clojure]], [[https://github.com/clojure-emacs/clojure-mode][Clojure Mode]], [[https://github.com/clojure-emacs/cider][CIDER]], [[http://leiningen.org/][Leiningen]]| Bastien Guerry|
-| comint   | =comint=  ||   |
-| Coq  | =coq= | [[https://coq.inria.fr/][Coq]], [[https://proofgeneral.github.io/][Proof General]] | Luc Pellissier|
-| [[file:ob-doc-css.org][CSS]]  | =css= | none   |   |
-| [[file:ob-doc-C.org][D]]| =D=   | [[http://dlang.org][D]]  |   |
-| [[file:ob-doc-ditaa.org][Ditaa]]| =ditaa=   | [[http://ditaa.sourceforge.net][ditaa]] (bundled with Org-mode)  |   |
-| [[file:ob-doc-dot.org][Dot (Graphviz)]]   | =dot= | [[http://www.graphviz.org/][dot]]| Justin Abrahms|
-| ebnf | =ebnf=| [[https://www.emacswiki.org/emacs/EbnfToPsPackage][ebnf2ps]]|   |
-| Emacs Lisp   | =emacs-lisp=  | none   |   |
-| [[file:ob-doc-eshell.org][eshell]]   | =eshell=  | eshell | stardiviner   |
-| Forth| =forth=   | [[https://www.gnu.org/software/gforth/][gforth]] |   

Re: Advice for new feature 'image block` for new `sketch-mode` package

2021-09-20 Thread dalanicolai
Also, I already looked at the org source to see how to add e.g. a
#+BEGIN_IMAGE block,
but I found the 'api' quite overwhelming. So I am hoping that some
experienced developer
could maybe give some advice/explain (for) how to approach/implement this.

On Mon, 20 Sept 2021 at 20:19, dalanicolai  wrote:

> Hello,
>
> I am developing a new package for quickly sketching svg images, (see, and
> try
> out, sketch-mode at https://elpa.gnu.org/devel/). With the package, I can
> already quickly create a sketch and subsequently quickly save it and
> insert a
> link in some org-mode buffer (using the `b` transient suffix). Also I can
> quickly insert some image (using the `I` suffix), but then unfortunately
> the
> image will not get saved.
>
> As svg is just xml, for small sketches I would prefer to insert directly
> the xml
> into the org-buffer within an image block, in which I can quickly toggle
> showing
> the image using `C-c C-c` (or `org-toggle-inline-images`). Also, exporting
> such
> xml should work perfectly fine when exporting to e.g. html.
>
> I guess a normal source block is not suitable, because I would like to
> create
> the image overlay directly within the block. I am happy to (help)
> implement(ing)
> such a feature, but I thought it would be wise to first discuss and
> 'enquire'
> for suggestions here.
>
> Thanks you!
>


Advice for new feature 'image block` for new `sketch-mode` package

2021-09-20 Thread dalanicolai
Hello,

I am developing a new package for quickly sketching svg images, (see, and
try
out, sketch-mode at https://elpa.gnu.org/devel/). With the package, I can
already quickly create a sketch and subsequently quickly save it and insert
a
link in some org-mode buffer (using the `b` transient suffix). Also I can
quickly insert some image (using the `I` suffix), but then unfortunately the
image will not get saved.

As svg is just xml, for small sketches I would prefer to insert directly
the xml
into the org-buffer within an image block, in which I can quickly toggle
showing
the image using `C-c C-c` (or `org-toggle-inline-images`). Also, exporting
such
xml should work perfectly fine when exporting to e.g. html.

I guess a normal source block is not suitable, because I would like to
create
the image overlay directly within the block. I am happy to (help)
implement(ing)
such a feature, but I thought it would be wise to first discuss and
'enquire'
for suggestions here.

Thanks you!


Build agenda asynchronously

2021-08-16 Thread dalanicolai
There was a question on Stack-Exchange if it would be possible to build
*org-agenda* asynchronously. I could not quickly find any good answers
neither in the mailing lists nor anywhere else.

As I assume this will be a quite helpful feature for some more users, I am
notifying you about it here.

The question with its answer can be found at
https://emacs.stackexchange.com/questions/68123/async-org-agenda/68136#68136

Cheers,
Daniel


Re: What's up with ob-template.el? It seems heavily outdated

2021-05-26 Thread dalanicolai
Because of the image in that repo the link does not jump exactly to the
right location... anyway the tips are just below that image/animation.
Also, for some reason the link to my repo failed... so here
<https://github.com/dalanicolai/dala-emacs-lisp> it is again (well it just
links to the same page as the tips link)

On Wed, 26 May 2021 at 14:07, dalanicolai  wrote:

> Ha! Well not too much response here...
>
> Anyway @Pedro:
> So I do not have too much time to work on an updated template. But I have
> added a somewhat updated template file to my emacs-lisp repo here along
> with some handy tips
> <https://github.com/dalanicolai/dala-emacs-lisp#ob-templateel>.
> Then of course you can further just check out examples of other ob-el
> files. Hope this is useful.
>
>


Re: What's up with ob-template.el? It seems heavily outdated

2021-05-26 Thread dalanicolai
Ha! Well not too much response here...

Anyway @Pedro:
So I do not have too much time to work on an updated template. But I have
added a somewhat updated template file to my emacs-lisp repo here
 along with some handy tips
<https://github.com/dalanicolai/dala-emacs-lisp#ob-templateel>.
Then of course you can further just check out examples of other ob-el
files. Hope this is useful.


What's up with ob-template.el? It seems heavily outdated

2021-05-21 Thread dalanicolai
I am trying to improve org-babel support for maxima.
However, when starting from ob-template.el
,
which is advised in the section "develop support for new languages" in
the org-mode
docs , it
seems that the code within that template file is heavily incorrect.

I can write a whole list with "bugs", but it already starts with most of
the params in the `org-babel-execute` function getting processed
incorrectly.

So I am wondering, am I missing something here? Or is this documentation
just heavily outdated?

Would you be interested in some updated ob-template.el file?

You have any experience with adding language support? Then how did you
approach it?

Also, I could not really find a (recent) bug-report about this issue. So
nobody mentioned this before?

I can already find my way, using edebug and checking out other ob-...el
files. I am just interested in (and surprised about) the current situation
and why it is like that. And I am wondering if maybe there is some more
recent documentation available.

Thanks!


Re: contact management in emacs

2021-02-27 Thread dalanicolai
I think all packages fulfill your requirements. So I would say it depends
on how many contacts you are managing. I have some experience with
org-contacts, and I find it very convenient and straightforward. It is also
very convenient to just use org-mode, i.e. a plain text file, for your
contacts. Every contact is a headline and you can add any kind of property
or tag etc. you want. Also anniversaries get added to the Agenda. You can
very easily jump to the right contact, using imenu or swoop/swiper (I use
`SPC j i ` in Spacemacs. So if you have less than say 300 contacts (I have
really no clue about the number of contacts that will still work smoothly),
then depending on how die-hard you are, I would recommend to start with
org-contacs. You can use org-vcard to import contacts, and org-vcard claims
to support exports too but I did not test that yet.
Anyway, I think you won't loose much time with setting up org-contacts and
from then you can slowly check out and study the other options.

I do not use Emacs for email yet, but org-contacts claims to support most
of Emacs its mail-readers.

If you enjoy tweaking your setup and study a little more then maybe
directly use BBDB or EBDB. EBDB's goal is to be a modern BBDB and I guess
the main developer does a very nice job. I have no experience with these
databases, because I think they are overkill (currently) for my usecase.

Daniel Nicolai

On Sat, 27 Feb 2021 at 18:03,  wrote:

> Send Emacs-orgmode mailing list submissions to
> emacs-orgmode@gnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.gnu.org/mailman/listinfo/emacs-orgmode
> or, via email, send a message with subject or body 'help' to
> emacs-orgmode-requ...@gnu.org
>
> You can reach the person managing the list at
> emacs-orgmode-ow...@gnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Emacs-orgmode digest..."
>
>
> Today's Topics:
>
>1. Re: Turning off all indentation in 9.4.4 (TRS-80)
>2. Re: Tips on maintaining history in Org Mode (TRS-80)
>3. Re: Set archive location relative to property (TRS-80)
>4. [PATCH] ~org-font-lock-add-priority-faces~: ensure priority
>   cookies are in a headline (Sébastien Miquel)
>5. Re: Tips on maintaining history in Org Mode (Samuel Wales)
>6. Re: Tips on maintaining history in Org Mode (David Masterson)
>7. Re: Tips on maintaining history in Org Mode (David Masterson)
>8. Re: Tips on maintaining history in Org Mode (David Masterson)
>9. Re: Tips on maintaining history in Org Mode (Tim Cross)
>   10. [bug] org-yank in stars corrupts outline (Samuel Wales)
>   11. Re: [bug] org-yank in stars corrupts outline (Samuel Wales)
>   12. Re: Tips on maintaining history in Org Mode (David Masterson)
>   13. Re: Tips on maintaining history in Org Mode (Samuel Wales)
>   14. Re: Tips on maintaining history in Org Mode (Ihor Radchenko)
>   15. Re: Tips on maintaining history in Org Mode (Ihor Radchenko)
>   16. Re: Tips on maintaining history in Org Mode (Ihor Radchenko)
>   17. contact management in emacs (Alan Schmitt)
>   18. Simple org-publish configuration example in manual does not
>   work (dalanicolai)
>   19. Re: contact management in emacs (Martin Steffen)
>   20. Re: [bug] org-yank in stars corrupts outline (Maxim Nikulin)
>   21. Re: [PATCH] org-mac-link: Disable Evernote capture by default
>   (Aaron Jensen)
>   22. Re: Babel: Programmatically evaluate a heading and subtrees?
>   (ian martins)
>   23. Re: contact management in emacs (andrés ramírez)
>   24. ob-reticulate: R+Python interface from Babel (Jack Kamm)
>   25. Re: contact management in emacs (Eric S Fraga)
>   26. Re: contact management in emacs (andrés ramírez)
>   27. Re: contact management in emacs (Martin Steffen)
>   28. Re: contact management in emacs (Bob Newell)
>
>
> --
>
> Message: 1
> Date: Fri, 26 Feb 2021 14:12:09 -0500
> From: TRS-80 
> To: emacs-orgmode@gnu.org
> Subject: Re: Turning off all indentation in 9.4.4
> Message-ID: <83f49a373d71c4b786bda1ad6323c...@isnotmyreal.name>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> On 2021-02-26 01:20, Kyle Meyer wrote:
> > TRS-80 writes:
> >
> >> On 2021-02-24 15:58, TRS-80 wrote:
> >>> On 2021-02-16 23:30, Kyle Meyer wrote:
> > [...]
> >>>> So, if I'm reading your preferences correctly, it sounds like you
> >>>> want
> >>>> just the first suggestion in the above snippet, leaving
> >>>> org-adapt-indentation at its default value:
> >>>>
> >>>>   (add-hook 'org-mode-hook (

Simple org-publish configuration example in manual does not work

2021-02-27 Thread dalanicolai
Hello, sorry for sending this email directly, but currently sending mail
from Emacs does not work correctly.


I was trying out the org-publishing functionality, but I found that
the first example in the documentation given at
https://orgmode.org/manual/Simple-example.html#Simple-example
does not work. When I try to publish the project it errors with the
following message

org-publish-file: No publishing function chosen

So I figured that I should add a :publishing-function and I remembered
reading earlier in the documnetation,
i.e. at https://orgmode.org/manual/Publishing-action.html#Publishing-action
org-html-publish-to-html that org uses the default publishing-function

org-publish-org-to-html

But when trying to publish using that function then Emacs errors with
the message

org-publish-file: Symbol’s function definition is void:
org-publish-org-to-html

I have found the following error report from 17 Mar 2013, reporting
exactly the same error (and a reply with the solution)
https://lists.gnu.org/archive/html/emacs-orgmode/2013-03/msg01221.html

It would be great if these two small point in the manual, which is
otherwise great, could
get updated.

1. add the required :publishing-function keyword to the documentation (with
the correct function value)
2. change the name of the default function from org-publish-org-to-html ->
*org-html-publish-to-html*

Thank you!

Best regards,
Daniel Nicolai


Improve formatting and documentation inline source block [9.3 (release_9.3 @ /usr/local/share/emacs/28.0.50/lisp/org/)]

2021-02-18 Thread dalanicolai
Sorry, sending this from the browser because none of Emacs sending options
currently work

From: dalanicolai
 
To: emacs-orgmode@gnu.org
Subject: Bug: Improve formatting and documentation inline source block [9.3
 (release_9.3 @ /usr/local/share/emacs/28.0.50/lisp/org/)]
Date: Thu, 18 Feb 2021 18:13:07 +0100
Message-ID:
<87o8ghwb8c.fsf@daniel-fedora.i-did-not-set--mail-host-address--so-tickle-me
>
--text follows this line--

This bug report contains two requests/bugs about inline source blocks
namely:

1. Inline source blocks don't get formatted/propertized within
org buffers.
2. Different from ordinary source blocks, the inline source blocks
require the [:exports code] argument to get exported. I think it would
be useful to mention it explicitly in [section 15.2 of the
documentation](https://orgmode.org/manual/Structure-of-Code-Blocks.html),
because it is somewhat unexpected behavior (compared to ordinary source
blocks).

To test it just open an org buffer and enter e.g. the following line
`test src_emacs-lisp{(server-start)} test`
then run `M-x org-html-export-as-html`. Compare output to that of
`test src_emacs-lisp[:exports code]{(server-start)} test`


Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.25, cairo version 1.16.0)
 of 2021-02-18
Package: Org mode version 9.3 (release_9.3 @
/usr/local/share/emacs/28.0.50/lisp/org/)

current state:
==
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-link-shell-confirm-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 outline-isearch-open-invisible-function #[128 "\300\301!\207"
[org-show-context isearch] 3 "\n\n(fn  _)"]
 org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook
change-major-mode-hook org-show-all append local] 5]
#[0 "\300\301\302\303\304$\207"
  [add-hook change-major-mode-hook org-babel-show-result-all append local]
5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-babel-pre-tangle-hook '(save-buffer)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-occur-hook '(org-first-headline-recenter)
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
 org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("attachment" :follow org-attach-open-link :export
org-attach-export-link :complete
org-attach-complete-link)
  ("id" :follow org-id-open) ("eww" :follow eww :store
org-eww-store-link)
  ("rmail" :follow org-rmail-open :store org-rmail-store-link)
  ("mhe" :follow org-mhe-open :store org-mhe-store-link)
  ("irc" :follow org-irc-visit :store org-irc-store-link :export
org-irc-export)
  ("info" :follow org-info-open :export org-info-export :store
org-info-store-link)
  ("gnus" :follow org-gnus-open :store org-gnus-store-link)
  ("docview" :follow org-docview-open :export org-docview-export :store
org-docview-store-link)
  ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
  ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete
org-bbdb-complete-link
:store org-bbdb-store-link)
  ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs")
  ("shell" :follow org-link--open-shell)
  ("news" :follow #[257 "\301\300\302Q!\207" ["news" browse-url ":"] 5
"\n\n(fn URL)"])
  ("mailto" :follow #[257 "\301\300\302Q!\207" ["mailto" browse-url
":"] 5 "\n\n(fn URL)"])
  ("https" :follow #[257 "\301\300\302Q!\207" ["https" browse-url ":"]
5 "\n\n(fn URL)"])
  ("http" :follow #[257 "\301\300\302Q!\207" ["http" browse-url ":"] 5
"\n\n(fn URL)"])
  ("ftp" :follow #[257 "\301\300\302Q!\207" ["ftp" browse-url ":"] 5
"\n\n(fn URL)"])
  ("help" :follow org-link--open-help) ("file" :complete
org-link-complete-file)
  ("elisp" :follow org-link--open-elisp) ("doi" :follow
org-link--open-doi))
 org-link-elisp-confirm-function 'yes-or-no-p
 )


Bug: org-html-export-as-html changes numbered sections to number one exclusively [9.3.7 (9.3.7-elpa @ /home/dalanicolai/.my_emacs.d/elpa/org-20200602/)]

2020-07-04 Thread dalanicolai
WHAT HAPPENS:

When exporting a simple org-buffer, org-html-export-as-html, containing
text as follows:

1. hello
bye

2. ola
ciao

Then the numbers get changed to 1's exclusively, so that the html file
is rendered in the browser as follows:



   1. Hello

Deoi

   1.  Ola

Daag

Author: Daniel Laurens Nicolai

Created: 2020-07-04 Sat 18:06

Validate


EXPECTED TO HAPPEN:

Numbers get exported to 1, 2 etc.


Emacs  : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version
3.24.13, cairo version 1.16.0)
 of 2020-03-28
Package: Org mode version 9.3.7 (9.3.7-elpa @
/home/dalanicolai/.my_emacs.d/elpa/org-20200602/)

current state:
==
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-
configure-edit-buffer)
 org-link-shell-confirm-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-html-format-inlinetask-function 'org-html-format-inlinetask-
default-function
 org-odt-format-headline-function 'org-odt-format-headline-default-
function
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-
default
 org-reveal-start-hook '(org-decrypt-entry)
 org-mode-hook '(#[0 "\301\211\207" [imenu-create-index-function org-
imenu-get-tree] 2]
 jupyter-org-interaction-mode
 #[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-show-all append
local] 5]
 #[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-babel-show-
result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes
org-eldoc-load)
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME
CONTENTS)"]
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-journal-mode-hook '(#[0 "\301\302\303\304$\207"
   [org-journal-encrypt-on add-hook org-
journal-encryption-hook nil t]
   5]
 (lambda nil
  (add-hook org-journal-encrypt-on (quote org-
journal-encryption-hook)
   nil t)
  )
 )
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _
CONTENTS)"]
 org-babel-pre-tangle-hook '(save-buffer)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-
header-arg-expand)
 org-babel-load-languages '((python . t) (jupyter . t) (shell . t)
(mathematica . t)
(template . t))
 org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME
CONTENTS WIDTH)"]
 org-src-lang-modes '(("mathematica" . "mma") ("jupyter-Wolfram-
Language" . wolfram-language)
  ("jupyter-bash" . sh) ("jupyter-python" . python)
("arduino" . arduino)
  ("redis" . redis) ("php" . php) ("C" . c) ("C++"
. c++)
  ("asymptote" . asy) ("bash" . sh) ("beamer" .
latex)
  ("calc" . fundamental) ("cpp" . c++) ("ditaa" .
artist)
  ("dot" . fundamental) ("elisp" . emacs-lisp)
("ocaml" . tuareg)
  ("screen" . shell-script) ("shell" . sh)
("sqlite" . sql))
 org-occur-hook '(org-first-headline-recenter)
 org-export-before-processing-hook '(org-babel-jupyter-setup-export)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-
empty-lines
  org-optimize-window-after-visibility-change)
 org-speed-command-hook '(org-speed-command-activate org-babel-speed-
command-activate)
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-
function
 org-babel-tangle-lang-exts '(("mathematica" . "m") ("jupyter-python" .
"py")
  ("python" . "py") ("template" . "tmp")
("emacs-lisp" . "el")
  ("elisp" . "el"))
 org-export-before-parsing-hook '(org-babel-jupyter-strip-ansi-escapes)
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("attachment" :follow org-attach-open-link
:export
org-attach-export-link :complete org-attach-
complete-link)
   ("id" :follow org-id-open)
   ("eww" :follow eww :store org-eww-store-link)

please mention the blog-admin package for blogging with nikola

2020-03-06 Thread dalanicolai
Hi,

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 :)

Best regards,
Daniel Nicolai


mathematica.el in org-plus-contrib outdated (i.e. command MathematicaScript became wolframscript in new version)

2019-12-07 Thread dalanicolai
As stated in the subject of this e-mail, the command MathematicaScript
became wolframscript in the newer versions of mathematica. To make
ob-mathematica.el work again with newer versions of mathematica simply
replace all occurences of MathematicaScript with wolframscript in that file.

An extra comment. Wolfram made it's Wolfram Engine freely available

for developers. And I guess it can be used to, for example, produce
Mathematica Plots (or graphics) in the jupyter notebooks using the Wolfram
Language kernel for jupyter
 (I am not
sure because I have a licensed Mathematica version and I guess my jupyter
is using that kernel to get the graphics). Would be great to have such
functionality working in org-mode (with-babel). Unfortunately I am not a
developer. But someone else might like the idea too.