From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reuben Thomas Subject: Bug: Confusing example in "Advanced configuration" [9.0.10 (9.0.10-5-g1654a5-elpa @ /home/rrt/.emacs.d/elpa/org-20170904/)] Date: Thu, 14 Sep 2017 15:19:48 +0100 Message-ID: <878thhweez.fsf@sc3d.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsUzi-0000is-JW for emacs-orgmode@gnu.org; Thu, 14 Sep 2017 10:19:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsUzh-0003C9-Dm for emacs-orgmode@gnu.org; Thu, 14 Sep 2017 10:19:54 -0400 Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]:55891) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dsUzh-0003Ah-5N for emacs-orgmode@gnu.org; Thu, 14 Sep 2017 10:19:53 -0400 Received: by mail-wr0-x236.google.com with SMTP id l39so461737wrl.12 for ; Thu, 14 Sep 2017 07:19:51 -0700 (PDT) Received: from skwd ([2a02:c7d:51cb:c700:41ea:a973:5cb1:6687]) by smtp.gmail.com with ESMTPSA id z51sm18882163wrz.80.2017.09.14.07.19.49 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Sep 2017 07:19:49 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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 http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ The page http://orgmode.org/manual/Advanced-configuration.html has the foll= owing example: Here is an example filter that replaces non-breaking spaces ~ in the Org bu= ffer with _ for the LaTeX back-end. (defun my-latex-filter-nobreaks (text backend info) "Ensure \"_\" are properly handled in LaTeX export." (when (org-export-derived-backend-p backend 'latex) (replace-regexp-in-string "_" "~" text))) =20=20=20=20=20 (add-to-list 'org-export-filter-plain-text-functions 'my-latex-filter-nobreaks) This is confusing in several ways. First, the replacement is made the other way around (that is, _ is replaced by ~). Secondly, =E2=80=9C_=E2=80= =9D does not denote a non-breaking space in org-mode, as far as I can see. Does the text mean =E2=80=9CLaTeX non-breaking spaces=E2=80=9D? Finally, underscore = has a particular meaning in Org, namely, subscript. Is this an example that used to make sense but doesn=E2=80=99t any longer? Emacs : GNU Emacs 25.2.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-12 Package: Org mode version 9.0.10 (9.0.10-5-g1654a5-elpa @ /home/rrt/.emacs.= d/elpa/org-20170904/) --=20 https://rrt.sc3d.org/