update packages
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
;;; org-entities.el --- Support for Special Entities -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2010-2023 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2010-2025 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: Carsten Dominik <carsten.dominik@gmail.com>,
|
||||
;; Ulf Stegemann <ulf at zeitform dot de>
|
||||
;; Keywords: outlines, calendar, wp
|
||||
;; Maintainer: Ihor Radchenko <yantar92 at posteo dot net>
|
||||
;; Keywords: outlines, calendar, text
|
||||
;; URL: https://orgmode.org
|
||||
;;
|
||||
;; This file is part of GNU Emacs.
|
||||
@@ -29,6 +30,7 @@
|
||||
|
||||
(require 'org-macs)
|
||||
(org-assert-version)
|
||||
(require 'seq) ; Emacs 27 does not preload seq.el; for `seq-every-p'.
|
||||
|
||||
(declare-function org-mode "org" ())
|
||||
(declare-function org-toggle-pretty-entities "org" ())
|
||||
@@ -41,14 +43,19 @@
|
||||
|
||||
(defun org-entities--user-safe-p (v)
|
||||
"Non-nil if V is a safe value for `org-entities-user'."
|
||||
(pcase v
|
||||
(`nil t)
|
||||
(`(,(and (pred stringp)
|
||||
(pred (string-match-p "\\`[a-zA-Z][a-zA-Z0-9]*\\'")))
|
||||
,(pred stringp) ,(pred booleanp) ,(pred stringp)
|
||||
,(pred stringp) ,(pred stringp) ,(pred stringp))
|
||||
t)
|
||||
(_ nil)))
|
||||
(cond
|
||||
((not v) t)
|
||||
((listp v)
|
||||
(seq-every-p
|
||||
(lambda (e)
|
||||
(pcase e
|
||||
(`(,(and (pred stringp)
|
||||
(pred (string-match-p "\\`[a-zA-Z][a-zA-Z0-9]*\\'")))
|
||||
,(pred stringp) ,(pred booleanp) ,(pred stringp)
|
||||
,(pred stringp) ,(pred stringp) ,(pred stringp))
|
||||
t)
|
||||
(_ nil)))
|
||||
v))))
|
||||
|
||||
(defcustom org-entities-user nil
|
||||
"User-defined entities used in Org to produce special characters.
|
||||
@@ -272,8 +279,10 @@ packages to be loaded, add these packages to `org-latex-packages-alist'."
|
||||
("vert" "\\vert{}" t "|" "|" "|" "|")
|
||||
("vbar" "|" nil "|" "|" "|" "|")
|
||||
("brvbar" "\\textbrokenbar{}" nil "¦" "|" "¦" "¦")
|
||||
("S" "\\S" nil "§" "paragraph" "§" "§")
|
||||
("sect" "\\S" nil "§" "paragraph" "§" "§")
|
||||
("S" "\\S" nil "§" "section" "§" "§")
|
||||
("sect" "\\S" nil "§" "section" "§" "§")
|
||||
("P" "\\P{}" nil "¶" "paragraph" "¶" "¶")
|
||||
("para" "\\P{}" nil "¶" "paragraph" "¶" "¶")
|
||||
("amp" "\\&" nil "&" "&" "&" "&")
|
||||
("lt" "\\textless{}" nil "<" "<" "<" "<")
|
||||
("gt" "\\textgreater{}" nil ">" ">" ">" ">")
|
||||
@@ -489,7 +498,6 @@ packages to be loaded, add these packages to `org-latex-packages-alist'."
|
||||
("checkmark" "\\checkmark" t "✓" "[checkmark]" "[checkmark]" "✓")
|
||||
|
||||
"** Miscellaneous (seldom used)"
|
||||
("para" "\\P{}" nil "¶" "[pilcrow]" "¶" "¶")
|
||||
("ordf" "\\textordfeminine{}" nil "ª" "_a_" "ª" "ª")
|
||||
("ordm" "\\textordmasculine{}" nil "º" "_o_" "º" "º")
|
||||
("cedil" "\\c{}" nil "¸" "[cedilla]" "¸" "¸")
|
||||
|
||||
Reference in New Issue
Block a user