emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8d @ /Users/dangom/.emacs.d.vanilla/straight/build/org/)]
@ 2022-06-13 15:03 Gomez, Daniel
  2022-06-13 20:45 ` [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8d)] Gomez, Daniel
  0 siblings, 1 reply; 4+ messages in thread
From: Gomez, Daniel @ 2022-06-13 15:03 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi all,

The link syntax [[link]] is parsed as an org-link inside of a source block, as shown in the code below:

#+begin_src emacs-lisp
[[2]]
#+end_src

This if fine in the example above, but consider a language like python. The link syntax is also valid python syntax:

#+begin_src python
x = np.array([[2]])
#+end_src

If I now toggle link display with org-toggle-link-display, then my python code is still valid, but reads as if it'd be wrong (as illustrated here):

#+begin_src python
x = np.array(2)  # the [[]] appear hidden.
#+end_src

How could I tell org-mode to not parse links inside of org src-blocks?

Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.70 Version 10.15.7 (Build 19H1922))
 of 2022-06-10
Package: Org mode version 9.5.4 (9.5.4-ged6f8d)


Regards,

Daniel
The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. 



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

* [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8d)]
  2022-06-13 15:03 [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8d @ /Users/dangom/.emacs.d.vanilla/straight/build/org/)] Gomez, Daniel
@ 2022-06-13 20:45 ` Gomez, Daniel
  2022-06-13 21:16   ` Gomez, Daniel
  0 siblings, 1 reply; 4+ messages in thread
From: Gomez, Daniel @ 2022-06-13 20:45 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1553 bytes --]

Hi all,

The link syntax [[link]] is parsed as an org-link inside of a source block, as shown in the code below:

#+begin_src emacs-lisp
[[2]]
#+end_src

This if fine in the example above, but consider a language like python. The link syntax is also valid python syntax:

#+begin_src python
x = np.array([[2]])
#+end_src

If I now toggle link display with org-toggle-link-display, then my python code is still valid, but reads as if it'd be wrong (as illustrated here):

#+begin_src python
x = np.array(2)  # the [[]] appear hidden.
#+end_src

How could I tell org-mode to not parse links inside of org src-blocks?

Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.70 Version 10.15.7 (Build 19H1922))
 of 2022-06-10
Package: Org mode version 9.5.4 (9.5.4-ged6f8d)


Regards,

Daniel
The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. 

[-- Attachment #2: Type: text/html, Size: 2136 bytes --]

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

* Re: [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8d)]
  2022-06-13 20:45 ` [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8d)] Gomez, Daniel
@ 2022-06-13 21:16   ` Gomez, Daniel
  2022-06-14  1:39     ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Gomez, Daniel @ 2022-06-13 21:16 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1553 bytes --]

Hi all,

The link syntax [[link]] is parsed as an org-link inside of a source block, as shown in the code below:

#+begin_src emacs-lisp
[[2]]
#+end_src

This if fine in the example above, but consider a language like python. The link syntax is also valid python syntax:

#+begin_src python
x = np.array([[2]])
#+end_src

If I now toggle link display with org-toggle-link-display, then my python code is still valid, but reads as if it'd be wrong (as illustrated here):

#+begin_src python
x = np.array(2)  # the [[]] appear hidden.
#+end_src

How could I tell org-mode to not parse links inside of org src-blocks?

Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.70 Version 10.15.7 (Build 19H1922))
 of 2022-06-10
Package: Org mode version 9.5.4 (9.5.4-ged6f8d)


Regards,

Daniel
The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. 

[-- Attachment #2: Type: text/html, Size: 2190 bytes --]

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

* Re: [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8d)]
  2022-06-13 21:16   ` Gomez, Daniel
@ 2022-06-14  1:39     ` Ihor Radchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2022-06-14  1:39 UTC (permalink / raw)
  To: Gomez, Daniel; +Cc: emacs-orgmode@gnu.org

"Gomez, Daniel" <DGOMEZ1@MGH.HARVARD.EDU> writes:

> The link syntax [[link]] is parsed as an org-link inside of a source block, as shown in the code below:
>
> #+begin_src emacs-lisp
> [[2]]
> #+end_src

WIP. See https://orgmode.org/list/87ee7c9quk.fsf@localhost

Best,
Ihor


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

end of thread, other threads:[~2022-06-14  5:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 15:03 [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8d @ /Users/dangom/.emacs.d.vanilla/straight/build/org/)] Gomez, Daniel
2022-06-13 20:45 ` [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8d)] Gomez, Daniel
2022-06-13 21:16   ` Gomez, Daniel
2022-06-14  1:39     ` Ihor Radchenko

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