From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: parser: verbatim or code? Date: Fri, 23 Jan 2015 20:20:46 +0100 Message-ID: <86ppa5e229.fsf@example.com> References: <87iosg1oge.wl@dns1.atmark-techno.com> <87mwhsfo9e.fsf@gmail.com> <87ob27tp8p.wl@dns1.atmark-techno.com> <87eh33s9ag.fsf@gmail.com> <87a9drs7gj.fsf@gmail.com> <87lhwq44wu.fsf@bzg.ath.cx> <86y4otn341.fsf@example.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org --=-=-= Content-Type: text/plain Hello, Sebastien Vauban wrote: > Bastien wrote: >> Hi Yasushi, Michael and Nicolas, >> >> Michael Brand writes: >>> The syntax for inline code snippets seems easier to read by human >>> and to parse with "~" than with "=" because inline code snippets use >>> "~" less often than "=". I avoid "~/" by using "$HOME/" in my notes >>> about shell and shell scripts. Some examples: >> >> I've now fix those inconsistencies, both in the manual and in the >> code. I followed Michael suggestion to use ~code~ and =verbatim=. >> >> We may need to update the way export backend treat this markup, and >> try to be consistent here too. > > Since = and ~ have been inverted, I think it'd make sense to make > `org-babel-inline-result-wrap' now default to "~%s" (instead of > "=%s"), for markup that produces verbatim text. Here is the patch. Best regards, Seb -- Sebastien Vauban --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Replace-by-in-org-babel-inline-result-wrap.patch >From 4168c424e3c112748951177121b1a4dcb5b712a5 Mon Sep 17 00:00:00 2001 From: Sebastien Vauban Date: Fri, 23 Jan 2015 20:17:25 +0100 Subject: [PATCH] Replace `=' by `~' in `org-babel-inline-result-wrap' * ob-core.el (org-babel-inline-result-wrap): Replace `=' by `~'. --- lisp/ob-core.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 24b83d6..5fd4119 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -1,6 +1,6 @@ ;;; ob-core.el --- working with code blocks in org-mode -;; Copyright (C) 2009-2014 Free Software Foundation, Inc. +;; Copyright (C) 2009-2015 Free Software Foundation, Inc. ;; Authors: Eric Schulte ;; Dan Davison @@ -162,7 +162,7 @@ See also `org-babel-noweb-wrap-start'." :group 'org-babel :type 'string) -(defcustom org-babel-inline-result-wrap "=%s=" +(defcustom org-babel-inline-result-wrap "~%s~" "Format string used to wrap inline results. This string must include a \"%s\" which will be replaced by the results." :group 'org-babel -- 2.1.1 --=-=-=--