aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/css-mode.el2
-rw-r--r--lisp/textmodes/less-css-mode.el7
-rw-r--r--lisp/textmodes/tex-mode.el9
-rw-r--r--lisp/textmodes/tildify.el2
4 files changed, 12 insertions, 8 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 93ca36b08aa..96c3f6b9395 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -1037,7 +1037,7 @@ This recognizes CSS-color-4 extensions."
1037STR is the incoming CSS hex color. 1037STR is the incoming CSS hex color.
1038This function simply drops any transparency." 1038This function simply drops any transparency."
1039 ;; Either #RGB or #RRGGBB, drop the "A" or "AA". 1039 ;; Either #RGB or #RRGGBB, drop the "A" or "AA".
1040 (if (> (length str) 4) 1040 (if (> (length str) 5)
1041 (substring str 0 7) 1041 (substring str 0 7)
1042 (substring str 0 4))) 1042 (substring str 0 4)))
1043 1043
diff --git a/lisp/textmodes/less-css-mode.el b/lisp/textmodes/less-css-mode.el
index d31414e3a4b..c2846ac926b 100644
--- a/lisp/textmodes/less-css-mode.el
+++ b/lisp/textmodes/less-css-mode.el
@@ -78,6 +78,7 @@
78 78
79(defgroup less-css nil 79(defgroup less-css nil
80 "Less CSS mode." 80 "Less CSS mode."
81 :version "26.1"
81 :prefix "less-css-" 82 :prefix "less-css-"
82 :group 'css) 83 :group 'css)
83 84
@@ -105,7 +106,7 @@ Use \"-x\" to minify output."
105This path is expanded relative to the directory of the Less file 106This path is expanded relative to the directory of the Less file
106using `expand-file-name', so both relative and absolute paths 107using `expand-file-name', so both relative and absolute paths
107will work as expected." 108will work as expected."
108 :type 'directory) 109 :type '(choice (const :tag "Same as Less file" nil) directory))
109;;;###autoload 110;;;###autoload
110(put 'less-css-output-directory 'safe-local-variable 'stringp) 111(put 'less-css-output-directory 'safe-local-variable 'stringp)
111 112
@@ -115,7 +116,7 @@ This can be also be set to a full path, or a relative path. If
115the path is relative, it will be relative to the value of 116the path is relative, it will be relative to the value of
116`less-css-output-dir', if set, or the current directory by 117`less-css-output-dir', if set, or the current directory by
117default." 118default."
118 :type 'file) 119 :type '(choice (const :tag "Default" nil) file))
119(make-variable-buffer-local 'less-css-output-file-name) 120(make-variable-buffer-local 'less-css-output-file-name)
120 121
121(defcustom less-css-input-file-name nil 122(defcustom less-css-input-file-name nil
@@ -131,7 +132,7 @@ variables.
131This can be also be set to a full path, or a relative path. If 132This can be also be set to a full path, or a relative path. If
132the path is relative, it will be relative to the current 133the path is relative, it will be relative to the current
133directory by default." 134directory by default."
134 :type 'file) 135 :type '(choice (const nil) file))
135;;;###autoload 136;;;###autoload
136(put 'less-css-input-file-name 'safe-local-variable 'stringp) 137(put 'less-css-input-file-name 'safe-local-variable 'stringp)
137(make-variable-buffer-local 'less-css-input-file-name) 138(make-variable-buffer-local 'less-css-input-file-name)
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 5c585ea46ca..432a779b4a8 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -266,12 +266,14 @@ measured relative to that of the normal text."
266 266
267(defcustom tex-chktex-program "chktex" 267(defcustom tex-chktex-program "chktex"
268 "ChkTeX executable to use for linting TeX files." 268 "ChkTeX executable to use for linting TeX files."
269 :version "26.1"
269 :type 'string 270 :type 'string
270 :link '(url-link "man:chktex(1)") 271 :link '(url-link "man:chktex(1)")
271 :group 'tex-flymake) 272 :group 'tex-flymake)
272 273
273(defcustom tex-chktex-extra-flags nil 274(defcustom tex-chktex-extra-flags nil
274 "Extra command line flags for `tex-chktex-program'." 275 "Extra command line flags for `tex-chktex-program'."
276 :version "26.1"
275 :type '(repeat string) 277 :type '(repeat string)
276 :group 'tex-flymake) 278 :group 'tex-flymake)
277 279
@@ -1012,9 +1014,10 @@ Inherits `shell-mode-map' with a few additions.")
1012;; This is a) ugly, and b) cheating, but this was the last 1014;; This is a) ugly, and b) cheating, but this was the last
1013;; remaining warning from byte-compiling all of Emacs... 1015;; remaining warning from byte-compiling all of Emacs...
1014(eval-when-compile 1016(eval-when-compile
1015 (setq byte-compile-function-environment 1017 (if (boundp 'byte-compile-function-environment)
1016 (delq (assq 'tex-mode byte-compile-function-environment) 1018 (setq byte-compile-function-environment
1017 byte-compile-function-environment))) 1019 (delq (assq 'tex-mode byte-compile-function-environment)
1020 byte-compile-function-environment))))
1018 1021
1019;;;###autoload 1022;;;###autoload
1020(defun tex-mode () 1023(defun tex-mode ()
diff --git a/lisp/textmodes/tildify.el b/lisp/textmodes/tildify.el
index 0d7b15dfc6b..f25dfbcc75d 100644
--- a/lisp/textmodes/tildify.el
+++ b/lisp/textmodes/tildify.el
@@ -350,7 +350,7 @@ If ASK is nil, perform replace without asking user for confirmation.
350 350
351Returns (count . response) cons where count is number of string 351Returns (count . response) cons where count is number of string
352replacements done and response is one of symbols: t (all right), nil 352replacements done and response is one of symbols: t (all right), nil
353(quit), force (replace without further questions)." 353\(quit), force (replace without further questions)."
354 (save-excursion 354 (save-excursion
355 (goto-char beg) 355 (goto-char beg)
356 (let ((regexp tildify-pattern) 356 (let ((regexp tildify-pattern)