From: "numbchild@gmail.com" <numbchild@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: compatible issue between MELPA org and source code org
Date: Mon, 22 Jan 2018 17:39:28 +0800 [thread overview]
Message-ID: <CAL1eYuLiWuku_Z4ChCMgn8BK+YhGfcHy7oSruknRpBKejwJXKQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3569 bytes --]
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] <Hack this world!> 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/
[-- Attachment #2: Type: text/html, Size: 6658 bytes --]
next reply other threads:[~2018-01-22 9:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-22 9:39 numbchild [this message]
2018-01-23 12:26 ` compatible issue between MELPA org and source code org Kaushal Modi
2018-01-23 16:08 ` numbchild
2018-01-23 16:15 ` Kaushal Modi
2018-01-24 0:14 ` numbchild
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAL1eYuLiWuku_Z4ChCMgn8BK+YhGfcHy7oSruknRpBKejwJXKQ@mail.gmail.com \
--to=numbchild@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).