phillord / lentic

Create views of the same content in two Emacs buffers
183 stars 12 forks source link

`lentic-orgel-org-init' conflict with org tags #19

Closed tumashu closed 9 years ago

tumashu commented 9 years ago

When I edit head with tags in org buffer, emacs-lisp buffer get wrong result

tumashu commented 9 years ago
;;; Commentary:
;; * README                                   :README:
;; This is a readme

;;; code:
;; * code                                                                 :Code:
;; #+BEGIN_SRC emacs-lisp
(message "Hello World")
;; #+END_SRC
;; # Local Variables:
;; # lentic-init: lentic-orgel-org-init
;; # End:
tumashu commented 9 years ago

I only export head with tags :README:. or :Code:

phillord commented 9 years ago

Try this instead.

;;; Commentary:
;; ** README
;; This is a readme

;;; code:
;; ** code
;; #+BEGIN_SRC emacs-lisp
(message "Hello World")
;; #+END_SRC
;; # Local Variables:
;; # lentic-init: lentic-orgel-org-init
;; # End:

* code is not syntax for the orgel transformation. The ;;; Commentary; markers get transformed into Header-1.

tumashu commented 9 years ago
 ;;; Head:

The problem is that it can't add tags which is an important org feature,

What about ignore transform Head-1 which have tags? for example: ;; * head1 :tag1:tag2:

phillord commented 9 years ago

Yes I agree. This is on my list of things to do!