diff options
| author | Jonas Bernoulli | 2021-10-24 15:35:05 +0200 |
|---|---|---|
| committer | Jonas Bernoulli | 2021-10-24 21:18:24 +0200 |
| commit | 3b5de7f9916c974bf3b2ae3bca90b9812c951eed (patch) | |
| tree | 551e0dad5694d9b20a943809008575f210dba6ef | |
| parent | 3f763898aaafa547a2a991eed99d2694670b07e4 (diff) | |
| download | emacs-3b5de7f9916c974bf3b2ae3bca90b9812c951eed.tar.gz emacs-3b5de7f9916c974bf3b2ae3bca90b9812c951eed.zip | |
; lisp/transient.el: Revert some misguided stylistic fixes.
These aren't actual modes. Set checkdoc-symbol-words to avoid
false-positives. The first line of doc-strings of methods do
not need to end with period.
| -rw-r--r-- | lisp/transient.el | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/transient.el b/lisp/transient.el index c33a4c722a0..77bf41deba8 100644 --- a/lisp/transient.el +++ b/lisp/transient.el | |||
| @@ -1289,8 +1289,8 @@ variable instead.") | |||
| 1289 | 1289 | ||
| 1290 | (defvar transient--exitp nil "Whether to exit the transient.") | 1290 | (defvar transient--exitp nil "Whether to exit the transient.") |
| 1291 | (defvar transient--showp nil "Whether the transient is show in a popup buffer.") | 1291 | (defvar transient--showp nil "Whether the transient is show in a popup buffer.") |
| 1292 | (defvar transient--helpp nil "Whether `help-mode' is active.") | 1292 | (defvar transient--helpp nil "Whether help-mode is active.") |
| 1293 | (defvar transient--editp nil "Whether `edit-mode' is active.") | 1293 | (defvar transient--editp nil "Whether edit-mode is active.") |
| 1294 | 1294 | ||
| 1295 | (defvar transient--active-infix nil "The active infix awaiting user input.") | 1295 | (defvar transient--active-infix nil "The active infix awaiting user input.") |
| 1296 | 1296 | ||
| @@ -3119,19 +3119,19 @@ and its value is returned to the caller." | |||
| 3119 | desc))) | 3119 | desc))) |
| 3120 | 3120 | ||
| 3121 | (cl-defmethod transient-format-description ((obj transient-group)) | 3121 | (cl-defmethod transient-format-description ((obj transient-group)) |
| 3122 | "Format the description by calling the next method. | 3122 | "Format the description by calling the next method. If the result |
| 3123 | If the result doesn't use the `face' property at all, then apply | 3123 | doesn't use the `face' property at all, then apply the face |
| 3124 | the face `transient-heading' to the complete string." | 3124 | `transient-heading' to the complete string." |
| 3125 | (when-let ((desc (cl-call-next-method obj))) | 3125 | (when-let ((desc (cl-call-next-method obj))) |
| 3126 | (if (text-property-not-all 0 (length desc) 'face nil desc) | 3126 | (if (text-property-not-all 0 (length desc) 'face nil desc) |
| 3127 | desc | 3127 | desc |
| 3128 | (propertize desc 'face 'transient-heading)))) | 3128 | (propertize desc 'face 'transient-heading)))) |
| 3129 | 3129 | ||
| 3130 | (cl-defmethod transient-format-description :around ((obj transient-suffix)) | 3130 | (cl-defmethod transient-format-description :around ((obj transient-suffix)) |
| 3131 | "Format the description by calling the next method. | 3131 | "Format the description by calling the next method. If the result |
| 3132 | If the result is nil, then use \"(BUG: no description)\" as the | 3132 | is nil, then use \"(BUG: no description)\" as the description. |
| 3133 | description. If the OBJ's `key' is currently unreachable, then | 3133 | If the OBJ's `key' is currently unreachable, then apply the face |
| 3134 | apply the face `transient-unreachable' to the complete string." | 3134 | `transient-unreachable' to the complete string." |
| 3135 | (let ((desc (or (cl-call-next-method obj) | 3135 | (let ((desc (or (cl-call-next-method obj) |
| 3136 | (and (slot-boundp transient--prefix 'suffix-description) | 3136 | (and (slot-boundp transient--prefix 'suffix-description) |
| 3137 | (funcall (oref transient--prefix suffix-description) | 3137 | (funcall (oref transient--prefix suffix-description) |
| @@ -3672,5 +3672,6 @@ we stop there." | |||
| 3672 | (provide 'transient) | 3672 | (provide 'transient) |
| 3673 | ;; Local Variables: | 3673 | ;; Local Variables: |
| 3674 | ;; indent-tabs-mode: nil | 3674 | ;; indent-tabs-mode: nil |
| 3675 | ;; checkdoc-symbol-words: ("command-line" "edit-mode" "help-mode") | ||
| 3675 | ;; End: | 3676 | ;; End: |
| 3676 | ;;; transient.el ends here | 3677 | ;;; transient.el ends here |