From: gerard.vermeulen@posteo.net
To: Emacs orgmode <emacs-orgmode@gnu.org>,
Ihor Radchenko <yantar92@posteo.net>
Subject: [PATCH] org: fix symbol names and grammar in docstrings
Date: Sat, 01 Jul 2023 05:26:09 +0000 [thread overview]
Message-ID: <b98daf2e39dbf5363787371388f85901@posteo.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
Hi,
The docstrings of `org-outline-level' and `org-current-level' contain
the undefined symbol name `org-odd-levels'.
The same lines of the docstrings contain also wording like
"Unlike to `org-current-level'" and "Unlike to `org-outline-level'"
where "to" should not be there.
This patch changes the symbol names to `org-odd-levels-only' and
removes the "to" typos.
Regards -- Gerard
[-- Attachment #2: 0001-org-fix-symbol-names-and-grammar-in-docstrings.patch --]
[-- Type: application/octet-stream, Size: 1485 bytes --]
From 5bfbb4d8427b4dbe742eae9058dc111c669955df Mon Sep 17 00:00:00 2001
From: Gerard Vermeulen <gerard.vermeulen@posteo.net>
Date: Sat, 1 Jul 2023 06:49:26 +0200
Subject: [PATCH] org: fix symbol names and grammar in docstrings
* lisp/org.el (org-outline-level):
* lisp/org.el (org-current-level): change undefined symbol names
to `org-odd-levels-only' and change "Unlike to" to "Unlike".
---
lisp/org.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index fdb920864..cca7e500b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5711,7 +5711,7 @@ highlighting was done, nil otherwise."
If this is called at a normal headline, the level is the number
of stars. Use `org-reduced-level' to remove the effect of
-`org-odd-levels'. Unlike to `org-current-level', this function
+`org-odd-levels-only'. Unlike `org-current-level', this function
takes into consideration inlinetasks."
(org-with-wide-buffer
(end-of-line)
@@ -6645,7 +6645,7 @@ headings in the region."
"Return the level of the current entry, or nil if before the first headline.
The level is the number of stars at the beginning of the
headline. Use `org-reduced-level' to remove the effect of
-`org-odd-levels'. Unlike to `org-outline-level', this function
+`org-odd-levels-only'. Unlike `org-outline-level', this function
ignores inlinetasks."
(let ((level (org-with-limited-levels (org-outline-level))))
(and (> level 0) level)))
--
2.41.0
next reply other threads:[~2023-07-01 5:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-01 5:26 gerard.vermeulen [this message]
2023-07-01 10:27 ` [PATCH] org: fix symbol names and grammar in docstrings Ihor Radchenko
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=b98daf2e39dbf5363787371388f85901@posteo.net \
--to=gerard.vermeulen@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/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).