update packages
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
;;; org-num.el --- Dynamic Headlines Numbering -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2018-2023 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2018-2025 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
||||
;; Keywords: outlines, hypermedia, calendar, wp
|
||||
;; Keywords: outlines, hypermedia, calendar, text
|
||||
|
||||
;; This file is part of GNU Emacs.
|
||||
|
||||
@@ -83,6 +83,7 @@
|
||||
|
||||
;;; Customization
|
||||
|
||||
;;;###autoload
|
||||
(defcustom org-num-face nil
|
||||
"Face to use for numbering.
|
||||
When nil, use the same face as the headline. This value is
|
||||
@@ -104,6 +105,7 @@ Any `face' text property on the returned string overrides
|
||||
:package-version '(Org . "9.3")
|
||||
:type 'function)
|
||||
|
||||
;;;###autoload
|
||||
(defcustom org-num-max-level nil
|
||||
"Level below which headlines are not numbered.
|
||||
When set to nil, all headlines are numbered."
|
||||
@@ -113,6 +115,7 @@ When set to nil, all headlines are numbered."
|
||||
(integer :tag "Stop numbering at level"))
|
||||
:safe (lambda (val) (or (null val) (wholenump val))))
|
||||
|
||||
;;;###autoload
|
||||
(defcustom org-num-skip-commented nil
|
||||
"Non-nil means commented sub-trees are not numbered."
|
||||
:group 'org-appearance
|
||||
@@ -120,6 +123,7 @@ When set to nil, all headlines are numbered."
|
||||
:type 'boolean
|
||||
:safe #'booleanp)
|
||||
|
||||
;;;###autoload
|
||||
(defcustom org-num-skip-footnotes nil
|
||||
"Non-nil means footnotes sections are not numbered."
|
||||
:group 'org-appearance
|
||||
@@ -127,6 +131,7 @@ When set to nil, all headlines are numbered."
|
||||
:type 'boolean
|
||||
:safe #'booleanp)
|
||||
|
||||
;;;###autoload
|
||||
(defcustom org-num-skip-tags nil
|
||||
"List of tags preventing the numbering of sub-trees.
|
||||
|
||||
@@ -139,8 +144,9 @@ control tag inheritance."
|
||||
:group 'org-appearance
|
||||
:package-version '(Org . "9.3")
|
||||
:type '(repeat (string :tag "Tag"))
|
||||
:safe (lambda (val) (and (listp val) (cl-every #'stringp val))))
|
||||
:safe #'org-list-of-strings-p)
|
||||
|
||||
;;;###autoload
|
||||
(defcustom org-num-skip-unnumbered nil
|
||||
"Non-nil means numbering obeys to UNNUMBERED property."
|
||||
:group 'org-appearance
|
||||
@@ -214,7 +220,7 @@ Assume point is at a headline."
|
||||
(let ((after-edit-functions
|
||||
(list (lambda (o &rest _) (org-num--invalidate-overlay o))))
|
||||
(o (save-excursion
|
||||
(beginning-of-line)
|
||||
(forward-line 0)
|
||||
(skip-chars-forward "*")
|
||||
(make-overlay (line-beginning-position) (1+ (point))))))
|
||||
(overlay-put o 'org-num t)
|
||||
@@ -267,7 +273,7 @@ otherwise."
|
||||
tags)
|
||||
t)
|
||||
(and org-num-skip-unnumbered
|
||||
(org-entry-get (point) "UNNUMBERED")
|
||||
(org-entry-get (point) "UNNUMBERED" 'selective)
|
||||
t))))
|
||||
|
||||
(defun org-num--current-numbering (level skip)
|
||||
|
||||
Reference in New Issue
Block a user