diff options
| author | Helmut Eller | 2026-04-04 20:59:46 +0200 |
|---|---|---|
| committer | Helmut Eller | 2026-04-04 20:59:46 +0200 |
| commit | 6eec001187e8551f32b6498e6dc60cdc58c2e515 (patch) | |
| tree | 13233de9f0a05ef86a51500e8b1870b75ff20c81 /lisp/textmodes | |
| parent | e4ea27119e79012f9d651cb61d1115589d91ef39 (diff) | |
| parent | 01a9d78a7e4c7d7fa5b799e4fdc2caf77a012734 (diff) | |
| download | emacs-feature/igc3.tar.gz emacs-feature/igc3.zip | |
Merge branch 'master' into feature/igc3feature/igc3
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/css-mode.el | 4 | ||||
| -rw-r--r-- | lisp/textmodes/enriched.el | 10 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/markdown-ts-mode.el | 8 |
4 files changed, 20 insertions, 4 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index a56fc018e18..355555df090 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2006-2026 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2006-2026 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Stefan Monnier <monnier@iro.umontreal.ca> | 5 | ;; Author: Stefan Monnier <monnier@iro.umontreal.ca> |
| 6 | ;; Maintainer: Simen Heggestøyl <simenheg@gmail.com> | 6 | ;; Maintainer: Simen Heggestøyl <simenheg@runbox.com> |
| 7 | ;; Keywords: hypermedia | 7 | ;; Keywords: hypermedia |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| @@ -66,7 +66,7 @@ | |||
| 66 | 66 | ||
| 67 | (defconst css-pseudo-class-ids | 67 | (defconst css-pseudo-class-ids |
| 68 | '("active" "checked" "default" "disabled" "empty" "enabled" "first" | 68 | '("active" "checked" "default" "disabled" "empty" "enabled" "first" |
| 69 | "first-child" "first-of-type" "focus" "focus-within" "hover" | 69 | "first-child" "first-of-type" "focus" "focus-within" "has" "hover" |
| 70 | "in-range" "indeterminate" "invalid" "lang" "last-child" | 70 | "in-range" "indeterminate" "invalid" "lang" "last-child" |
| 71 | "last-of-type" "left" "link" "not" "nth-child" "nth-last-child" | 71 | "last-of-type" "left" "link" "not" "nth-child" "nth-last-child" |
| 72 | "nth-last-of-type" "nth-of-type" "only-child" "only-of-type" | 72 | "nth-last-of-type" "nth-of-type" "only-child" "only-of-type" |
diff --git a/lisp/textmodes/enriched.el b/lisp/textmodes/enriched.el index a269cae0c9b..c5ae2a15557 100644 --- a/lisp/textmodes/enriched.el +++ b/lisp/textmodes/enriched.el | |||
| @@ -390,6 +390,16 @@ which can be the value of the `face' text property." | |||
| 390 | (list (list "x-color" (cadr face)))) | 390 | (list (list "x-color" (cadr face)))) |
| 391 | ((and (listp face) (eq (car face) :background)) | 391 | ((and (listp face) (eq (car face) :background)) |
| 392 | (list (list "x-bg-color" (cadr face)))) | 392 | (list (list "x-bg-color" (cadr face)))) |
| 393 | ((and (listp face) (eq (car face) :underline)) | ||
| 394 | (list (list "underline"))) | ||
| 395 | ((and (listp face) | ||
| 396 | (eq (car face) :weight) | ||
| 397 | (eq (cadr face) 'bold)) | ||
| 398 | (list (list "bold"))) | ||
| 399 | ((and (listp face) | ||
| 400 | (eq (car face) :slant) | ||
| 401 | (memq (cadr face) '(italic oblique))) | ||
| 402 | (list (list "italic"))) | ||
| 393 | ((listp face) | 403 | ((listp face) |
| 394 | (apply #'append (mapcar #'enriched-face-ans face))) | 404 | (apply #'append (mapcar #'enriched-face-ans face))) |
| 395 | ((let* ((fg (face-attribute face :foreground)) | 405 | ((let* ((fg (face-attribute face :foreground)) |
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 9445b4a6b9a..c1ccdf2ec5f 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -1700,7 +1700,7 @@ and URL `https://rhodesmill.org/brandon/2012/one-sentence-per-line/'." | |||
| 1700 | (to (copy-marker (max from to) t)) | 1700 | (to (copy-marker (max from to) t)) |
| 1701 | pfx) | 1701 | pfx) |
| 1702 | (goto-char from) | 1702 | (goto-char from) |
| 1703 | (let ((fill-column (* 2 (point-max)))) ; Wide characters span up to two columns. | 1703 | (let ((fill-column most-positive-fixnum)) |
| 1704 | (setq pfx (or (save-excursion | 1704 | (setq pfx (or (save-excursion |
| 1705 | (fill-region-as-paragraph-default (point) | 1705 | (fill-region-as-paragraph-default (point) |
| 1706 | to | 1706 | to |
diff --git a/lisp/textmodes/markdown-ts-mode.el b/lisp/textmodes/markdown-ts-mode.el index cc3eaf03e15..657d6bc466d 100644 --- a/lisp/textmodes/markdown-ts-mode.el +++ b/lisp/textmodes/markdown-ts-mode.el | |||
| @@ -40,6 +40,7 @@ | |||
| 40 | (require 'treesit) | 40 | (require 'treesit) |
| 41 | (require 'subr-x) | 41 | (require 'subr-x) |
| 42 | (require 'outline) | 42 | (require 'outline) |
| 43 | (require 'seq) | ||
| 43 | 44 | ||
| 44 | (treesit-declare-unavailable-functions) | 45 | (treesit-declare-unavailable-functions) |
| 45 | 46 | ||
| @@ -296,7 +297,12 @@ the same features enabled in MODE." | |||
| 296 | (plist-get configs :simple-indent))) | 297 | (plist-get configs :simple-indent))) |
| 297 | (setq treesit-range-settings | 298 | (setq treesit-range-settings |
| 298 | (append treesit-range-settings | 299 | (append treesit-range-settings |
| 299 | (plist-get configs :range))) | 300 | ;; Filter out function queries, because they are |
| 301 | ;; usually some hack and might escape the code block. | ||
| 302 | ;; Case in point: c-ts-mode's range setting. | ||
| 303 | (seq-filter (lambda (setting) | ||
| 304 | (not (functionp (car setting)))) | ||
| 305 | (plist-get configs :range)))) | ||
| 300 | (setq-local indent-line-function #'treesit-indent) | 306 | (setq-local indent-line-function #'treesit-indent) |
| 301 | (setq-local indent-region-function #'treesit-indent-region))) | 307 | (setq-local indent-region-function #'treesit-indent-region))) |
| 302 | 308 | ||