[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/adoc-mode 656e7670c5 099/199: fixed type: denote -> demote
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/adoc-mode 656e7670c5 099/199: fixed type: denote -> demote |
Date: |
Sun, 3 Sep 2023 06:59:37 -0400 (EDT) |
branch: elpa/adoc-mode
commit 656e7670c5dd9fee54dfe466cf0b7006f50e0355
Author: sensorflo <sensorflo@gmail.com>
Commit: sensorflo <sensorflo@gmail.com>
fixed type: denote -> demote
---
adoc-mode-test.el | 12 ++++++------
adoc-mode.el | 24 ++++++++++++------------
2 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/adoc-mode-test.el b/adoc-mode-test.el
index 4e93454f9b..16966854bf 100644
--- a/adoc-mode-test.el
+++ b/adoc-mode-test.el
@@ -610,12 +610,12 @@ removed before TRANSFORM is evaluated.
(adoctest-trans "foo!\n+++!" "foo\n===" '(adoc-promote-title 1))
(adoctest-trans "foo!\n---!" "foo\n^^^" '(adoc-promote-title 2)))
-;; since it's a whitebox test we know denote and promote only differ by inverse
-;; arg. So denote doesn't need to be throuhly tested again
-(ert-deftest adoctest-test-denote-title ()
- (adoctest-trans "= foo" "===== foo" '(adoc-denote-title 1))
- (adoctest-trans "= foo =" "===== foo =====" '(adoc-denote-title 1))
- (adoctest-trans "foo!\n===!" "foo\n+++" '(adoc-denote-title 1)))
+;; since it's a whitebox test we know demote and promote only differ by inverse
+;; arg. So demote doesn't need to be throuhly tested again
+(ert-deftest adoctest-test-demote-title ()
+ (adoctest-trans "= foo" "===== foo" '(adoc-demote-title 1))
+ (adoctest-trans "= foo =" "===== foo =====" '(adoc-demote-title 1))
+ (adoctest-trans "foo!\n===!" "foo\n+++" '(adoc-demote-title 1)))
;; todo: test after transition point is still on title lines
(ert-deftest adoctest-test-toggle-title-type ()
diff --git a/adoc-mode.el b/adoc-mode.el
index f824b6f0b5..2d1d5d54d9 100644
--- a/adoc-mode.el
+++ b/adoc-mode.el
@@ -114,7 +114,7 @@
;;
;; - sophisticated highlighting
;;
-;; - promote / denote title
+;; - promote / demote title
;;
;; - toggle title type between one line title and two line title
;;
@@ -129,7 +129,7 @@
;;
;; The next features I plan to implement
;;
-;; - Denote / promote for list items
+;; - Demote / promote for list items
;; - Outline support also for two line titles
;; - Correctly highlighting backslash escapes
;;
@@ -153,7 +153,7 @@
;; line spawns should be covered - replace all .*? by .*?\\(?:\n.*?\\)??
;; - backslash escapes are seldom highlighted correctly
;; - Other common Emacs functionality/features
-;; - denote/promote/create/delete titles/list-items. Also put emphasis on a
+;; - demote/promote/create/delete titles/list-items. Also put emphasis on a
;; convenient simple user interface.
;; - imenu / hideshow
;; - outline mode shall support two line titles
@@ -478,7 +478,7 @@ To become a customizable variable when regexps for list
items become customizabl
(defvar adoc-mode-map
(let ((map (make-sparse-keymap)))
- (define-key map "\C-c\C-d" 'adoc-denote)
+ (define-key map "\C-c\C-d" 'adoc-demote)
(define-key map "\C-c\C-p" 'adoc-promote)
(define-key map "\C-c\C-t" 'adoc-toggle-title-type)
(define-key map "\C-c\C-g" 'adoc-goto-ref-label)
@@ -2145,7 +2145,7 @@ considered to be meta characters."
"Promotes the structure at point ARG levels.
When ARG is nil (i.e. when no prefix arg is given), it defaults
-to 1. When ARG is negative, level is denoted that many levels.
+to 1. When ARG is negative, level is demoted that many levels.
The intention is that the structure can be a title or a list
element or anything else which has a 'level'. However currently
@@ -2153,23 +2153,23 @@ it works only for titles."
(interactive "p")
(adoc-promote-title arg))
-(defun adoc-denote (&optional arg)
- "Denotes the structure at point ARG levels.
+(defun adoc-demote (&optional arg)
+ "Demotes the structure at point ARG levels.
Analogous to `adoc-promote', see there."
(interactive "p")
- (adoc-denote-title arg))
+ (adoc-demote-title arg))
(defun adoc-promote-title (&optional arg)
"Promotes the title at point ARG levels.
When ARG is nil (i.e. when no prefix arg is given), it defaults
-to 1. When ARG is negative, level is denoted that many levels. If
+to 1. When ARG is negative, level is demoted that many levels. If
ARG is 0, see `adoc-adjust-title-del'."
(interactive "p")
(adoc-modify-title arg))
-(defun adoc-denote-title (&optional arg)
+(defun adoc-demote-title (&optional arg)
"Completely analgous to `adoc-promote-title'."
(interactive "p")
(adoc-promote-title (- arg)))
@@ -2222,7 +2222,7 @@ new customization demands."
adoc-mode-menu adoc-mode-map "Menu for adoc mode"
`("AsciiDoc"
["Promote" adoc-promote]
- ["Denote" adoc-denote]
+ ["Demote" adoc-demote]
["Toggle title type" adoc-toggle-title-type]
["Adjust title underline" adoc-adjust-title-del]
["Goto anchor" adoc-goto-ref-label]
@@ -2713,7 +2713,7 @@ NEW-LEVEL-REL and NEW-LEVEL-ABS are non-nil,
NEW-LEVEL-REL takes
precedence. When both are nil, level is not affected.
When ARG is nil, it defaults to 1. When ARG is negative, level is
-denoted that many levels. If ARG is 0, see `adoc-adjust-title-del'.
+demoted that many levels. If ARG is 0, see `adoc-adjust-title-del'.
When NEW-TYPE is nil, the title type is unaffected. If NEW-TYPE
is t, the type is toggled. If it's 1 or 2, the new type is one
- [nongnu] elpa/adoc-mode 893daa395c 152/199: Move the syntax-table out of the mode definition, (continued)
- [nongnu] elpa/adoc-mode 893daa395c 152/199: Move the syntax-table out of the mode definition, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 2c4847d843 160/199: Tweak a couple of docstrings, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode c3d738dd7d 169/199: Fix a typo, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 109bdc5d13 180/199: Fix a typo and some whitespace issues, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 9e7af55e7e 183/199: Fix a typo, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode b0702bdeb8 187/199: [Fix #33] Address noticeable lag when typing in larger code blocks (#35), ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 526e058665 029/199: added another list item test, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode a0ddf0f02d 034/199: added tests for images, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 1a4e93ec7c 035/199: enhanded general block macro incl. tests, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode fcabdc3a7e 037/199: added general inline macro, began reworking anchors, touched image, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 656e7670c5 099/199: fixed type: denote -> demote,
ELPA Syncer <=
- [nongnu] elpa/adoc-mode 2cfd433622 030/199: extended quotes tests, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode a61e7cd749 063/199: added AsciiDoc menu & key map, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 22bd99a194 075/199: test: Use with-temp-buffer instead home-brewed solution, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode a3d77b0c15 082/199: bumped copyright year, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode a8142043e5 094/199: adoc customization group comment puts more emphasis on that most faces belong to markup-faces, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 1206fe7409 103/199: adoc-re-inline-macro can now also match in the middle of a word, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 0ac95247d4 116/199: refactoring so regexp's for one- and two line titles have group 2 for title's text, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 411eb48ce9 120/199: Sensorflo/pr35 (#3), ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 69569ee920 105/199: improved fontifying for footnoteref, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 6dc82593f0 162/199: Document the mode's history, ELPA Syncer, 2023/09/03