emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: double or single quote inside code or verbatim markup [6.35g]
@ 2010-04-11 21:23 Günter Kolousek
  2010-04-11 21:36 ` Thomas S. Dye
  0 siblings, 1 reply; 3+ messages in thread
From: Günter Kolousek @ 2010-04-11 21:23 UTC (permalink / raw)
  To: emacs-orgmode



I am unable to include neither double nor single quote characters
inside a verbatim markup as described in the manual. Also, I didn't
find anything in the mailing list archive:

="a"=

doesn't work, but

=x "a" x=

does. Same for ~.

I didn't find any workaround. There is no escape character, isn't it?

It seems, that the string will be captured first, but only if it is
on the left or right side of the code or verbatim markup.

I can't find it in the source because I don't know anything about elisp.
Sorry.

Cheers,
Günter




Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
  of 2009-09-27 on palmer, modified by Debian
Package: Org-mode version 6.35g

current state:
==============
(setq
  org-log-done 'time
  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
  org-special-ctrl-a/e t
  org-level-color-stars-only t
  org-load-hook '((lambda nil (textmate-mode) (toggle-truncate-lines 1)
                   (define-key org-mode-map (kbd "C-<prior>")
                    (quote elscreen-previous))
                   (define-key org-mode-map (kbd "C-<next>")
                    (quote elscreen-next))
                   (define-key org-mode-map [C-tab] (quote ido-switch-buffer))
                   (define-key org-mode-map (kbd "M-+") (quote org-complete))
                   (define-key org-mode-map (kbd "M-n")
                    (quote outline-next-visible-heading))
                   (define-key org-mode-map (kbd "M-p")
                    (quote outline-previous-visible-heading))
                   (define-key org-mode-map (kbd "C-+")
                    (quote org-force-cycle-archived))
                   )
                  )
  org-hide-leading-stars t
  org-completion-use-ido t
  org-metaup-hook '(org-babel-load-in-session-maybe)
  org-after-todo-state-change-hook '(org-clock-out-if-current
                                     wicked/org-clock-out-if-waiting
                                     wicked/org-clock-in-if-starting)
  org-babel-interpreters '("emacs-lisp" "python" "latex" "sh")
  org-odd-levels-only t
  org-export-copy-to-kill-ring nil
  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
  org-export-preprocess-hook '(org-export-blocks-preprocess)
  org-tab-first-hook '(org-babel-hide-result-toggle-maybe
                       org-hide-block-toggle-maybe)
  org-src-mode-hook '(org-src-mode-configure-edit-buffer)
  org-confirm-shell-link-function 'yes-or-no-p
  org-export-first-hook '(org-beamer-initialize-open-trackers)
  org-agenda-before-write-hook '(org-agenda-add-entry-text)
  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                   org-cycle-show-empty-lines
                   org-optimize-window-after-visibility-change)
  org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
  org-mode-hook '((lambda nil
                   (org-add-hook (quote change-major-mode-hook)
                    (quote org-babel-show-result-all) (quote append)
                    (quote local))
                   )
                  org-babel-result-hide-spec org-babel-hide-all-hashes
                  #[nil "\300\301\302\303\304$\207"
                    [org-add-hook change-major-mode-hook org-show-block-all
                     append local]
                    5]
                  )
  org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash-at-point
                           org-babel-execute-src-block-maybe)
  org-confirm-elisp-link-function 'yes-or-no-p
  org-export-interblocks '((lob org-babel-exp-lob-one-liners)
                           (src org-babel-exp-inline-src-blocks))
  org-occur-hook '(org-first-headline-recenter)
  org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
  org-time-stamp-custom-formats '("<%Y-%m-%d>" . "<%Y-%m-%d  %H:%M>")
  org-export-kill-product-buffer-when-displayed t
  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
                                org-beamer-auto-fragile-frames
                                org-beamer-place-default-actions-for-lists)
  org-metadown-hook '(org-babel-pop-to-session-maybe)
  org-export-blocks '((src org-babel-exp-src-blocks nil)
                      (comment org-export-blocks-format-comment t)
                      (ditaa org-export-blocks-format-ditaa nil)
                      (dot org-export-blocks-format-dot nil))
  )

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

* Re: Bug: double or single quote inside code or verbatim markup [6.35g]
  2010-04-11 21:23 Bug: double or single quote inside code or verbatim markup [6.35g] Günter Kolousek
@ 2010-04-11 21:36 ` Thomas S. Dye
  2010-04-12  6:26   ` Günter Kolousek
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas S. Dye @ 2010-04-11 21:36 UTC (permalink / raw)
  To: Günter Kolousek; +Cc: emacs-orgmode


On Apr 11, 2010, at 11:23 AM, Günter Kolousek wrote:

>
>
> I am unable to include neither double nor single quote characters
> inside a verbatim markup as described in the manual. Also, I didn't
> find anything in the mailing list archive:
>
> ="a"=
>
> doesn't work, but
>
> =x "a" x=
>
> does. Same for ~.
>
> I didn't find any workaround. There is no escape character, isn't it?
>
> It seems, that the string will be captured first, but only if it is
> on the left or right side of the code or verbatim markup.
>
> I can't find it in the source because I don't know anything about  
> elisp.
> Sorry.
>
> Cheers,
> Günter
>
>
>
>
> Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
> of 2009-09-27 on palmer, modified by Debian
> Package: Org-mode version 6.35g
>
> current state:
> ==============
> (setq
> org-log-done 'time
> org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
> vars)
> org-special-ctrl-a/e t
> org-level-color-stars-only t
> org-load-hook '((lambda nil (textmate-mode) (toggle-truncate-lines 1)
>                  (define-key org-mode-map (kbd "C-<prior>")
>                   (quote elscreen-previous))
>                  (define-key org-mode-map (kbd "C-<next>")
>                   (quote elscreen-next))
>                  (define-key org-mode-map [C-tab] (quote ido-switch- 
> buffer))
>                  (define-key org-mode-map (kbd "M-+") (quote org- 
> complete))
>                  (define-key org-mode-map (kbd "M-n")
>                   (quote outline-next-visible-heading))
>                  (define-key org-mode-map (kbd "M-p")
>                   (quote outline-previous-visible-heading))
>                  (define-key org-mode-map (kbd "C-+")
>                   (quote org-force-cycle-archived))
>                  )
>                 )
> org-hide-leading-stars t
> org-completion-use-ido t
> org-metaup-hook '(org-babel-load-in-session-maybe)
> org-after-todo-state-change-hook '(org-clock-out-if-current
>                                    wicked/org-clock-out-if-waiting
>                                    wicked/org-clock-in-if-starting)
> org-babel-interpreters '("emacs-lisp" "python" "latex" "sh")
> org-odd-levels-only t
> org-export-copy-to-kill-ring nil
> org-export-latex-format-toc-function 'org-export-latex-format-toc- 
> default
> org-export-preprocess-hook '(org-export-blocks-preprocess)
> org-tab-first-hook '(org-babel-hide-result-toggle-maybe
>                      org-hide-block-toggle-maybe)
> org-src-mode-hook '(org-src-mode-configure-edit-buffer)
> org-confirm-shell-link-function 'yes-or-no-p
> org-export-first-hook '(org-beamer-initialize-open-trackers)
> org-agenda-before-write-hook '(org-agenda-add-entry-text)
> org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
> drawers
>                  org-cycle-show-empty-lines
>                  org-optimize-window-after-visibility-change)
> org-export-preprocess-before-normalizing-links-hook '(org-remove- 
> file-link-modifiers)
> org-mode-hook '((lambda nil
>                  (org-add-hook (quote change-major-mode-hook)
>                   (quote org-babel-show-result-all) (quote append)
>                   (quote local))
>                  )
>                 org-babel-result-hide-spec org-babel-hide-all-hashes
>                 #[nil "\300\301\302\303\304$\207"
>                   [org-add-hook change-major-mode-hook org-show- 
> block-all
>                    append local]
>                   5]
>                 )
> org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash- 
> at-point
>                          org-babel-execute-src-block-maybe)
> org-confirm-elisp-link-function 'yes-or-no-p
> org-export-interblocks '((lob org-babel-exp-lob-one-liners)
>                          (src org-babel-exp-inline-src-blocks))
> org-occur-hook '(org-first-headline-recenter)
> org-export-preprocess-before-selecting-backend-code-hook '(org- 
> beamer-select-beamer-code)
> org-time-stamp-custom-formats '("<%Y-%m-%d>" . "<%Y-%m-%d  %H:%M>")
> org-export-kill-product-buffer-when-displayed t
> org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- 
> toc
>                               org-beamer-auto-fragile-frames
>                               org-beamer-place-default-actions-for- 
> lists)
> org-metadown-hook '(org-babel-pop-to-session-maybe)
> org-export-blocks '((src org-babel-exp-src-blocks nil)
>                     (comment org-export-blocks-format-comment t)
>                     (ditaa org-export-blocks-format-ditaa nil)
>                     (dot org-export-blocks-format-dot nil))
> )
>
>

Aloha Günter,

This message to the mailing list last month might help.

> Hello.
>
> Sometimes org-mode isn't smart enough, but I don't require it to be
> because I understand my demands might be high. For example marking  
> code
> with =...= can't manege apostrophes right next to equality signs
>
>  =a = 'B'=
>
> doesn't work actually as expected (particularly latex export). But  
> fear
> not and use unicode. There is
>
>  <U200B>     /xe2/x80/x8b ZERO WIDTH SPACE
>
> When you put (C-x 8 RET 200b RET) it next to equality signs
>
>  =a = 'B'=
>  ^^     ^^
>
> Everything works like charm *and* there is completely no additional
> space in the output.
>
> -- 
> Miłego dnia,
> Łukasz Stelmach

All the best,
Tom

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

* Re: Bug: double or single quote inside code or verbatim markup [6.35g]
  2010-04-11 21:36 ` Thomas S. Dye
@ 2010-04-12  6:26   ` Günter Kolousek
  0 siblings, 0 replies; 3+ messages in thread
From: Günter Kolousek @ 2010-04-12  6:26 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode


Yes, this works well. Thanx!

Günter

Quoting "Thomas S. Dye" <tsd@tsdye.com>:

>
> On Apr 11, 2010, at 11:23 AM, Günter Kolousek wrote:
>
>>
>>
>> I am unable to include neither double nor single quote characters
>> inside a verbatim markup as described in the manual. Also, I didn't
>> find anything in the mailing list archive:
>>
>> ="a"=
>>
>> doesn't work, but
>>
>> =x "a" x=
>>
>> does. Same for ~.
>>
>> I didn't find any workaround. There is no escape character, isn't it?
>>
>> It seems, that the string will be captured first, but only if it is
>> on the left or right side of the code or verbatim markup.
>>
>> I can't find it in the source because I don't know anything about elisp.
>> Sorry.
>>
>> Cheers,
>> Günter
>>
>>
>>
>
> Aloha Günter,
>
> This message to the mailing list last month might help.
>
>> Hello.
>>
>> Sometimes org-mode isn't smart enough, but I don't require it to be
>> because I understand my demands might be high. For example marking code
>> with =...= can't manege apostrophes right next to equality signs
>>
>> =a = 'B'=
>>
>> doesn't work actually as expected (particularly latex export). But fear
>> not and use unicode. There is
>>
>> <U200B>     /xe2/x80/x8b ZERO WIDTH SPACE
>>
>> When you put (C-x 8 RET 200b RET) it next to equality signs
>>
>> =a = 'B'=
>> ^^     ^^
>>
>> Everything works like charm *and* there is completely no additional
>> space in the output.
>>
>> -- 
>> Miłego dnia,
>> Łukasz Stelmach
>
> All the best,
> Tom
>


---------------------------------------------------------------------
This message was sent using the HTL Wr. Neustadt/EDVO webmail service.

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

end of thread, other threads:[~2010-04-12  7:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-11 21:23 Bug: double or single quote inside code or verbatim markup [6.35g] Günter Kolousek
2010-04-11 21:36 ` Thomas S. Dye
2010-04-12  6:26   ` Günter Kolousek

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