From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: compatible issue between MELPA org and source code org Date: Mon, 22 Jan 2018 17:39:28 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c094be8a706d405635a368c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edYa9-0001iW-Hr for emacs-orgmode@gnu.org; Mon, 22 Jan 2018 04:40:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edYa8-0000ou-3g for emacs-orgmode@gnu.org; Mon, 22 Jan 2018 04:40:01 -0500 Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:44047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edYa7-0000oX-TC for emacs-orgmode@gnu.org; Mon, 22 Jan 2018 04:40:00 -0500 Received: by mail-oi0-x22e.google.com with SMTP id s11so3425251oih.11 for ; Mon, 22 Jan 2018 01:39:59 -0800 (PST) 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@gnu.org Sender: "Emacs-orgmode" To: Org-mode --94eb2c094be8a706d405635a368c Content-Type: text/plain; charset="UTF-8" Because some MELPA package requires `org`. So Emacs will **force** install `org` package from MELPA. But it is delay with source code Org. I use source code org with use-package like this: ``` (use-package org :load-path "~/Code/Emacs/org-mode/lisp/" :pin manual ;; :mode (("\\.org$" . org-mode)) :config (use-package org-plus-contrib :load-path "~/Code/Emacs/org-mode/contrib/lisp/" :no-require t :pin manual) ) ``` But Emacs still will load MELPA org with `(package-initialize)`. In currently latest MELPA org package. It defines `org-structure-template-alist` Like this: ``` (defcustom org-structure-template-alist '(("s" "#+BEGIN_SRC ?\n\n#+END_SRC") ("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXAMPLE") ("q" "#+BEGIN_QUOTE\n?\n#+END_QUOTE") ("v" "#+BEGIN_VERSE\n?\n#+END_VERSE") ("V" "#+BEGIN_VERBATIM\n?\n#+END_VERBATIM") ("c" "#+BEGIN_CENTER\n?\n#+END_CENTER") ("C" "#+BEGIN_COMMENT\n?\n#+END_COMMENT") ("l" "#+BEGIN_EXPORT latex\n?\n#+END_EXPORT") ("L" "#+LaTeX: ") ("h" "#+BEGIN_EXPORT html\n?\n#+END_EXPORT") ("H" "#+HTML: ") ("a" "#+BEGIN_EXPORT ascii\n?\n#+END_EXPORT") ("A" "#+ASCII: ") ("i" "#+INDEX: ?") ("I" "#+INCLUDE: %file ?")) "Structure completion elements. This is a list of abbreviation keys and values. The value gets inserted if you type `<' followed by the key and then press the completion key, usually `TAB'. %file will be replaced by a file name after prompting for the file using completion. The cursor will be placed at the position of the `?' in the template. There are two templates for each key, the first uses the original Org syntax, the second uses Emacs Muse-like syntax tags. These Muse-like tags become the default when the /org-mtags.el/ module has been loaded. See also the variable `org-mtags-prefer-muse-templates'." :group 'org-edit-structure :type '(repeat (list (string :tag "Key") (string :tag "Template"))) :version "26.1" :package-version '(Org . "8.3")) ``` But in source code `master` branch. It is updated to use new templates. So after Emacs finished launching. It becomes like this: ``` (("Q" "#+BEGIN_SRC sql-mode ? ,#+END_SRC" "#+BEGIN_SRC sql-mode ? ,#+END_SRC") ("n" "#+BEGIN_NOTES ? ,#+END_NOTES") (116 . "translate") ("s" "#+BEGIN_SRC ? ,#+END_SRC") ("e" "#+BEGIN_EXAMPLE ? ,#+END_EXAMPLE") ("q" "#+BEGIN_QUOTE ? ,#+END_QUOTE") ("v" "#+BEGIN_VERSE ? ,#+END_VERSE") ("V" "#+BEGIN_VERBATIM ? ,#+END_VERBATIM") ("c" "#+BEGIN_CENTER ? ,#+END_CENTER") ("C" "#+BEGIN_COMMENT ? ,#+END_COMMENT") ("l" "#+BEGIN_EXPORT latex ? ,#+END_EXPORT") ("L" "#+LaTeX: ") ("h" "#+BEGIN_EXPORT html ? ,#+END_EXPORT") ("H" "#+HTML: ") ("a" "#+BEGIN_EXPORT ascii ? ,#+END_EXPORT") ("A" "#+ASCII: ") ("i" "#+INDEX: ?") ("I" "#+INCLUDE: %file ?")) Original value was ((97 . "export ascii") (99 . "center") (67 . "comment") (101 . "example") (69 . "export") (104 . "export html") (108 . "export latex") (113 . "quote") (115 . "src") (118 . "verse")) ``` Does anybody have a perfect solution to use latest source code Org in Emacs way? Please tell me thanks. And question two: I don't know how to fix this issue. I think might org should update MELPA org package? (I know package `org` updated recently) [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ --94eb2c094be8a706d405635a368c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Because some MELPA package requires `org`. So Emacs will *= *force** install `org` package from MELPA. But it is delay with source code= Org.
I use source code org with use-package like this:
```
=
= (use-package org
=C2=A0 :load-path "~/Code/Emacs/org-mode/lisp/&quo= t;
=C2=A0 :pin manual
=C2=A0 ;; :mode (("\\.org$" . org-mod= e))
=C2=A0 :config
=C2=A0 (use-package org-plus-contrib
=C2=A0=C2= =A0=C2=A0 :load-path "~/Code/Emacs/org-mode/contrib/lisp/"
=C2= =A0=C2=A0=C2=A0 :no-require t
=C2=A0=C2=A0=C2=A0 :pin manual)
=C2=A0 = )
```
But Emacs still will load MELPA org with `(package-initiali= ze)`.
In currently latest MELPA org package. It defines `org-structure= -template-alist` Like this:
```
(defcustom org-structure-template= -alist
=C2=A0 '(("s" "#+BEGIN_SRC ?\n\n#+END_SRC"= ;)
=C2=A0=C2=A0=C2=A0 ("e" "#+BEGIN_EXAMPLE\n?\n#+END_EXA= MPLE")
=C2=A0=C2=A0=C2=A0 ("q" "#+BEGIN_QUOTE\n?\n#+= END_QUOTE")
=C2=A0=C2=A0=C2=A0 ("v" "#+BEGIN_VERSE\n= ?\n#+END_VERSE")
=C2=A0=C2=A0=C2=A0 ("V" "#+BEGIN_VE= RBATIM\n?\n#+END_VERBATIM")
=C2=A0=C2=A0=C2=A0 ("c" "= ;#+BEGIN_CENTER\n?\n#+END_CENTER")
=C2=A0=C2=A0=C2=A0 ("C"= ; "#+BEGIN_COMMENT\n?\n#+END_COMMENT")
=C2=A0=C2=A0=C2=A0 (&qu= ot;l" "#+BEGIN_EXPORT latex\n?\n#+END_EXPORT")
=C2=A0=C2= =A0=C2=A0 ("L" "#+LaTeX: ")
=C2=A0=C2=A0=C2=A0 (&quo= t;h" "#+BEGIN_EXPORT html\n?\n#+END_EXPORT")
=C2=A0=C2=A0= =C2=A0 ("H" "#+HTML: ")
=C2=A0=C2=A0=C2=A0 ("a&= quot; "#+BEGIN_EXPORT ascii\n?\n#+END_EXPORT")
=C2=A0=C2=A0=C2= =A0 ("A" "#+ASCII: ")
=C2=A0=C2=A0=C2=A0 ("i&qu= ot; "#+INDEX: ?")
=C2=A0=C2=A0=C2=A0 ("I" "#+IN= CLUDE: %file ?"))
=C2=A0 "Structure completion elements.
Th= is is a list of abbreviation keys and values.=C2=A0 The value gets inserted=
if you type `<' followed by the key and then press the completio= n key,
usually `TAB'.=C2=A0 %file will be replaced by a file name af= ter prompting
for the file using completion.=C2=A0 The cursor will be pl= aced at the position
of the `?' in the template.
There are two te= mplates for each key, the first uses the original Org syntax,
the second= uses Emacs Muse-like syntax tags.=C2=A0 These Muse-like tags become
the= default when the /org-mtags.el/ module has been loaded.=C2=A0 See also the=
variable `org-mtags-prefer-muse-templates'."
=C2=A0 :group = 'org-edit-structure
=C2=A0 :type '(repeat
=C2=A0=C2=A0=C2=A0 = =C2=A0 (list
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 (string :tag "Key"= ;)
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 (string :tag "Template")))<= br>=C2=A0 :version "26.1"
=C2=A0 :package-version '(Org . = "8.3"))
```
But in source code `master` branch. It is u= pdated to use new templates.
So after Emacs finished launching.
<= div class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans-serif">I= t becomes like this:
```
=C2=A0(("Q" "#+BEGIN_SRC = sql-mode ?

=C2=A0,#+END_SRC" "#+BEGIN_SRC sql-mode ?
=C2=A0,#+END_SRC")
=C2=A0 ("n" "#+BEGIN_NOTES
= =C2=A0?
=C2=A0,#+END_NOTES")
=C2=A0 (116 . "translate"= )
=C2=A0 ("s" "#+BEGIN_SRC ?

=C2=A0,#+END_SRC"= ;)
=C2=A0 ("e" "#+BEGIN_EXAMPLE
=C2=A0?
=C2=A0,#+EN= D_EXAMPLE")
=C2=A0 ("q" "#+BEGIN_QUOTE
=C2=A0?=C2=A0,#+END_QUOTE")
=C2=A0 ("v" "#+BEGIN_VERSE
= =C2=A0?
=C2=A0,#+END_VERSE")
=C2=A0 ("V" "#+BEGIN= _VERBATIM
=C2=A0?
=C2=A0,#+END_VERBATIM")
=C2=A0 ("c&quo= t; "#+BEGIN_CENTER
=C2=A0?
=C2=A0,#+END_CENTER")
=C2=A0 = ("C" "#+BEGIN_COMMENT
=C2=A0?
=C2=A0,#+END_COMMENT&quo= t;)
=C2=A0 ("l" "#+BEGIN_EXPORT latex
=C2=A0?
=C2= =A0,#+END_EXPORT")
=C2=A0 ("L" "#+LaTeX: ")
= =C2=A0 ("h" "#+BEGIN_EXPORT html
=C2=A0?
=C2=A0,#+END_= EXPORT")
=C2=A0 ("H" "#+HTML: ")
=C2=A0 (&qu= ot;a" "#+BEGIN_EXPORT ascii
=C2=A0?
=C2=A0,#+END_EXPORT&quo= t;)
=C2=A0 ("A" "#+ASCII: ")
=C2=A0 ("i"= ; "#+INDEX: ?")
=C2=A0 ("I" "#+INCLUDE: %file ?= "))
=C2=A0Original value was
=C2=A0((97 . "export ascii&qu= ot;)
=C2=A0 (99 . "center")
=C2=A0 (67 . "comment"= ;)
=C2=A0 (101 . "example")
=C2=A0 (69 . "export"= )
=C2=A0 (104 . "export html")
=C2=A0 (108 . "export l= atex")
=C2=A0 (113 . "quote")
=C2=A0 (115 . "src&= quot;)
=C2=A0 (118 . "verse"))
```

Does anybody have a perfect solution to use latest source code Org in Emac= s way? Please tell me thanks.
And question two: I don't know how t= o fix this issue. I think might org should update MELPA org package? (I kno= w package `org` updated recently)

[stardiv= iner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack = this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(f= reeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2= =A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B= 8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
<= /div>
--94eb2c094be8a706d405635a368c--