Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable org-msg for org-submit-bug-report? #181

Open
LemonBreezes opened this issue Feb 23, 2024 · 1 comment
Open

How to disable org-msg for org-submit-bug-report? #181

LemonBreezes opened this issue Feb 23, 2024 · 1 comment

Comments

@LemonBreezes
Copy link

Hi. I want to copy-paste elisp into my email in plain text without any formatting but no matter what kind of code block I use, the block does not get exported plainly. As an example:
image
How can I toggle org-msg-mode in a message buffer and/or export an elisp block literally without any formatting?

@morganwillcock
Copy link

I don't think it is possible to toggle the message buffer in and out of org-msg-mode, but here are three ways you could send the code without the default border on a text part:

  1. Automatically turn OrgMsg off just for this function and then turn it back on again.
(advice-add 'org-submit-bug-report :around #'org-msg-inhibited)
  1. Remove the default border that Org uses for source block exports by adding a filter function to org-export-filter-src-block-functions which replaces or deletes the border characters.

  2. Write the e-mail with separate literal export blocks for each exporter, although this would require that the code is already encoded as HTML for the HTML block.

#+begin_export html
<pre>(code-goes-here)</pre>
#+end_export
#+begin_export ascii
(code-goes-here)
#+end_export

Option 1 would probably be best for submitting a bug report as the Org maintainers and issue tracker are probably only interested in the text part of the message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants