emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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 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).