diff options
author | Philip Kaludercic <philipk@posteo.net> | 2022-10-15 17:38:30 +0200 |
---|---|---|
committer | Philip Kaludercic <philipk@posteo.net> | 2022-10-15 17:38:30 +0200 |
commit | 01e45efcd44e92dd259283df0e62653c7c20e9cc (patch) | |
tree | 552c1a6ce7d52b897cf5f089d6c589921efbe9bd /lisp/textmodes | |
parent | 982c0e6c15535defcf6ac3c4d4169708c60efc18 (diff) | |
parent | 5933055a3e7387b0095f0df7876a208ab15f4f45 (diff) | |
download | emacs-01e45efcd44e92dd259283df0e62653c7c20e9cc.tar.gz emacs-01e45efcd44e92dd259283df0e62653c7c20e9cc.tar.bz2 emacs-01e45efcd44e92dd259283df0e62653c7c20e9cc.zip |
Merge branch 'master' into feature/package+vc
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/less-css-mode.el | 2 | ||||
-rw-r--r-- | lisp/textmodes/sgml-mode.el | 4 | ||||
-rw-r--r-- | lisp/textmodes/string-edit.el | 12 |
3 files changed, 10 insertions, 8 deletions
diff --git a/lisp/textmodes/less-css-mode.el b/lisp/textmodes/less-css-mode.el index 5d17b390f4d..bfb5566e896 100644 --- a/lisp/textmodes/less-css-mode.el +++ b/lisp/textmodes/less-css-mode.el @@ -24,7 +24,7 @@ ;;; Commentary: ;; This mode provides syntax highlighting for Less CSS files -;; (http://lesscss.org/), plus optional support for compilation of +;; (https://lesscss.org/), plus optional support for compilation of ;; .less files to .css files at the time they are saved: use ;; `less-css-compile-at-save' to enable this. ;; diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 7d691430ec6..7ce30cba8a4 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -268,7 +268,7 @@ Currently, only Latin-1 characters are supported.") ;; prefer tidy because (o)nsgmls is often built without --enable-http ;; which makes it next to useless (cond ((executable-find "tidy") - ;; tidy is available from http://tidy.sourceforge.net/ + ;; tidy is available from https://tidy.sourceforge.net/ "tidy --gnu-emacs yes -utf8 -e -q") ((executable-find "nsgmls") ;; nsgmls is a free SGML parser in the SP suite available from @@ -276,7 +276,7 @@ Currently, only Latin-1 characters are supported.") "nsgmls -s") ((executable-find "onsgmls") ;; onsgmls is the community version of `nsgmls' - ;; hosted on http://openjade.sourceforge.net/ + ;; hosted on https://openjade.sourceforge.net/ "onsgmls -s") (t "Install (o)nsgmls, tidy, or some other SGML validator, and set `sgml-validate-command'")) "The command to validate an SGML document. diff --git a/lisp/textmodes/string-edit.el b/lisp/textmodes/string-edit.el index 53850674ac0..3270050ca4a 100644 --- a/lisp/textmodes/string-edit.el +++ b/lisp/textmodes/string-edit.el @@ -46,7 +46,9 @@ called with no parameters. PROMPT will be inserted at the start of the buffer, but won't be included in the resulting string. If PROMPT is nil, no help text -will be inserted." +will be inserted. + +Also see `read-string-from-buffer'." (with-current-buffer (generate-new-buffer "*edit string*") (when prompt (let ((inhibit-read-only t)) @@ -88,7 +90,9 @@ The user finishes editing with \\<string-edit-mode-map>\\[string-edit-done], or PROMPT will be inserted at the start of the buffer, but won't be included in the resulting string. If nil, no prompt will be -inserted in the buffer." +inserted in the buffer. + +Also see `string-edit'." (string-edit prompt string @@ -115,9 +119,7 @@ This will kill the current buffer." (interactive) (goto-char (point-min)) ;; Skip past the help text. - (when-let ((match (text-property-search-forward - 'string-edit--prompt nil t))) - (goto-char (prop-match-beginning match))) + (text-property-search-forward 'string-edit--prompt) (let ((string (buffer-substring (point) (point-max))) (callback string-edit--success-callback)) (quit-window 'kill) |