emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* compatible issue between MELPA org and source code org
@ 2018-01-22  9:39 numbchild
  2018-01-23 12:26 ` Kaushal Modi
  0 siblings, 1 reply; 5+ messages in thread
From: numbchild @ 2018-01-22  9:39 UTC (permalink / raw)
  To: Org-mode

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-24  0:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-22  9:39 compatible issue between MELPA org and source code org numbchild
2018-01-23 12:26 ` Kaushal Modi
2018-01-23 16:08   ` numbchild
2018-01-23 16:15     ` Kaushal Modi
2018-01-24  0:14       ` numbchild

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).