* Add-Easy-Template-for-COMMENT-C to org.el
@ 2017-08-06 21:01 Grant Rettke
2017-08-07 9:47 ` Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: Grant Rettke @ 2017-08-06 21:01 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]
Good afternoon,
Attached is a patch to an Easy Template binding `C' for `COMMENT'.
The tests had the same 1 failure before and after I made the change
"1 unexpected results:
FAILED test-org/refile-get-targets"
I'm already in the FSF assignment book.
Sincerely,
Grant Rettke
[-- Attachment #2: 0001-Add-Easy-Template-for-COMMENT-C.patch --]
[-- Type: application/octet-stream, Size: 2291 bytes --]
From bae80a98a29e337be1f677cc40ca9d9a4219447e Mon Sep 17 00:00:00 2001
From: Grant Rettke <gcr@wisdomandwonder.com>
Date: Sun, 6 Aug 2017 15:46:26 -0500
Subject: [PATCH] Add Easy Template for COMMENT (C)
* lisp/org.el: (org-structure-template-alist): Added `COMMENT' block template
bound to `C'
* doc/org.texi: Add documentation for `COMMENT' Easy Template.
* contrib/orgmanual.org: Add documentation for `COMMENT' Easy Template.
---
contrib/orgmanual.org | 1 +
doc/org.texi | 1 +
lisp/org.el | 1 +
3 files changed, 3 insertions(+)
diff --git a/contrib/orgmanual.org b/contrib/orgmanual.org
index 21011cd96..6cc88a86e 100644
--- a/contrib/orgmanual.org
+++ b/contrib/orgmanual.org
@@ -15922,6 +15922,7 @@ The following template selectors are currently supported:
| {{{kbd(a)}}} | ~#+BEGIN_ASCII~ ...~ #+END_ASCII~ |
| {{{kbd(A)}}} | ~#+ASCII:~ |
| {{{kbd(c)}}} | ~#+BEGIN_CENTER~ ... ~#+END_CENTER~ |
+| {{{kbd(C)}}} | ~#+BEGIN_COMMENT~ ... ~#+END_COMMENT~ |
| {{{kbd(e)}}} | ~#+BEGIN_EXAMPLE~ ... ~#+END_EXAMPLE~ |
| {{{kbd(h)}}} | ~#+BEGIN_HTML~ ... ~#+END_HTML~ |
| {{{kbd(H)}}} | ~#+HTML:~ |
diff --git a/doc/org.texi b/doc/org.texi
index db28bfee2..464886972 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -17346,6 +17346,7 @@ Org comes with these pre-defined easy templates:
@item @kbd{q} @tab @code{#+BEGIN_QUOTE ... #+END_QUOTE}
@item @kbd{v} @tab @code{#+BEGIN_VERSE ... #+END_VERSE}
@item @kbd{c} @tab @code{#+BEGIN_CENTER ... #+END_CENTER}
+@item @kbd{C} @tab @code{#+BEGIN_COMMENT ... #+END_COMMENT}
@item @kbd{l} @tab @code{#+BEGIN_EXPORT latex ... #+END_EXPORT}
@item @kbd{L} @tab @code{#+LATEX:}
@item @kbd{h} @tab @code{#+BEGIN_EXPORT html ... #+END_EXPORT}
diff --git a/lisp/org.el b/lisp/org.el
index 9c9df70e2..00b3e6ebf 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12213,6 +12213,7 @@ keywords relative to each registered export back-end."
("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")
--
2.14.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: Add-Easy-Template-for-COMMENT-C to org.el
2017-08-06 21:01 Add-Easy-Template-for-COMMENT-C to org.el Grant Rettke
@ 2017-08-07 9:47 ` Nicolas Goaziou
2017-08-09 0:07 ` Grant Rettke
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2017-08-07 9:47 UTC (permalink / raw)
To: Grant Rettke; +Cc: emacs-orgmode@gnu.org
Hello,
Grant Rettke <gcr@wisdomandwonder.com> writes:
> Attached is a patch to an Easy Template binding `C' for `COMMENT'.
Thank you. Would you mind also adding an entry in ORG-NEWS about it?
> The tests had the same 1 failure before and after I made the change
> "1 unexpected results:
> FAILED test-org/refile-get-targets"
FWIW, I do not see the same. Have you set
`org-refile-target-verify-function' or some other refile-related
variable that would be different from `org-refile-use-outline-path'?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Add-Easy-Template-for-COMMENT-C to org.el
2017-08-07 9:47 ` Nicolas Goaziou
@ 2017-08-09 0:07 ` Grant Rettke
2017-08-10 10:47 ` Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: Grant Rettke @ 2017-08-09 0:07 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 724 bytes --]
Hi,
On Mon, Aug 7, 2017 at 4:47 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Grant Rettke <gcr@wisdomandwonder.com> writes:
>
>> Attached is a patch to an Easy Template binding `C' for `COMMENT'.
> Thank you. Would you mind also adding an entry in ORG-NEWS about it?
Done.
>> The tests had the same 1 failure before and after I made the change
>> "1 unexpected results:
>> FAILED test-org/refile-get-targets"
>
> FWIW, I do not see the same. Have you set
> `org-refile-target-verify-function' or some other refile-related
> variable that would be different from `org-refile-use-outline-path'?
Yes in my init file I changed a lot of those settings.
Does my init file get used during execution of the tests?
[-- Attachment #2: 0001-Add-Easy-Template-for-COMMENT-C.patch --]
[-- Type: application/octet-stream, Size: 2756 bytes --]
From 75e9c08dd856a3bb4aeabdc7b88c6d1809639315 Mon Sep 17 00:00:00 2001
From: Grant Rettke <gcr@wisdomandwonder.com>
Date: Tue, 8 Aug 2017 19:03:46 -0500
Subject: [PATCH] Add Easy Template for COMMENT (C)
* lisp/org.el: (org-structure-template-alist): Added `COMMENT' block template
bound to `C'
* doc/org.texi: Add documentation for `COMMENT' Easy Template.
* contrib/orgmanual.org: Add documentation for `COMMENT' Easy
Template.
* etc/ORG-NEWS: Added note for 9.1 release under Miscellaneous
---
contrib/orgmanual.org | 1 +
doc/org.texi | 1 +
etc/ORG-NEWS | 2 ++
lisp/org.el | 1 +
4 files changed, 5 insertions(+)
diff --git a/contrib/orgmanual.org b/contrib/orgmanual.org
index 21011cd96..6cc88a86e 100644
--- a/contrib/orgmanual.org
+++ b/contrib/orgmanual.org
@@ -15922,6 +15922,7 @@ The following template selectors are currently supported:
| {{{kbd(a)}}} | ~#+BEGIN_ASCII~ ...~ #+END_ASCII~ |
| {{{kbd(A)}}} | ~#+ASCII:~ |
| {{{kbd(c)}}} | ~#+BEGIN_CENTER~ ... ~#+END_CENTER~ |
+| {{{kbd(C)}}} | ~#+BEGIN_COMMENT~ ... ~#+END_COMMENT~ |
| {{{kbd(e)}}} | ~#+BEGIN_EXAMPLE~ ... ~#+END_EXAMPLE~ |
| {{{kbd(h)}}} | ~#+BEGIN_HTML~ ... ~#+END_HTML~ |
| {{{kbd(H)}}} | ~#+HTML:~ |
diff --git a/doc/org.texi b/doc/org.texi
index 3493ebb59..944c9c56e 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -17347,6 +17347,7 @@ Org comes with these pre-defined easy templates:
@item @kbd{q} @tab @code{#+BEGIN_QUOTE ... #+END_QUOTE}
@item @kbd{v} @tab @code{#+BEGIN_VERSE ... #+END_VERSE}
@item @kbd{c} @tab @code{#+BEGIN_CENTER ... #+END_CENTER}
+@item @kbd{C} @tab @code{#+BEGIN_COMMENT ... #+END_COMMENT}
@item @kbd{l} @tab @code{#+BEGIN_EXPORT latex ... #+END_EXPORT}
@item @kbd{L} @tab @code{#+LATEX:}
@item @kbd{h} @tab @code{#+BEGIN_EXPORT html ... #+END_EXPORT}
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 451c9c603..963141162 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -466,6 +466,8 @@ suitable as a default value.
URLs like =https://cool-blog.com/2017/05/20/cool-post/= are
covered by rewrite rules.
+*** Add (C) =COMMENT= support to ~org-structure-template-alist~
+
* Version 9.0
** Incompatible changes
diff --git a/lisp/org.el b/lisp/org.el
index 2d98ba814..4117ea3c4 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12186,6 +12186,7 @@ keywords relative to each registered export back-end."
("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")
--
2.14.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: Add-Easy-Template-for-COMMENT-C to org.el
2017-08-09 0:07 ` Grant Rettke
@ 2017-08-10 10:47 ` Nicolas Goaziou
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2017-08-10 10:47 UTC (permalink / raw)
To: Grant Rettke; +Cc: emacs-orgmode@gnu.org
Hello,
Grant Rettke <gcr@wisdomandwonder.com> writes:
> Does my init file get used during execution of the tests?
I didn't check, but I think so.
Anyway, we found the culprit: the test does not follow symlinks. It
should be fixed soon.
> Subject: [PATCH] Add Easy Template for COMMENT (C)
>
> * lisp/org.el: (org-structure-template-alist): Added `COMMENT' block template
> bound to `C'
>
> * doc/org.texi: Add documentation for `COMMENT' Easy Template.
>
> * contrib/orgmanual.org: Add documentation for `COMMENT' Easy
> Template.
>
> * etc/ORG-NEWS: Added note for 9.1 release under Miscellaneous
Applied. Thank you.
Regards,
--
Nicolas Goaziou 0x80A93738
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-10 10:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-06 21:01 Add-Easy-Template-for-COMMENT-C to org.el Grant Rettke
2017-08-07 9:47 ` Nicolas Goaziou
2017-08-09 0:07 ` Grant Rettke
2017-08-10 10:47 ` Nicolas Goaziou
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).