Merge from origin/emacs-28
6f282b31ad
Update to Org 9.5.2-13-gdd64866636231b2c
; * lisp/international/latin1-disp.el: Update commentary.f22e9ba9ac
Fix regression in Occur Edit mode
This commit is contained in:
commit
3652170d7d
8 changed files with 30 additions and 20 deletions
|
@ -1,4 +1,4 @@
|
|||
;;; latin1-disp.el --- display tables for other ISO 8859 on Latin-1 terminals -*- lexical-binding: t; -*-
|
||||
;;; latin1-disp.el --- display tables for non-ASCII on Latin-1 terminals -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2000-2022 Free Software Foundation, Inc.
|
||||
|
||||
|
@ -22,18 +22,23 @@
|
|||
|
||||
;;; Commentary:
|
||||
|
||||
;; This package sets up display of ISO 8859-n for n>1 by substituting
|
||||
;; Latin-1 characters and sequences of them for characters which can't
|
||||
;; be displayed, either because we're on a tty or because we don't
|
||||
;; have the relevant window system fonts available. For instance,
|
||||
;; Latin-9 is very similar to Latin-1, so we can display most Latin-9
|
||||
;; characters using the Latin-1 characters at the same code point and
|
||||
;; fall back on more-or-less mnemonic ASCII sequences for the rest.
|
||||
;; This package sets up display of many non-ASCII characters by
|
||||
;; substituting ASCII and Latin-1 characters and sequences of them for
|
||||
;; characters which can't be displayed, either because we're on a tty
|
||||
;; or because we don't have the relevant window system fonts
|
||||
;; available. For instance, Latin-9 is very similar to Latin-1, so we
|
||||
;; can display most Latin-9 characters using the Latin-1 characters at
|
||||
;; the same code point and fall back on more-or-less mnemonic ASCII
|
||||
;; sequences for the rest.
|
||||
|
||||
;; For the Latin charsets the ASCII sequences are mostly consistent
|
||||
;; with the Quail prefix input sequences. Latin-4 uses the Quail
|
||||
;; postfix sequences since a prefix method isn't defined for Latin-4.
|
||||
|
||||
;; Non-Latin non-ASCII characters are generally displayed as ASCII
|
||||
;; strings remotely reminiscent of the original characters, as best as
|
||||
;; possible. See `latin1-display-ucs-per-lynx'.
|
||||
|
||||
;; [A different approach is taken in the DOS display tables in
|
||||
;; term/internal.el, and the relevant ASCII sequences from there are
|
||||
;; available as an alternative; see `latin1-display-mnemonic'. Only
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
(declare-function org-in-commented-heading-p "org" (&optional no-inheritance))
|
||||
(declare-function org-in-archived-heading-p "org" (&optional no-inheritance))
|
||||
(declare-function outline-previous-heading "outline" ())
|
||||
(defvar org-id-link-to-org-use-id nil) ; Dynamically scoped
|
||||
(defvar org-id-link-to-org-use-id) ; Dynamically scoped
|
||||
|
||||
(defcustom org-babel-tangle-lang-exts
|
||||
'(("emacs-lisp" . "el")
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
|
||||
(defvar org-agenda-overriding-header)
|
||||
(defvar org-agenda-search-view-always-boolean)
|
||||
(defvar org-bibtex-description nil) ; dynamically scoped from org.el
|
||||
(defvar org-bibtex-description nil)
|
||||
(defvar org-id-locations)
|
||||
(defvar org-property-end-re)
|
||||
(defvar org-special-properties)
|
||||
|
|
|
@ -99,8 +99,8 @@
|
|||
|
||||
;; Defined somewhere in this file, but used before definition.
|
||||
(defvar org-agenda-buffer-name "*Org Agenda*")
|
||||
(defvar org-agenda-overriding-header nil)
|
||||
(defvar org-agenda-title-append nil)
|
||||
(defvar org-agenda-overriding-header)
|
||||
;; (with-no-warnings (defvar entry)) ;; unprefixed, from calendar.el
|
||||
;; (with-no-warnings (defvar date)) ;; unprefixed, from calendar.el
|
||||
(defvar original-date) ; dynamically scoped, calendar.el does scope this
|
||||
|
@ -2158,7 +2158,7 @@ string that it returns."
|
|||
(org-remap org-agenda-mode-map 'move-end-of-line 'org-agenda-end-of-line)
|
||||
|
||||
(defvar org-agenda-menu) ; defined later in this file.
|
||||
(defvar org-agenda-restrict nil) ; defined later in this file.
|
||||
(defvar org-agenda-restrict nil)
|
||||
(defvar org-agenda-follow-mode nil)
|
||||
(defvar org-agenda-entry-text-mode nil)
|
||||
(defvar org-agenda-clockreport-mode nil)
|
||||
|
@ -7288,7 +7288,7 @@ When TYPE is \"scheduled\", \"deadline\", \"timestamp\" or
|
|||
\"timestamp_ia\", compare within each of these type. When TYPE
|
||||
is the empty string, compare all timestamps without respect of
|
||||
their type."
|
||||
(let* ((def (and (not org-agenda-sort-notime-is-late) -1))
|
||||
(let* ((def (if org-agenda-sort-notime-is-late 99999999 -1))
|
||||
(ta (or (and (string-match type (or (get-text-property 1 'type a) ""))
|
||||
(get-text-property 1 'ts-date a))
|
||||
def))
|
||||
|
|
|
@ -2505,7 +2505,7 @@ the currently selected interval size."
|
|||
(when step
|
||||
;; Write many tables, in steps
|
||||
(unless (or block (and ts te))
|
||||
(user-error "Clocktable `:step' can only be used with `:block' or `:tstart, :end'"))
|
||||
(user-error "Clocktable `:step' can only be used with `:block' or `:tstart', `:tend'"))
|
||||
(org-clocktable-steps params)
|
||||
(throw 'exit nil))
|
||||
|
||||
|
|
|
@ -1048,9 +1048,9 @@ ELEMENT is the element at point."
|
|||
(cl-case (org-element-type object)
|
||||
;; Prevent checks in links due to keybinding conflict with
|
||||
;; Flyspell.
|
||||
((code entity export-snippet inline-babel-call
|
||||
inline-src-block line-break latex-fragment link macro
|
||||
statistics-cookie target timestamp verbatim)
|
||||
((citation citation-reference code entity export-snippet inline-babel-call
|
||||
inline-src-block line-break latex-fragment link macro
|
||||
statistics-cookie target timestamp verbatim)
|
||||
nil)
|
||||
(footnote-reference
|
||||
;; Only in inline footnotes, within the definition.
|
||||
|
|
|
@ -11,7 +11,7 @@ Inserted by installing Org mode or when a release is made."
|
|||
(defun org-git-version ()
|
||||
"The Git version of Org mode.
|
||||
Inserted by installing Org or when a release is made."
|
||||
(let ((org-git-version "release_9.5.2-9-g7ba24c"))
|
||||
(let ((org-git-version "release_9.5.2-13-gdd6486"))
|
||||
org-git-version))
|
||||
|
||||
(provide 'org-version)
|
||||
|
|
|
@ -1413,10 +1413,15 @@ To return to ordinary Occur mode, use \\[occur-cease-edit]."
|
|||
(length s1)))))
|
||||
(prefix-len (funcall common-prefix buf-str text))
|
||||
(suffix-len (funcall common-prefix
|
||||
(reverse buf-str) (reverse text))))
|
||||
(reverse (substring
|
||||
buf-str prefix-len))
|
||||
(reverse (substring
|
||||
text prefix-len)))))
|
||||
(setq beg-pos (+ beg-pos prefix-len))
|
||||
(setq end-pos (- end-pos suffix-len))
|
||||
(setq text (substring text prefix-len (- suffix-len)))
|
||||
(setq text (substring text prefix-len
|
||||
(and (not (zerop suffix-len))
|
||||
(- suffix-len))))
|
||||
(delete-region beg-pos end-pos)
|
||||
(goto-char beg-pos)
|
||||
(insert text)))
|
||||
|
|
Loading…
Add table
Reference in a new issue