emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG][minor] org-mouse
@ 2025-01-08  9:22 Phil Estival
  2025-01-11 15:27 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Phil Estival @ 2025-01-08  9:22 UTC (permalink / raw)
  To: Org Mode List

Org-mouse makes a star followed by a blank space
clickable anywhere, also in source blocks and this triggers the
evaluation of the block or the opening of *Org-Babel Error Output*
or *Org Babel Results*.

emacs -q
org mode v 9.8-pre

file:/tmp/test-org-mouse.org
(require 'org-mouse)
(require 'warnings)
#+begin_src bash
echo "Where is Charlie?" #* <-clicking the star...
#+end_src

...will asks for the evaluation of the block or reopen
the result buffer.

Additionally, I got puzzled by the end of the following sequence.

(org-babel-do-load-languages 'org-babel-load-languages '((shell . t)))
and click the star again
evaluate this bash block on your system ?
this time evaluates, and opens *Org Babel Results* with the
previous results.

If it's clicked once more, it opens again *Org Babel Results* without
running the source (changing the source block, killing the result
buffer and clicking again confirms that). At this point, I'm confused
because this result buffer is also reloaded after a fresh session of
emacs -q ... but I don't know where to look for its source
(rg --hidden Charlie) in /tmp or ~/.emacs or org-persist-directory?
In this case please tell me, where is Charlie?

Phil



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG][minor] org-mouse
  2025-01-08  9:22 [BUG][minor] org-mouse Phil Estival
@ 2025-01-11 15:27 ` Ihor Radchenko
  2025-01-15  9:51   ` Phil Estival
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2025-01-11 15:27 UTC (permalink / raw)
  To: Phil Estival; +Cc: Org Mode List

Phil Estival <pe@7d.nz> writes:

> Org-mouse makes a star followed by a blank space
> clickable anywhere, also in source blocks and this triggers the
> evaluation of the block or the opening of *Org-Babel Error Output*
> or *Org Babel Results*.
>
> emacs -q
> org mode v 9.8-pre
>
> file:/tmp/test-org-mouse.org
> (require 'org-mouse)
> (require 'warnings)
> #+begin_src bash
> echo "Where is Charlie?" #* <-clicking the star...
> #+end_src
>
> ...will asks for the evaluation of the block or reopen
> the result buffer.

I cannot reproduce.
May you please provide even more detailed steps?

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG][minor] org-mouse
  2025-01-11 15:27 ` Ihor Radchenko
@ 2025-01-15  9:51   ` Phil Estival
  0 siblings, 0 replies; 3+ messages in thread
From: Phil Estival @ 2025-01-15  9:51 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Org Mode List



* [2025-01-11 16:27] Ihor Radchenko:
> Phil Estival <pe@7d.nz> writes:
> 
>> Org-mouse makes a star followed by a blank space
>> clickable anywhere, also in source blocks and this triggers the
>> evaluation of the block or the opening of *Org-Babel Error Output*
>> or *Org Babel Results*.
>>
>> emacs -q
>> org mode v 9.8-pre
>>
>> file:/tmp/test-org-mouse.org
>> (require 'org-mouse)
>> (require 'warnings)
>> #+begin_src bash
>> echo "Where is Charlie?" #* <-clicking the star...
>> #+end_src
>>
>> ...will asks for the evaluation of the block or reopen
>> the result buffer.
> 
> I cannot reproduce.
> May you please provide even more detailed steps?

Sure. Here it is, simplified.
It also needs a revert of the buffer after org-mouse
is loaded.

$ emacs-30.0.50  -q

I open /tmp/test-org-mouse.org and paste the following :
---8<---
(org-version nil t t)
(require 'org-mouse)
(revert-buffer)

#+begin_src elisp
   (message "Where is Charlie?") ; * <-clicking the star...
#+end_src
---8<---

I evaluate the three first elisp expressions.
At this point the star is clickable
and it will open *Org Babel Results*... from a previous session.

Phil


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-15  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-08  9:22 [BUG][minor] org-mouse Phil Estival
2025-01-11 15:27 ` Ihor Radchenko
2025-01-15  9:51   ` Phil Estival

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).