From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bram Adams Subject: Re: Bug (with fix): org-tempo-add-block incorrectly inserts comma before next `#+begin_src' during expansion [9.3.2 (9.3.2-8-g47b104-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20200127/)] Date: Sun, 2 Feb 2020 23:35:13 -0500 Message-ID: References: <93C72314-096C-4C7A-83B6-D96F581E92D5@polymtl.ca> <87a7608hn1.fsf@localhost> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_82FF4AA1-E87D-4DB9-A7DF-94B43CFD63CB" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37340) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyTSP-0000g9-JC for emacs-orgmode@gnu.org; Sun, 02 Feb 2020 23:35:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyTSM-00008E-6B for emacs-orgmode@gnu.org; Sun, 02 Feb 2020 23:35:33 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:57595) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iyTSL-0008K1-RY for emacs-orgmode@gnu.org; Sun, 02 Feb 2020 23:35:30 -0500 In-Reply-To: <87a7608hn1.fsf@localhost> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Ihor Radchenko Cc: emacs-orgmode@gnu.org --Apple-Mail=_82FF4AA1-E87D-4DB9-A7DF-94B43CFD63CB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Ihor, > It's a duplicate of my earlier bug report > https://lists.gnu.org/archive/html/emacs-orgmode/2019-12/msg00326.html = True, I seem to notice the same symptoms and also had = `org-src-tab-acts-natively=E2=80=99 set. > Hope, there will be some progress.=20 Yes, hopefully removing the `=E2=80=99>=E2=80=99 in org-tempo.el is only = a temporary hack (cannot use `org-insert-structure-template=E2=80=99 due = to other templates). Thanks for the quick reply, Bram Adams > Bram Adams writes: >=20 >> Hi, >>=20 >> I encountered a bug in org-tempo-add-block, where the following = snippet in an org file (with =E2=80=9C> =3D=3D=3D >>

>=20 >> [random text, potentially empty] >>=20 >> #+begin_src any_code_block >> [=E2=80=A6] >> #+end_src >> =3D=3D=3D=20 >>=20 >> =E2=80=A6 expands into (notice the comma before `#+begin'): >> =3D=3D=3D >> [expansion of >=20 >> [random text, potentially empty] >>=20 >> ,#+begin_src any_code_block >> [=E2=80=A6] >> #+end_src >> =3D=3D=3D >>=20 >> (The issue does not occur when using = `org-insert-structure-template=E2=80=99.) >>=20 >> The spurious comma seems to be generated by the second `=E2=80=99>=E2=80= =99 on line 125 of org-tempo.el: >> =3D=3D=3D >> (defun org-tempo-add-block (entry) >> "Add block entry from `org-structure-template-alist'." >> (let* ((key (format "<%s" (car entry))) >> (name (cdr entry)) >> (special (member name '("src" "export")))) >> (tempo-define-template (format "org-%s" (replace-regexp-in-string = " " "-" name)) >> `(,(format "#+begin_%s%s" name (if special " = " "")) >> ,(when special 'p) '> n '> ,(unless special = 'p) n ;; <=E2=80=94=E2=80=94 line 125 >> ,(format "#+end_%s" (car (split-string name = " "))) >> >) >> key >> (format "Insert a %s block" name) >> 'org-tempo-tags))) >> =3D=3D=3D >>=20 >> Removing the second `=E2=80=99>=E2=80=99 on line 125 fixes the issue. >>=20 >> Kind regards, >>=20 >> Bram Adams >>=20 >>=20 >> =3D=3D=3D >> =3D=3D=3D >> =3D=3D=3D >>=20 >> Emacs : GNU Emacs 26.3 (build 1, x86_64-apple-darwin17.7.0, Carbon = Version 158 AppKit 1561.6) >> of 2019-08-29 >> Package: Org mode version 9.3.2 (9.3.2-8-g47b104-elpaplus @ = ~/.emacs.d/elpa/org-plus-contrib-20200127/) >>=20 >> current state: >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> (setq >> org-src-mode-hook '(org-src-babel-configure-edit-buffer >> org-src-mode-configure-edit-buffer) >> org-fontify-whole-heading-line t >> org-refile-target-verify-function 'verify-refile-target >> org-agenda-scheduled-leaders '("Sch.: " "Sch.%2dx: ") >> org-link-shell-confirm-function 'yes-or-no-p >> org-babel-after-execute-hook '(org-redisplay-inline-images) >> org-tempo-keywords-alist nil >> org-metadown-hook '(org-babel-pop-to-session-maybe) >> org-clock-out-hook '(org-clock-remove-empty-clock-drawer) >> org-refile-targets '((nil :maxlevel . 4) (filter_out_cal :maxlevel . = 4)) >> org-enforce-todo-dependencies t >> org-edit-src-content-indentation 0 >> org-src-tab-acts-natively t >> org-special-ctrl-a/e t >> org-agenda-files '(=E2=80=9C/path/to/org/" >> =E2=80=9C/path/to/org/archive/") >> org-shiftup-final-hook '(windmove-up) >> org-blocker-hook '(org-block-todo-from-checkboxes >> = org-block-todo-from-children-or-siblings-or-parent) >> org-archive-location "archive/%s_archive.gpg::" >> org-super-agenda-mode t >> org-mode-hook '(add-pcomplete-to-capf org-bullets-mode = org-tempo-setup >> #[0 "\300\301\302\303\304$\207" >> [add-hook change-major-mode-hook org-show-all = append local] 5] >> ob-ipython-auto-configure-kernels >> #[0 "\300\301\302\303\304$\207" >> [add-hook change-major-mode-hook = org-babel-show-result-all append >> local] >> 5] >> org-babel-result-hide-spec org-babel-hide-all-hashes >> #[0 "\301\211\207" [imenu-create-index-function = org-imenu-get-tree] >> 2] >> org-eldoc-load) >> org-outline-path-complete-in-steps nil >> org-archive-hook '(org-attach-archive-delete-maybe) >> org-confirm-elisp-link-function 'yes-or-no-p >> org-agenda-finalize-hook '(ap/org-super-agenda-origami-fold-default >> gs/org-agenda-project-highlight-warning >> #[0 "\300ed\301#\207" >> [remove-text-properties (mouse-face t)] = 4] >> ) >> org-agenda-before-write-hook '(org-agenda-add-entry-text) >> org-metaup-hook '(org-babel-load-in-session-maybe) >> org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 = "\n\n(fn ENTRY)"] >> org-shiftdown-final-hook '(windmove-down) >> org-agenda-deadline-faces '((1.001 . error) (1.0 . org-warning) >> (0.5 . org-upcoming-deadline) >> (0.0 . org-upcoming-distant-deadline)) >> org-track-ordered-property-with-tag t >> org-babel-pre-tangle-hook '(save-buffer) >> org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default) = ("\\.x?html?\\'" . default) >> ("\\.pdf\\'" . default) ("\\.jpg\\'" . system) = ("\\.JPG\\'" . system) >> ("\\.png\\'" . system) ("\\.PNG\\'" . system)) >> org-tab-first-hook '(org-babel-hide-result-toggle-maybe = org-babel-header-arg-expand) >> org-hide-leading-stars t >> org-babel-load-languages '((R . t) (sql . t) (shell . t) (dot . t) = (sqlite . t) >> (perl . t) (ditaa . t) (ipython . t) = (python . t) >> (applescript . t) (emacs-lisp . t)) >> org-shiftright-final-hook '(windmove-right) >> org-agenda-time-grid '((daily today remove-match) (800 1200 1600 = 2000) "......" >> "----------------") >> org-log-done 'time >> org-highlight-latex-and-related '(latex) >> org-ellipsis " =E2=86=B4" >> org-use-fast-todo-selection t >> org-fast-tag-selection-single-key 'expert >> org-src-lang-modes '(("jupyter-python" . python) ("arduino" . = arduino) >> ("redis" . redis) ("php" . php) ("ipython" . = python) ("C" . c) >> ("C++" . c++) ("asymptote" . asy) ("bash" . sh) >> ("beamer" . latex) ("calc" . fundamental) ("cpp" = . c++) >> ("ditaa" . artist) ("dot" . fundamental) = ("elisp" . emacs-lisp) >> ("ocaml" . tuareg) ("screen" . shell-script) = ("shell" . sh) >> ("sqlite" . sql)) >> org-src-preserve-indentation t >> org-fontify-quote-and-verse-blocks t >> org-fontify-done-headline t >> org-catch-invisible-edits 'error >> org-agenda-prefix-format '((agenda . " %i %?-12t% s") (todo . " %i = %-12:c") >> (tags . " %i %-12:c") (search . " %i = %-12:c")) >> org-occur-hook '(org-first-headline-recenter) >> org-agenda-mode-hook '(org-gcal-fetch origami-mode) >> org-cycle-separator-lines 0 >> org-agenda-window-setup 'current-window >> org-log-into-drawer t >> org-protocol-protocol-alist '(("capture-eww-readable" :protocol = "capture-eww-readable" >> :function >> = org-protocol-capture-html--capture-eww-readable >> :kill-client t) >> ("capture-html" :protocol = "capture-html" :function >> org-protocol-capture-html--with-pandoc = :kill-client t) >> ) >> org-agenda-search-headline-for-time nil >> org-enforce-todo-checkbox-dependencies t >> org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t)) >> ("WAITING" ("WAITING" . t)) >> ("INACTIVE" ("WAITING") ("INACTIVE" . = t)) >> (done ("WAITING") ("INACTIVE")) >> ("TODO" ("WAITING") ("CANCELLED") = ("INACTIVE")) >> ("NEXT" ("WAITING") ("CANCELLED") = ("INACTIVE")) >> ("NOW" ("WAITING") ("CANCELLED") = ("INACTIVE")) >> ("SOMETIME" ("WAITING") ("CANCELLED") = ("INACTIVE")) >> ("DONE" ("WAITING") ("CANCELLED") = ("INACTIVE"))) >> org-structure-template-alist '(("e" . "src emacs-lisp") ("i" . "src = ipython") >> ("a" . "src applescript") >> ("r" . >> "src R :results output :async t = :session mysession :cache yes :colnames yes") >> ("p" . >> "src python :results output graphics = :async t :session mysession :exports both") >> ("b" . >> "src shell :results output graphics = :async t :session mysession") >> ("s" . >> "src sqlite :db /path/to/db :colnames = yes :async t :session mysession") >> ("q" . "quote") ("v" . "verse") ("V" . = "verbatim") >> ("c" . "center") ("C" . "comment") = ("l" . "src latex") >> ("h" . "src html")) >> org-archive-file-header-format "" >> org-cycle-hook '(org-cycle-hide-archived-subtrees = org-cycle-show-empty-lines >> org-optimize-window-after-visibility-change) >> org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "NOW(o)" = "SOMETIME(s)" "|" "DONE(d)") >> (sequence "WAITING(w@/!)" "INACTIVE(i)" "|" = "CANCELLED(c@/!)" >> "MEETING") >> ) >> org-speed-command-hook '(org-speed-command-activate = org-babel-speed-command-activate) >> org-capture-mode-hook '(#[0 "\300\301\302\303 !\"A\304\232\205\305 = \207" >> [assoc name frame-parameters selected-frame = "remember" >> delete-other-windows] >> 4] >> ) >> org-shiftleft-final-hook '(windmove-left) >> org-babel-tangle-lang-exts '(("apples" . "scpt") ("applescript" . = "scpt") >> ("python" . "py") ("perl" . "pl") = ("emacs-lisp" . "el") >> ("elisp" . "el")) >> org-refile-allow-creating-parent-nodes 'confirm >> org-refile-use-outline-path t >> org-font-lock-set-keywords-hook '(doom-org-custom-fontification) >> org-confirm-shell-link-function 'yes-or-no-p >> org-stuck-projects '("" nil nil "") >> org-link-parameters '(("attachment" :follow org-attach-open-link = :export >> org-attach-export-link :complete = org-attach-complete-link) >> ("eww" :follow eww :store org-eww-store-link) >> ("rmail" :follow org-rmail-open :store = org-rmail-store-link) >> ("mhe" :follow org-mhe-open :store = org-mhe-store-link) >> ("irc" :follow org-irc-visit :store = org-irc-store-link :export >> org-irc-export) >> ("info" :follow org-info-open :export = org-info-export :store >> org-info-store-link) >> ("gnus" :follow org-gnus-open :store = org-gnus-store-link) >> ("docview" :follow org-docview-open :export = org-docview-export >> :store org-docview-store-link) >> ("bibtex" :follow org-bibtex-open :store = org-bibtex-store-link) >> ("bbdb" :follow org-bbdb-open :export = org-bbdb-export :complete >> org-bbdb-complete-link :store = org-bbdb-store-link) >> ("w3m" :store org-w3m-store-link) ("id" :follow = org-id-open) >> ("file+sys") ("file+emacs") >> ("shell" :follow org-link--open-shell) >> ("news" :follow >> #[257 "\301\300\302Q!\207" ["news" browse-url = ":"] 5 >> "\n\n(fn URL)"] >> ) >> ("mailto" :follow >> #[257 "\301\300\302Q!\207" ["mailto" = browse-url ":"] 5 >> "\n\n(fn URL)"] >> ) >> ("https" :follow >> #[257 "\301\300\302Q!\207" ["https" browse-url = ":"] 5 >> "\n\n(fn URL)"] >> ) >> ("http" :follow >> #[257 "\301\300\302Q!\207" ["http" browse-url = ":"] 5 >> "\n\n(fn URL)"] >> ) >> ("ftp" :follow >> #[257 "\301\300\302Q!\207" ["ftp" browse-url = ":"] 5 >> "\n\n(fn URL)"] >> ) >> ("help" :follow org-link--open-help) >> ("file" :complete org-link-complete-file) >> ("elisp" :follow org-link--open-elisp) >> ("doi" :follow org-link--open-doi)) >> org-agenda-file-regexp "\\`[^.].*\\.org\\(\\.gpg\\)?\\'" >> org-link-elisp-confirm-function 'yes-or-no-p >> org-todo-keyword-faces '(("TODO" :foreground "red" :weight bold) >> ("NEXT" :foreground "blue" :weight bold) >> ("NOW" :foreground "orange" :weight bold) >> ("SOMETIME" :foreground "deep sky blue" = :weight bold) >> ("DONE" :foreground "forest green" :weight = bold) >> ("WAITING" :foreground "orange" :weight = bold) >> ("INACTIVE" :foreground "magenta" :weight = bold) >> ("CANCELLED" :foreground "forest green" = :weight bold) >> ("MEETING" :foreground "forest green" = :weight bold)) >> org-capture-after-finalize-hook '(#[0 >> "\300 \210\301\302\303\304 = !\"A\305\232\205\306 \207" >> [org-save-all-org-buffers assoc = name >> frame-parameters selected-frame = "remember" >> delete-frame] >> 4] >> ) >> org-tab-before-tab-emulation-hook '(org-tempo-complete-tag) >> org-super-agenda-groups '((:name "Today:" :time-grid t) >> (:name "NOW Tasks:" :todo "NOW") >> (:name "Overdue Tasks:" :scheduled past) >> (:name "Today's Tasks:" :scheduled today) >> (:name "Future Tasks:" :scheduled future)) >> org-startup-truncated nil >> org-show-context-detail '((agenda . local) (bookmark-jump . lineage) >> (isearch . lineage) (default . ancestors) = (org-goto . local) >> (occur-tree . local) (link-search . local) >> (tags-tree . local)) >> org-src-window-setup 'current-window >> org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate >> org-deadline-warning-days 90 >> org-agenda-custom-commands '(("c" "Simple agenda view" ((agenda "") = (alltodo ""))) >> ("X" "Agenda" ((agenda "") (alltodo)) >> ((org-agenda-ndays 10) = (org-agenda-start-on-weekday nil) >> (org-agenda-start-day "-1d") >> (org-agenda-start-with-log-mode t)) >> ) >> ) >> org-directory =E2=80=9C/path/to/org/" >> org-default-notes-file =E2=80=9C/path/to/org/my_notes.org" >> ) >>=20 >=20 > --=20 > Ihor Radchenko, > PhD, > Center for Advancing Materials Performance from the Nanoscale = (CAMP-nano) > State Key Laboratory for Mechanical Behavior of Materials, Xi'an = Jiaotong University, Xi'an, China > Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg >=20 --Apple-Mail=_82FF4AA1-E87D-4DB9-A7DF-94B43CFD63CB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Ihor,


It's a duplicate of my earlier bug = report

True, I seem to notice the same symptoms and also = had `org-src-tab-acts-natively=E2=80=99 = set.

Hope, there will be some = progress.

Yes, hopefully removing the `=E2=80=99>=E2=80=99 = in org-tempo.el is only a temporary hack (cannot use = `org-insert-structure-template=E2=80=99 due to other = templates).

Thanks for the quick = reply,

Bram Adams



Bram Adams <bram.adams@polymtl.ca> writes:

Hi,

I encountered a bug in org-tempo-add-block, where the = following snippet in an org file (with =E2=80=9C<p=E2=80=9D = representing an arbitrary entry in `org-structure-template-alist=E2=80=99)= :
=3D=3D=3D
<p

[random text, potentially empty]

#+begin_src any_code_block
[=E2=80=A6]
#+end_src
=3D=3D=3D

=E2=80=A6 expands into (notice the comma before = `#+begin'):
=3D=3D=3D
[expansion of = <p]

[random text, potentially empty]

,#+begin_src any_code_block
[=E2=80=A6]
#+end_src
=3D=3D=3D

(The issue does not occur when using = `org-insert-structure-template=E2=80=99.)

The= spurious comma seems to be generated by the second `=E2=80=99>=E2=80=99= on line 125 of org-tempo.el:
=3D=3D=3D
(defun= org-tempo-add-block (entry)
 "Add block entry from = `org-structure-template-alist'."
 (let* ((key = (format "<%s" (car entry)))
(name = (cdr entry))
(special (member name '("src" = "export"))))
   (tempo-define-template = (format "org-%s" (replace-regexp-in-string " " "-" name))
= = =   `(,(format "#+begin_%s%s" name (if special " " = ""))
    ,(when = special 'p) '> n '> ,(unless special 'p) n ;; <=E2=80=94=E2=80=94= line 125
    ,(format = "#+end_%s" (car (split-string name " ")))
=     >)
  key
= = =   (format "Insert a %s block" name)
=   'org-tempo-tags)))
=3D=3D=3D

Removing the second `=E2=80=99>=E2=80=99 on line 125 fixes = the issue.

Kind regards,

Bram Adams


=3D=3D=3D=
=3D=3D=3D
=3D=3D=3D

Emacs  : GNU Emacs 26.3 (build 1, = x86_64-apple-darwin17.7.0, Carbon Version 158 AppKit 1561.6)
of 2019-08-29
Package: Org mode version 9.3.2 = (9.3.2-8-g47b104-elpaplus @ = ~/.emacs.d/elpa/org-plus-contrib-20200127/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
(setq
org-src-mode-hook = '(org-src-babel-configure-edit-buffer
=             &n= bsp;       org-src-mode-configure-edit-= buffer)
org-fontify-whole-heading-line t
= org-refile-target-verify-function 'verify-refile-target
= org-agenda-scheduled-leaders '("Sch.: " "Sch.%2dx: ")
= org-link-shell-confirm-function 'yes-or-no-p
= org-babel-after-execute-hook '(org-redisplay-inline-images)
= org-tempo-keywords-alist nil
org-metadown-hook = '(org-babel-pop-to-session-maybe)
org-clock-out-hook = '(org-clock-remove-empty-clock-drawer)
org-refile-targets = '((nil :maxlevel . 4) (filter_out_cal :maxlevel . 4))
= org-enforce-todo-dependencies t
= org-edit-src-content-indentation 0
= org-src-tab-acts-natively t
org-special-ctrl-a/e t
org-agenda-files '(=E2=80=9C/path/to/org/"
=             &n= bsp;      =E2=80=9C/path/to/org/archive/") org-shiftup-final-hook '(windmove-up)
= org-blocker-hook '(org-block-todo-from-checkboxes
=             &n= bsp;      org-block-todo-from-children-or-si= blings-or-parent)
org-archive-location = "archive/%s_archive.gpg::"
org-super-agenda-mode t
org-mode-hook '(add-pcomplete-to-capf org-bullets-mode = org-tempo-setup
=             &n= bsp;   #[0 "\300\301\302\303\304$\207"
=             &n= bsp;     [add-hook change-major-mode-hook = org-show-all append local] 5]
=             &n= bsp;   ob-ipython-auto-configure-kernels
=             &n= bsp;   #[0 "\300\301\302\303\304$\207"
=             &n= bsp;     [add-hook change-major-mode-hook = org-babel-show-result-all append
=             &n= bsp;      local]
=             &n= bsp;     5]
=             &n= bsp;   org-babel-result-hide-spec = org-babel-hide-all-hashes
=             &n= bsp;   #[0 "\301\211\207" [imenu-create-index-function = org-imenu-get-tree]
=             &n= bsp;     2]
=             &n= bsp;   org-eldoc-load)
= org-outline-path-complete-in-steps nil
org-archive-hook = '(org-attach-archive-delete-maybe)
= org-confirm-elisp-link-function 'yes-or-no-p
= org-agenda-finalize-hook '(ap/org-super-agenda-origami-fold-default
=             &n= bsp;           &nbs= p;  gs/org-agenda-project-highlight-warning
=             &n= bsp;           &nbs= p;  #[0 "\300ed\301#\207"
=             &n= bsp;           &nbs= p;    [remove-text-properties (mouse-face t)] 4]
=             &n= bsp;           &nbs= p;  )
org-agenda-before-write-hook = '(org-agenda-add-entry-text)
org-metaup-hook = '(org-babel-load-in-session-maybe)
= org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 = "\n\n(fn ENTRY)"]
org-shiftdown-final-hook = '(windmove-down)
org-agenda-deadline-faces '((1.001 . = error) (1.0 . org-warning)
=             &n= bsp;           &nbs= p;   (0.5 . org-upcoming-deadline)
=             &n= bsp;           &nbs= p;   (0.0 . org-upcoming-distant-deadline))
= org-track-ordered-property-with-tag t
= org-babel-pre-tangle-hook '(save-buffer)
org-file-apps = '((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . = default)
=             &n= bsp;   ("\\.pdf\\'" . default) ("\\.jpg\\'" . system) = ("\\.JPG\\'" . system)
=             &n= bsp;   ("\\.png\\'" . system) ("\\.PNG\\'" . system))
org-tab-first-hook '(org-babel-hide-result-toggle-maybe = org-babel-header-arg-expand)
org-hide-leading-stars t
org-babel-load-languages '((R . t) (sql . t) (shell . t) = (dot . t) (sqlite . t)
=             &n= bsp;           &nbs= p;  (perl . t) (ditaa . t) (ipython . t) (python . t)
=             &n= bsp;           &nbs= p;  (applescript . t) (emacs-lisp . t))
= org-shiftright-final-hook '(windmove-right)
= org-agenda-time-grid '((daily today remove-match) (800 1200 1600 2000) = "......"
=             &n= bsp;          "---------= -------")
org-log-done 'time
= org-highlight-latex-and-related '(latex)
org-ellipsis " = =E2=86=B4"
org-use-fast-todo-selection t
= org-fast-tag-selection-single-key 'expert
= org-src-lang-modes '(("jupyter-python" . python) ("arduino" . = arduino)
=             &n= bsp;        ("redis" . redis) = ("php" . php) ("ipython" . python) ("C" . c)
=             &n= bsp;        ("C++" . c++) = ("asymptote" . asy) ("bash" . sh)
=             &n= bsp;        ("beamer" . latex) = ("calc" . fundamental) ("cpp" . c++)
=             &n= bsp;        ("ditaa" . artist) = ("dot" . fundamental) ("elisp" . emacs-lisp)
=             &n= bsp;        ("ocaml" . tuareg) = ("screen" . shell-script) ("shell" . sh)
=             &n= bsp;        ("sqlite" . sql))
org-src-preserve-indentation t
= org-fontify-quote-and-verse-blocks t
= org-fontify-done-headline t
org-catch-invisible-edits = 'error
org-agenda-prefix-format '((agenda . " %i %?-12t% = s") (todo . " %i %-12:c")
=             &n= bsp;           &nbs= p;  (tags . " %i %-12:c") (search . " %i %-12:c"))
org-occur-hook '(org-first-headline-recenter)
= org-agenda-mode-hook '(org-gcal-fetch origami-mode)
= org-cycle-separator-lines 0
org-agenda-window-setup = 'current-window
org-log-into-drawer t
= org-protocol-protocol-alist '(("capture-eww-readable" :protocol = "capture-eww-readable"
=             &n= bsp;           &nbs= p;      :function
=             &n= bsp;           &nbs= p;      org-protocol-capture-html--capture-e= ww-readable
=             &n= bsp;           &nbs= p;      :kill-client t)
=             &n= bsp;           &nbs= p;     ("capture-html" :protocol "capture-html" = :function
=             &n= bsp;           &nbs= p;      org-protocol-capture-html--with-pand= oc :kill-client t)
=             &n= bsp;           &nbs= p;     )
= org-agenda-search-headline-for-time nil
= org-enforce-todo-checkbox-dependencies t
= org-todo-state-tags-triggers '(("CANCELLED" ("CANCELLED" . t))
=             &n= bsp;           &nbs= p;      ("WAITING" ("WAITING" . t))
=             &n= bsp;           &nbs= p;      ("INACTIVE" ("WAITING") = ("INACTIVE" . t))
=             &n= bsp;           &nbs= p;      (done ("WAITING") ("INACTIVE"))
=             &n= bsp;           &nbs= p;      ("TODO" ("WAITING") ("CANCELLED") = ("INACTIVE"))
=             &n= bsp;           &nbs= p;      ("NEXT" ("WAITING") ("CANCELLED") = ("INACTIVE"))
=             &n= bsp;           &nbs= p;      ("NOW" ("WAITING") ("CANCELLED") = ("INACTIVE"))
=             &n= bsp;           &nbs= p;      ("SOMETIME" ("WAITING") = ("CANCELLED") ("INACTIVE"))
=             &n= bsp;           &nbs= p;      ("DONE" ("WAITING") ("CANCELLED") = ("INACTIVE")))
org-structure-template-alist '(("e" . "src = emacs-lisp") ("i" . "src ipython")
=             &n= bsp;           &nbs= p;      ("a" . "src applescript")
=             &n= bsp;           &nbs= p;      ("r" .
=             &n= bsp;           &nbs= p;       "src R :results output = :async t :session mysession :cache yes :colnames yes")
=             &n= bsp;           &nbs= p;      ("p" .
=             &n= bsp;           &nbs= p;       "src python :results output = graphics :async t :session mysession :exports both")
=             &n= bsp;           &nbs= p;      ("b" .
=             &n= bsp;           &nbs= p;       "src shell :results output = graphics :async t :session mysession")
=             &n= bsp;           &nbs= p;      ("s" .
=             &n= bsp;           &nbs= p;       "src sqlite :db /path/to/db = :colnames yes :async t :session mysession")
=             &n= bsp;           &nbs= p;      ("q" . "quote") ("v" . "verse") = ("V" . "verbatim")
=             &n= bsp;           &nbs= p;      ("c" . "center") ("C" . "comment") = ("l" . "src latex")
=             &n= bsp;           &nbs= p;      ("h" . "src html"))
= org-archive-file-header-format ""
org-cycle-hook = '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
=             &n= bsp;    org-optimize-window-after-visibility-change) org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "NOW(o)" = "SOMETIME(s)" "|" "DONE(d)")
=             &n= bsp;       (sequence "WAITING(w@/!)" = "INACTIVE(i)" "|" "CANCELLED(c@/!)"
=             &n= bsp;        "MEETING")
=             &n= bsp;       )
= org-speed-command-hook '(org-speed-command-activate = org-babel-speed-command-activate)
org-capture-mode-hook = '(#[0 "\300\301\302\303 !\"A\304\232\205\305 \207"
=             &n= bsp;           &nbs= p; [assoc name frame-parameters selected-frame "remember"
=             &n= bsp;           &nbs= p;  delete-other-windows]
=             &n= bsp;           &nbs= p; 4]
=             &n= bsp;           ) org-shiftleft-final-hook '(windmove-left)
= org-babel-tangle-lang-exts '(("apples" . "scpt") ("applescript" . = "scpt")
=             &n= bsp;           &nbs= p;    ("python" . "py") ("perl" . "pl") = ("emacs-lisp" . "el")
=             &n= bsp;           &nbs= p;    ("elisp" . "el"))
= org-refile-allow-creating-parent-nodes 'confirm
= org-refile-use-outline-path t
= org-font-lock-set-keywords-hook '(doom-org-custom-fontification)
org-confirm-shell-link-function 'yes-or-no-p
= org-stuck-projects '("" nil nil "")
org-link-parameters = '(("attachment" :follow org-attach-open-link :export
=             &n= bsp;          org-attach= -export-link :complete org-attach-complete-link)
=             &n= bsp;         ("eww" :follow = eww :store org-eww-store-link)
=             &n= bsp;         ("rmail" = :follow org-rmail-open :store org-rmail-store-link)
=             &n= bsp;         ("mhe" :follow = org-mhe-open :store org-mhe-store-link)
=             &n= bsp;         ("irc" :follow = org-irc-visit :store org-irc-store-link :export
=             &n= bsp;          org-irc-ex= port)
=             &n= bsp;         ("info" = :follow org-info-open :export org-info-export :store
=             &n= bsp;          org-info-s= tore-link)
=             &n= bsp;         ("gnus" = :follow org-gnus-open :store org-gnus-store-link)
=             &n= bsp;         ("docview" = :follow org-docview-open :export org-docview-export
=             &n= bsp;          :store = org-docview-store-link)
=             &n= bsp;         ("bibtex" = :follow org-bibtex-open :store org-bibtex-store-link)
=             &n= bsp;         ("bbdb" = :follow org-bbdb-open :export org-bbdb-export :complete
=             &n= bsp;          org-bbdb-c= omplete-link :store org-bbdb-store-link)
=             &n= bsp;         ("w3m" :store = org-w3m-store-link) ("id" :follow org-id-open)
=             &n= bsp;         ("file+sys") = ("file+emacs")
=             &n= bsp;         ("shell" = :follow org-link--open-shell)
=             &n= bsp;         ("news" = :follow
=             &n= bsp;          #[257 = "\301\300\302Q!\207" ["news" browse-url ":"] 5
=             &n= bsp;           &nbs= p;"\n\n(fn URL)"]
=             &n= bsp;          )
=             &n= bsp;         ("mailto" = :follow
=             &n= bsp;          #[257 = "\301\300\302Q!\207" ["mailto" browse-url ":"] 5
=             &n= bsp;           &nbs= p;"\n\n(fn URL)"]
=             &n= bsp;          )
=             &n= bsp;         ("https" = :follow
=             &n= bsp;          #[257 = "\301\300\302Q!\207" ["https" browse-url ":"] 5
=             &n= bsp;           &nbs= p;"\n\n(fn URL)"]
=             &n= bsp;          )
=             &n= bsp;         ("http" = :follow
=             &n= bsp;          #[257 = "\301\300\302Q!\207" ["http" browse-url ":"] 5
=             &n= bsp;           &nbs= p;"\n\n(fn URL)"]
=             &n= bsp;          )
=             &n= bsp;         ("ftp" = :follow
=             &n= bsp;          #[257 = "\301\300\302Q!\207" ["ftp" browse-url ":"] 5
=             &n= bsp;           &nbs= p;"\n\n(fn URL)"]
=             &n= bsp;          )
=             &n= bsp;         ("help" = :follow org-link--open-help)
=             &n= bsp;         ("file" = :complete org-link-complete-file)
=             &n= bsp;         ("elisp" = :follow org-link--open-elisp)
=             &n= bsp;         ("doi" :follow = org-link--open-doi))
org-agenda-file-regexp = "\\`[^.].*\\.org\\(\\.gpg\\)?\\'"
= org-link-elisp-confirm-function 'yes-or-no-p
= org-todo-keyword-faces '(("TODO" :foreground "red" :weight bold)
=             &n= bsp;           &nbs= p;("NEXT" :foreground "blue" :weight bold)
=             &n= bsp;           &nbs= p;("NOW" :foreground "orange" :weight bold)
=             &n= bsp;           &nbs= p;("SOMETIME" :foreground "deep sky blue" :weight bold)
=             &n= bsp;           &nbs= p;("DONE" :foreground "forest green" :weight bold)
=             &n= bsp;           &nbs= p;("WAITING" :foreground "orange" :weight bold)
=             &n= bsp;           &nbs= p;("INACTIVE" :foreground "magenta" :weight bold)
=             &n= bsp;           &nbs= p;("CANCELLED" :foreground "forest green" :weight bold)
=             &n= bsp;           &nbs= p;("MEETING" :foreground "forest green" :weight bold))
= org-capture-after-finalize-hook '(#[0
=             &n= bsp;           &nbs= p;           "\300 = \210\301\302\303\304 !\"A\305\232\205\306 \207"
=             &n= bsp;           &nbs= p;           [org-s= ave-all-org-buffers assoc name
=             &n= bsp;           &nbs= p;            = frame-parameters selected-frame "remember"
=             &n= bsp;           &nbs= p;            = delete-frame]
=             &n= bsp;           &nbs= p;           4]
=             &n= bsp;           &nbs= p;         )
= org-tab-before-tab-emulation-hook '(org-tempo-complete-tag)
= org-super-agenda-groups '((:name "Today:" :time-grid t)
=             &n= bsp;           &nbs= p; (:name "NOW Tasks:" :todo "NOW")
=             &n= bsp;           &nbs= p; (:name "Overdue Tasks:" :scheduled past)
=             &n= bsp;           &nbs= p; (:name "Today's Tasks:" :scheduled today)
=             &n= bsp;           &nbs= p; (:name "Future Tasks:" :scheduled future))
= org-startup-truncated nil
org-show-context-detail = '((agenda . local) (bookmark-jump . lineage)
=             &n= bsp;           &nbs= p; (isearch . lineage) (default . ancestors) (org-goto . local)
=             &n= bsp;           &nbs= p; (occur-tree . local) (link-search . local)
=             &n= bsp;           &nbs= p; (tags-tree . local))
org-src-window-setup = 'current-window
org-confirm-babel-evaluate = 'my-org-confirm-babel-evaluate
org-deadline-warning-days = 90
org-agenda-custom-commands '(("c" "Simple agenda view" = ((agenda "") (alltodo "")))
=             &n= bsp;           &nbs= p;    ("X" "Agenda" ((agenda "") (alltodo))
=             &n= bsp;           &nbs= p;     ((org-agenda-ndays 10) = (org-agenda-start-on-weekday nil)
=             &n= bsp;           &nbs= p;      (org-agenda-start-day "-1d")
=             &n= bsp;           &nbs= p;      (org-agenda-start-with-log-mode = t))
=             &n= bsp;           &nbs= p;     )
=             &n= bsp;           &nbs= p;    )
org-directory = =E2=80=9C/path/to/org/"
org-default-notes-file = =E2=80=9C/path/to/org/my_notes.org"
)


--
Ihor = Radchenko,
PhD,
Center for Advancing = Materials Performance from the Nanoscale (CAMP-nano)
State = Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong = University, Xi'an, China
Email: = yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg


= --Apple-Mail=_82FF4AA1-E87D-4DB9-A7DF-94B43CFD63CB--