Re: Org and Hyperbole

2022-06-22 Thread Bill Burdick
Note that recalc relies on lexical binding so if you use it, whatever file it's in needs ;; -*- lexical-binding: t -*- at the top. -- Bill

Re: Org and Hyperbole

2022-06-22 Thread Bill Burdick
In case anyone's interested in writing hyperbole commands that can act on regions but be located in other windows... To write a hyperbole command that restores the previous window and selection, just call bill/hyp-load-state at the start of your code and call bill/hyp-restore at the end (see bill/

Re: [BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]

2022-06-22 Thread Ihor Radchenko
Cristi Constantin writes: > I'm just editing my normal org log files and I started seeing the errors > above after I upgraded to latest org-mode. > I think I didn't upgrade for a month, so this bug is pretty new. > It doesn't seem to do anything weird, but I see this traceback a few > times a d

Re: Org and Hyperbole

2022-06-22 Thread linux_hpc_akr
I use both Org and Hyperbole. I'm a sysadmin so I do a lot with files and paths and URLs. A lot of which happens not in org files. Being able to treat the files/paths/URLs as implicit buttons anywhere is pretty valuable to me. I just hit hkey-either on a filename/path and emacs opens it. Or I

[BUG] random org-mode warning [9.5.4 (9.5.4-g7c61a3 @ /home/cro/.emacs.default/straight/build/org/)]

2022-06-22 Thread Cristi Constantin
Hi, I'm just editing my normal org log files and I started seeing the errors above after I upgraded to latest org-mode. I think I didn't upgrade for a month, so this bug is pretty new. It doesn't seem to do anything weird, but I see this traceback a few times a day. This is the full error, s

Re: Org and Hyperbole

2022-06-22 Thread indieterminacy
On 23-06-2022 06:04, David Masterson wrote: Samuel Wales writes: i am interested in whether hyperbole can inspire org. or maybe spin off stuff that is useful for org. Hyperbole is loaded and activated in your .emacs file. Therefore, it's features are available in any file you work on (incl

Re: Org and Hyperbole

2022-06-22 Thread David Masterson
Samuel Wales writes: > i am interested in whether hyperbole can inspire org. or maybe spin > off stuff that is useful for org. Hyperbole is loaded and activated in your .emacs file. Therefore, it's features are available in any file you work on (including Org files). Many of the features may b

Re: Org and Hyperbole

2022-06-22 Thread David Masterson
Bill Burdick writes: > Sure: > > (defun bill/restore-calc-point (result) > (when bill/calc-point > (goto-char bill/calc-point) > (setq bill/calc-point nil)) > result) > > (advice-add 'hmouse-function :filter-return 'bill/restore-calc-point) > > If my recalc function matches, it sets b

Re: Org and Hyperbole

2022-06-22 Thread Samuel Wales
i am interested in whether hyperbole can inspire org. or maybe spin off stuff that is useful for org. i find org-link-minor-mode to be really useful. limited, but useful. does tses too. i use it in non-org files to link to other places in the same file, mostly. also i insert the r

Re: Org and Hyperbole

2022-06-22 Thread Bill Burdick
I just wrote recalc today as a demo so people can extrapolate what they might do with Hyperbole (calc was handy in my head since I wrote it for Ober, the Java version of the Oberon environment). WIth buttons that restore the point to where it was when you clicked, you can make them operate on the

Re: Org and Hyperbole

2022-06-22 Thread David Masterson
Juan Manuel Macías writes: > Hi David, > > David Masterson writes: > >> I haven't touched Hyperbole in ...decades...? Even then, it was >> complicated and full-featured (but I still keep it in my .emacs file). >> My discussions with Bob Weiner were interesting at the time and I really >> wanted

Re: Org and Hyperbole

2022-06-22 Thread Bill Burdick
Sure: (defun bill/restore-calc-point (result) (when bill/calc-point (goto-char bill/calc-point) (setq bill/calc-point nil)) result) (advice-add 'hmouse-function :filter-return 'bill/restore-calc-point) If my recalc function matches, it sets bill/restore-calc-point to a marker like th

Re: Org and Hyperbole

2022-06-22 Thread Bill Burdick
No idea. -- Bill On Wed, Jun 22, 2022 at 10:23 PM David Masterson wrote: > Bill Burdick writes: > > > Here's a hyperbole-org integration that lets you use org-mode tables > > outside of org-mode files. Shift-middle-click a "recalc" button and it > > will recalculate the table right under it

Re: Org and Hyperbole

2022-06-22 Thread David Masterson
Bill Burdick writes: > Here's a hyperbole-org integration that lets you use org-mode tables > outside of org-mode files. Shift-middle-click a "recalc" button and it > will recalculate the table right under it (this idea is from an old > version of the Oberon environment I wrote in Java, by the wa

Re: Org and Hyperbole

2022-06-22 Thread David Masterson
Bill Burdick writes: > Anywhere you use a link or button, you can probably use an emacs > command instead. I think maybe the value of links and buttons is that > they're explicit. It's a reminder in the text and you don't have to > learn it. > > One thing I noticed in my little "recalc" exercise

Re: Org and Hyperbole

2022-06-22 Thread Bill Burdick
Anywhere you use a link or button, you can probably use an emacs command instead. I think maybe the value of links and buttons is that they're explicit. It's a reminder in the text and you don't have to learn it. One thing I noticed in my little "recalc" exercise is that Hyperbole really really wa

Re: [PATCH] New remote resource download policy

2022-06-22 Thread Max Nikulin
On 22/06/2022 17:01, Timothy wrote: +(defun org–confirm-resource-safe (uri) + “Ask the user if URI should be considered safe, returning non-nil if so.” +(unless noninteractive + (let ((buf (get-buffer-create “*Org Remote Resource*”))) I see your intention to add something fancy to t

Re: Proposal: 'executable' org-capture-templaes

2022-06-22 Thread Max Nikulin
On 22/06/2022 19:13, Arthur Miller wrote: Max Nikulin writes: Menu should and application should be separated in my eyes. Menu is just a graphical/audio? presentation of selectable choice to the user. As such it should display choices, let user pick a choice, and return to the application the pi

Re: Org and Hyperbole

2022-06-22 Thread Russell Adams
On Mon, Jun 20, 2022 at 05:26:30PM +0200, Russell Adams wrote: > Is there some keen feature I'm missing? What's the use case for > Hyperbole if you're already an Org-mode user? Watching the replies, I've noticed it all seems to come back to hyperlinking / hot button support across Emacs modes. Alm

Re: Org and Hyperbole

2022-06-22 Thread Juan Manuel Macías
Hi Jonathan, sorry for my late response, indieterminacy writes: > I recommend Hyperbole, though I must confess Ive been using Orgmode a > lot less since Ive been focusing on the format GemText. > > I should recommend the use of the function defil, for people who like > regexes and want to opera

Re: Org and Hyperbole

2022-06-22 Thread Bill Burdick
Here's a hyperbole-org integration that lets you use org-mode tables outside of org-mode files. Shift-middle-click a "recalc" button and it will recalculate the table right under it (this idea is from an old version of the Oberon environment I wrote in Java, by the way). Here's the code: (defun b

Re: [PATCH] Re: [BUG] Adding note to heading without newline at the end

2022-06-22 Thread Tor Kringeland
Ihor Radchenko writes: > Confirmed. > > Samuel, do you want to try fixing this? > It should be fairly easy to debug. Nice. But these are distinct bugs, it seems like. The one you sent a patch for earlier fixes the former bug (which is also present in Org 9.5). While my original problem is onl

Re: Proposal: 'executable' org-capture-templaes

2022-06-22 Thread Arthur Miller
Max Nikulin writes: > On 21/06/2022 11:07, Ihor Radchenko wrote: >> Max Nikulin writes: >> The other question is altering the org-capture code. >> I think that it is too early to discuss org-capture part just yet. >> Lets first finalize the generic library itself and discuss the >> appropriate ad

Re: org-table in comment environments

2022-06-22 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >>> I recommend to hide such table inside drawer and set >>> org-export-with-drawers appropriately. >> >> Thanks, any type of drawer in particular? > Feel free to consult the docstring of org-export-with-drawers That seems to work #+OP

Re: org-table in comment environments

2022-06-22 Thread Ihor Radchenko
Uwe Brauer writes: >> I recommend to hide such table inside drawer and set >> org-export-with-drawers appropriately. > > Thanks, any type of drawer in particular? Feel free to consult the docstring of org-export-with-drawers Best, Ihor

Re: Org and Hyperbole

2022-06-22 Thread Juan Manuel Macías
Hi David, David Masterson writes: > I haven't touched Hyperbole in ...decades...? Even then, it was > complicated and full-featured (but I still keep it in my .emacs file). > My discussions with Bob Weiner were interesting at the time and I really > wanted to make use of it. > > As you've disco

Re: [PATCH] New remote resource download policy

2022-06-22 Thread Timothy
Hi Max, >> — a/lisp/org-attach.el >> +++ b/lisp/org-attach.el >> @@ -525,7 +525,11 @@ (defun org-attach-attach (file &optional visit-dir >> method) >> [snip] >> +(if (or (not noninteractive) (org–should-fetch-remote-resource-p >> file)) > > I am confused by (not noninteractive). Does it

Re: Implementing ox-beamer property support in ox-latex.

2022-06-22 Thread Fraga, Eric
On Tuesday, 21 Jun 2022 at 14:14, bob--- via "General discussions about Org-mode." wrote: > The problem that I encountered was that you can't easily "close" environments. > The example below shows what I mean: You would probably find things easier using special blocks, e.g. --8<---cu

Re: [PATCH] New remote resource download policy

2022-06-22 Thread Timothy
Hi Robert, > Timothy> +(defcustom org-download-remote-resources ’prompt > > ’prompted when downloading unsafe resources’ > > maybe? > > Does this need a ’prompt-always option? I guess thatʼs what you get > with the default value of `org-safe-remote-resources’, but maybe it > makes sense to be

Re: Beamer export: Executing LaTeX between two frames

2022-06-22 Thread Fraga, Eric
On Tuesday, 21 Jun 2022 at 10:01, M. ‘quintus’ Gülker wrote: > I am working on a presentation for a conference (using org-mode and its > beamer export) and want to exchange the entire background for a specific > frame with an image. This is possible with Beamer, see This is a bit hacky but see att

Re: org-table in comment environments

2022-06-22 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >> I have a org-table in a comment environment, since I don't want to >> export it. >> >> However you can I edit the table using org-table commands, orgtbl-mode >> is ignored, so what shall I do? >> >> That seems as a stupid question, but