emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: pva-outdoor@yandex.ru
To: emacs-orgmode@gnu.org
Subject: [BUG] ox-texinfo can't export example blocks [9.6.9 (release_9.6.9 @ /usr/local/share/emacs/30.0.50/lisp/org/)]
Date: Wed, 14 Feb 2024 20:17:33 +0500	[thread overview]
Message-ID: <87jzn7oz1u.fsf@yandex.ru> (raw)



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

Hello, Team!

It seems that in ox-texinfo.el the `string-match-p' is used instead of
`string-equal' (here is my patch):

--- /usr/local/share/emacs/30.0.50/lisp/org/ox-texinfo.el.gz
+++ #<buffer ox-texinfo.el.gz>
@@ -1680,7 +1680,7 @@
   "Transcode a SRC-BLOCK element from Org to Texinfo.
 CONTENTS holds the contents of the item.  INFO is a plist holding
 contextual information."
-  (let* ((lisp (string-match-p "lisp"
+  (let* ((lisp (string-equal "lisp"
 			       (org-element-property :language src-block)))
 	 (code (org-texinfo--sanitize-content
 		(org-export-format-code-default src-block info)))

Without this fix I can't export my `.org' files to `.texi' format as the
:language property is nil for #+BEGIN_EXAMPLE ... #+END_EXAMPLE blocks.


Emacs  : GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0)
 of 2023-10-05
Package: Org mode version 9.6.9 (release_9.6.9 @ /usr/local/share/emacs/30.0.50/lisp/org/)
-- 
С уважением,
Андрей Петров.


             reply	other threads:[~2024-02-14 15:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-14 15:17 pva-outdoor [this message]
2024-02-18 15:38 ` [BUG] ox-texinfo can't export example blocks [9.6.9 (release_9.6.9 @ /usr/local/share/emacs/30.0.50/lisp/org/)] Ihor Radchenko
     [not found]   ` <877cj0swz1.fsf@yandex.ru>
2024-02-24 10:05     ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87jzn7oz1u.fsf@yandex.ru \
    --to=pva-outdoor@yandex.ru \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).