* a line in BEGIN_SRC/END_SRC block disappeared when publishing
@ 2012-05-31 1:16 Liang Wang
2012-06-01 13:01 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: Liang Wang @ 2012-05-31 1:16 UTC (permalink / raw
To: emacs-orgmode
Hi,
When I publish an article with code block as following, the last line
disappeared. From manual, the comma before # is the way to quote #.
But it seems that it doesn't work. Is it a bug? I use 7.8.11 release
tarball.
#+BEGIN_SRC emacs-lisp
(eval-after-load 'yasnippet
'(yas/define-snippets
'org-mode
'(("elisp" "#+BEGIN_SRC emacs-lisp
$0
,#+END_SRC" "#+BEGIN_SRC emacs-lisp ... #+END_SRC"))))
#+END_SRC
Thanks,
Liang.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: a line in BEGIN_SRC/END_SRC block disappeared when publishing
2012-05-31 1:16 a line in BEGIN_SRC/END_SRC block disappeared when publishing Liang Wang
@ 2012-06-01 13:01 ` Bastien
2012-06-01 14:15 ` Liang Wang
0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2012-06-01 13:01 UTC (permalink / raw
To: Liang Wang; +Cc: emacs-orgmode
Hi Liang,
Liang Wang <netcasper@gmail.com> writes:
> #+BEGIN_SRC emacs-lisp
> (eval-after-load 'yasnippet
> '(yas/define-snippets
> 'org-mode
> '(("elisp" "#+BEGIN_SRC emacs-lisp
> $0
> ,#+END_SRC" "#+BEGIN_SRC emacs-lisp ... #+END_SRC"))))
> #+END_SRC
Why not this
#+BEGIN_SRC emacs-lisp
(eval-after-load 'yasnippet
'(yas/define-snippets
'org-mode
'(("elisp" "#+BEGIN_SRC emacs-lisp
$0\n#+END_SRC" "#+BEGIN_SRC emacs-lisp ... #+END_SRC"))))
#+END_SRC
?
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: a line in BEGIN_SRC/END_SRC block disappeared when publishing
2012-06-01 13:01 ` Bastien
@ 2012-06-01 14:15 ` Liang Wang
0 siblings, 0 replies; 3+ messages in thread
From: Liang Wang @ 2012-06-01 14:15 UTC (permalink / raw
To: Bastien; +Cc: emacs-orgmode
Hi Bastien,
On Fri, Jun 1, 2012 at 9:01 PM, Bastien <bzg@gnu.org> wrote:
> Hi Liang,
>
> Liang Wang <netcasper@gmail.com> writes:
>
>> #+BEGIN_SRC emacs-lisp
>> (eval-after-load 'yasnippet
>> '(yas/define-snippets
>> 'org-mode
>> '(("elisp" "#+BEGIN_SRC emacs-lisp
>> $0
>> ,#+END_SRC" "#+BEGIN_SRC emacs-lisp ... #+END_SRC"))))
>> #+END_SRC
>
> Why not this
>
> #+BEGIN_SRC emacs-lisp
> (eval-after-load 'yasnippet
> '(yas/define-snippets
> 'org-mode
> '(("elisp" "#+BEGIN_SRC emacs-lisp
> $0\n#+END_SRC" "#+BEGIN_SRC emacs-lisp ... #+END_SRC"))))
> #+END_SRC
>
Thanks. This one works.
Liang.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-01 14:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-31 1:16 a line in BEGIN_SRC/END_SRC block disappeared when publishing Liang Wang
2012-06-01 13:01 ` Bastien
2012-06-01 14:15 ` Liang Wang
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.