navigate to next radio target?

2022-10-17 Thread kevinbanjo
Hi everyone:

Is there a function to move the cursor to the next or previous radio target?

I'd like to bind that to a key.

I'm talking about moving to the link to the target, not the target itself.

TIA,
-Kevin


html exporting svgs created by mermaid codeblocks

2022-08-10 Thread kevinbanjo
Hi everyone.

I recently have been trying to build a website that has some embedded
flowcharts created by mermaid and I'd really like them to be svg but
orgmode only embeds the name of the image file and not the actual inline
image in the exported html.

How can I fix this?

TIA,
-Kevin


discovering export (and other) keywords?

2022-07-18 Thread kevinbanjo
this page:

https://orgmode.org/manual/Macro-Replacement.html#index-macro-replacement_002c-during-export

says:

Org also recognizes macro references in keywords, such as ‘CAPTION’, ‘TITLE’,
‘AUTHOR’, ‘DATE’, *and for some back-end specific export options.*

How do I discover what those back end specific options are?

Also, for various elements (e.g. begin_src emacs-lisp, begin_export html,
etc...) how do I discover what the acceptable keywords are, preferably
without only having to go thru the manual pages?

TIA,
-Kevin


Re: substitutions in html export?

2022-07-17 Thread kevinbanjo
On Sun, Jul 17, 2022 at 11:54 AM Berry, Charles 
wrote:

> Kevin,
>
> > On Jul 17, 2022, at 10:18 AM, kevinbanjo  wrote:
> >
> >
> >
> > On Sun, Jul 17, 2022 at 7:24 AM Ihor Radchenko 
> wrote:
> > See inline calls in
> https://orgmode.org/manual/Evaluating-Code-Blocks.html#Evaluating-Code-Blocks
> > 
>


> The export block provides text that is to be used "as is" by the html
> backend. So, "call_numbers()" is treated as html.
>
> You need to construct the export block programmatically. Maybe something
> like
>
> #+begin_src emacs-lisp :results html :exports results :var num=numbers()
>(format "the result is %d" num )
> #+end_src
>
>
The problem with that is when I export I get   both above and below
the result (even though I added :results output raw) and I need it inline
plus it's changing my angle brackets to  and  (I'm trying to generate
php code).

Any idea how to fix that?

-Kevin


Re: substitutions in html export?

2022-07-17 Thread kevinbanjo
When I look at the doc string for (org-macro-replace-all) it says:


*Optional argument KEYWORDS, when non-nil is a list of keywords,*
*as strings, where macro expansion is allowed.*

I tried passing it '("export-block") but it didn't work, but it seems like
something like that should be close.

This whole area of org documentation seems pretty obtuse, with few examples.


Re: substitutions in html export?

2022-07-17 Thread kevinbanjo
On Sun, Jul 17, 2022 at 11:54 AM Berry, Charles 
wrote:

> Kevin,
>
> > On Jul 17, 2022, at 10:18 AM, kevinbanjo  wrote:
> >
> >
> >
> > On Sun, Jul 17, 2022 at 7:24 AM Ihor Radchenko 
> wrote:
> > See inline calls in
> https://orgmode.org/manual/Evaluating-Code-Blocks.html#Evaluating-Code-Blocks
> >
> > I did this and it didn't work (but the one outside the export block did):
> >
> > #+title:test
> >
> > #+name: numbers
> > #+begin_src emacs-lisp :exports none
> > 40
> > #+end_src
> >
> > #+begin_export html
> >
> > the result is call_numbers()
> >
> > #+end_export
>
>
> The export block provides text that is to be used "as is" by the html
> backend. So, "call_numbers()" is treated as html.
>
> You need to construct the export block programmatically. Maybe something
> like
>
> #+begin_src emacs-lisp :results html :exports results :var num=numbers()
>(format "the result is %d" num )
> #+end_src
>
>
> HTH,
>
> Chuck
>
>
>
Thanks for that Chuck.   It would seem a lot cleaner if there was a hook or
something one could run that would just expand macros in export blocks
before exporting them.

-Kevin


Re: substitutions in html export?

2022-07-17 Thread kevinbanjo
On Sun, Jul 17, 2022 at 7:24 AM Ihor Radchenko  wrote:

> See inline calls in
> https://orgmode.org/manual/Evaluating-Code-Blocks.html#Evaluating-Code-Blocks
>

I did this and it didn't work (but the one outside the export block did):

#+title:test

#+name: numbers
#+begin_src emacs-lisp :exports none
40
#+end_src

#+begin_export html

the result is call_numbers()

#+end_export

the result outside an export block is call_numbers()


substitutions in html export?

2022-07-17 Thread kevinbanjo
Hi everyone:

Is there any way to make something like this actually work?

#+title:test
#+macro: num 50

#+name: numbers
#+begin_src emacs-lisp no-export
40
#+end_src

#+begin_export html

the result is {{{num}}}

another result is <>
#+end_export


[O] creating a link to an html file under msys2 (windows path issue)

2019-07-24 Thread kevinbanjo
Hi everyone.

I'm trying to create a link to my emacs org-mode manual on my desktop at
c:\Users\Kevin\Desktop\org.html in one of my org-mode files and I can't for
the life of me figure out what the path is supposed to be.

Under msys2 it should be something like:

/c/users/kevin/desktop/org.html

I'm using the emacs that is installed with msys2 (and often I see it
putting a "c:" in front of the path but that doesn't seem to work here).

I've tried it with a leading c:, with single backslashes between the
components, with double backslashes, etc...

Anyone have a clue?

TIA,
-Kevin


[O] problems with attach after moving files

2018-03-27 Thread kevinbanjo
hi, I moved my org and data/ files to another machine and now when I go to
open an attachment I can't do it with org-attach open. I can however hit
enter on the heading like a link and it opens dired which then allows me to
select it. Any idea why this no longer works?


[O] attachments in html export

2017-09-06 Thread kevinbanjo
is there an easy way to auto-generate a link to the attachments when
exporting org html?


[O] directory from which attachments are taken

2017-09-05 Thread kevinbanjo
I'm downloading files into my "~/Downloads" directory and attaching them to
an org file in "~/Private/org" and every time it tries to look in the
latter for the attachment and I have to navigate back to the former.  Is
there a setting where I can direct it where to initially look for the files
to attach or a setting where it will just keep the last place I attached a
file and just use that as the initial value?


[O] disable execute script/program query

2017-09-04 Thread kevinbanjo
Hi:

Is there any way to disable the yes/no query every time you click on a link
that executes a shell script or elisp command?   I haven't been able to
locate a custom variable or anything.


[O] links to id:

2017-08-31 Thread kevinbanjo
I've moved my .org-id-locations file into cloud storage (similar to a
dropbox folder).   I set the org-id-locations-file to point to that file.
I set up a link to the id.  It works fine for that one session of emacs.
After I quit and restart, then I click on the link it says it can't be
found and asks me if I want to create a new header.  It won't find the link
again until I run the function

(org-id-update-id-locations)

Then its all good again for the session.

Any idea why?

Also after it jumps to the link its REAL slow.   It just hangs for maybe 30
seconds.

Help!


[O] recreating .org-id-locations file

2017-08-31 Thread kevinbanjo
is there a utility to do this if it gets messed up?


[O] header spacing

2017-08-30 Thread kevinbanjo
when I do an alt-enter to create a heading below at the same level it puts
one space before what I type for the heading name.

When I want to demote that heading with alt-right it puts two which I then
have to go back and delete.

How do I stop the two spaces and only get one when demoting?

TIA,
-Kevin


[O] keyboard scrolling with inline images

2017-08-30 Thread kevinbanjo
Hi, I have an orgfile with some inlined images.   They aren't really big.
I mean they are only about 1/2 or less the size of my emacs frame, but I
can't seem to scroll past them with the keyboard.  I start with the cursor
on the top of the file and I hit down arrow and it goes down to the image,
seems to get just past it then snaps right back up to the top of it.   If I
cursor right it makes it past it.   I'm using spacemacs if that helps.

My emacs version: GNU Emacs 25.2.2 (x86_64-unknown-linux-gnu, GTK+ Version
3.18.9) of 2017-08-07

my org version:  Org mode version 9.0.7 (9.0.7-elpaplus @
/home/kevin/.emacs.d/elpa/org-plus-contrib-20170515/)

TIA,

-Kevin


[O] org-refile completion and helm

2017-08-28 Thread kevinbanjo
Hi, I was thinking this is the solution to my problem of not seeing all the
subcategories when I go to refile a subtree to another org file in another
folder:

https://emacs.stackexchange.com/questions/14535/how-can-i-use-helm-with-org-refile

but I'm not finding a variable: org-completion-use-ido
anywhere in my system.

Has it been obsoleted?

Can it be safely ignored?

My emacs version: GNU Emacs 25.2.2 (x86_64-unknown-linux-gnu, GTK+ Version
3.18.9) of 2017-08-07

my org version:  Org mode version 9.0.7 (9.0.7-elpaplus @
/home/kevin/.emacs.d/elpa/org-plus-contrib-20170515/)

TIA,

-Kevin


[O] can't export default koma letter

2016-08-29 Thread kevinbanjo
Hi,
I installed the get-stable version in ~/0work/org-mode and did the make on
it (see my previous email).

I then added

(push "~/0work/org-mode/lisp" load-path)
(push "~/0work/org-mode/etc" load-path)
(push "~/0work/org-mode/contrib" load-path)

(require 'org)

(eval-after-load 'ox '(require 'ox-koma-letter))

(eval-after-load 'ox-koma-letter
  '(progn
 (add-to-list 'org-latex-classes
  '("my-letter"
"\\documentclass\{scrlttr2\}
 \\usepackage[english]{babel}
 \\setkomavar{frombank}{(1234)\\,567\\,890}
 \[DEFAULT-PACKAGES]
 \[PACKAGES]
 \[EXTRA]"))

 (setq org-koma-letter-default-class "my-letter")))


to my .emacs.

Now when I load up the attached koma example letter and try and export it
(C-c C-e k o) I get the following stack trace:

Debugger entered--Lisp error: (wrong-type-argument listp #("Romeo" 0 5
(:parent (#1
  org-element-set-contents(#("Romeo" 0 5 (:parent (#0
  apply(org-element-set-contents #("Romeo" 0 5 (:parent (#0))) nil)
  #[(s) " \306\307\310 # \311\312 \211 :\204 \313\202\" @9\203! AA\202\"
)\"\210\314\315\n \211 :\2043\313\202@ @9\203? AA\202@ )#\210 \316\211\n
;\203V\317\320\f #\202\\\321 A@\f\"* \211 ;\203n\322 \313\f
$\202z A\323 A@\f
#\240\210 +\210\nA A@\240\210\n @\240*\207" [s new old element property
value replace-regexp-in-string "\n" " " mapc #[(blob) " \305 \211 ;\203
\306\f\307 \n$\202 \fA\310\fA@ \n#\240\210\f+\207" [blob old value property
element :parent org-add-props nil plist-put] 6] nil apply
org-element-set-contents :parent get-text-property 0 plist-get
org-add-props plist-put] 6](#("Romeo" 0 5 (:parent (#0
  #[(--data) " \211 :\204 ;\205 \306\202 @9\205 @) ?\206\337 \203, \307
\310\">\206\337 \n\2047\311\f \"\202\337 \n\312=\203\\\311\f \211
:\204J\313\202W @9\203V AA\202W )\"\202\337 \n
>\203\202 !\211 \203\201 \203z\314\315 \"\210\202\201 B ) \316=\203\312
;\204\312\n \236A\313 \211 \203\311 @ \f ;\203\266\317\320 #\202\275\307 A@
\"*!\210 A\211 \204\234* \203\202 \316=\203\202 \n >\203\202 \313 \211
\203\201 @\211 @ A ;\203 \317\320 #\202 \307 A@ \"* ! \" !\203w \"
#\235\203_ \" $\235\203P \321 !!\313 %\211 \203L @ %\f %A!\210\f %@!\210
A\211 \2042 *\202w \f !A!\210\f !@!\210\202w \" $\235\203r \311\f\321
!!\"\210\202w \f !!\210* A\211 \204\350*\n &>\206\337 \211 :\204\224
\313\202\241 @9\203\240 AA\202\241 )?\206\337 \322=\203\265 \n '>?\206\337
\323=\203\303 \n (>\206\337 \311\f \211 :\204\320 \313\202\335
@9\203\334 AA\202\335
)\")\207" [--data element --type info --walk-tree types plain-text
plist-get :ignore-list mapc org-data nil throw --map-first-match objects
get-text-property 0 reverse greater-elements elements fun result
first-match --acc --category org-element-secondary-value-alist p
--dolist-tail-- property with-affiliated org-element-all-elements
org-element--parsed-properties-alist kwd-pair value kwd
org-element-dual-keywords org-element-multiple-keywords line no-recursion
org-element-greater-elements org-element-all-objects] 6](#("Romeo" 0 5
(:parent (#0
  mapc(#[(--data) " \211 :\204 ;\205 \306\202 @9\205 @) ?\206\337 \203,
\307 \310\">\206\337 \n\2047\311\f \"\202\337 \n\312=\203\\\311\f \211
:\204J\313\202W @9\203V AA\202W )\"\202\337 \n
>\203\202 !\211 \203\201 \203z\314\315 \"\210\202\201 B ) \316=\203\312
;\204\312\n \236A\313 \211 \203\311 @ \f ;\203\266\317\320 #\202\275\307 A@
\"*!\210 A\211 \204\234* \203\202 \316=\203\202 \n >\203\202 \313 \211
\203\201 @\211 @ A ;\203 \317\320 #\202 \307 A@ \"* ! \" !\203w \"
#\235\203_ \" $\235\203P \321 !!\313 %\211 \203L @ %\f %A!\210\f %@!\210
A\211 \2042 *\202w \f !A!\210\f !@!\210\202w \" $\235\203r \311\f\321
!!\"\210\202w \f !!\210* A\211 \204\350*\n &>\206\337 \211 :\204\224
\313\202\241 @9\203\240 AA\202\241 )?\206\337 \322=\203\265 \n '>?\206\337
\323=\203\303 \n (>\206\337 \311\f \211 :\204\320 \313\202\335
@9\203\334 AA\202\335
)\")\207" [--data element --type info --walk-tree types plain-text
plist-get :ignore-list mapc org-data nil throw --map-first-match objects
get-text-property 0 reverse greater-elements elements fun result
first-match --acc --category org-element-secondary-value-alist p
--dolist-tail-- property with-affiliated org-element-all-elements
org-element--parsed-properties-alist kwd-pair value kwd
org-element-dual-keywords org-element-multiple-keywords line no-recursion
org-element-greater-elements org-element-all-objects] 6] (#("Romeo" 0 5
(:parent #0
  #[(--data) " \211 :\204 ;\205 \306\202 @9\205 @) ?\206\337 \203, \307
\310\">\206\337 \n\2047\311\f \"\202\337 \n\312=\203\\\311\f \211
:\204J\313\202W @9\203V AA\202W )\"\202\337 \n
>\203\202 !\211 \203\201 \203z\314\315 \"\210\202\201 B ) \316=\203\312
;\204\312\n \236A\313 \211 \203\311 @ \f ;\203\266\317\320 #\202\275\307 A@
\"*!\210 A\211 \204\234* \203\202 \316=\203\202 \n >\203\202 \313 \211
\203\201 @\211 @ A ;\203 \317\320 #\202 \307 A@ \"* ! \" !\203w \"
#\235\203_ \" $\235\203P \321 !!\313 %\211 \203L @ %\f %A!\210\f %@!\210
A\211 

[O] Bug: broken agenda view? [8.0.2 (8.0.2-dist @ /usr/share/emacs/site-lisp/org-mode/)]

2013-06-20 Thread kevinbanjo
when given this file:


* top level  :@home:

** TODO next level  :@town:

* more top  :@work:

and doing C-cat I get this:

Global list of TODO items of type: ALL
Available with `N r': (0)[ALL]

Isn't that wrong?  It shows NO todo items.


Emacs  : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.6.3)
 of 2013-05-25 on orion
Package: Org-mode version 8.0.2 (8.0.2-dist @
/usr/share/emacs/site-lisp/org-mode/)

current state:
==
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-mode-hook '(#[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 #[nil \300\301\302\303\304$\207
   [org-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-metadown-hook '(org-babel-pop-to-session-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-confirm-shell-link-function 'yes-or-no-p
 )


-- 
-Kevin

The world belongs to those who cross many bridges in their imagination,
   before others see even a single bridge. - inspirational Chinese
proverb


[O] problem with agenda view?

2013-06-19 Thread kevinbanjo
i create this little org file:https://pastebin.sabayon.org/pastie/12827

and I try and do an agenda view showing todos, or showing one of the tags,
and all I get is this:

Global list of TODO items of type: ALL
Available with `N r': (0)[ALL]

What's wrong?
-- 
-Kevin

The world belongs to those who cross many bridges in their imagination,
   before others see even a single bridge. - inspirational Chinese
proverb