[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/doc-show-inline 2ddb1c70f9 02/12: Display blank space betw
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/doc-show-inline 2ddb1c70f9 02/12: Display blank space between the symbol and the comment |
Date: |
Thu, 7 Jul 2022 11:58:56 -0400 (EDT) |
branch: elpa/doc-show-inline
commit 2ddb1c70f9f3b430f7b3e50fec1e3ef28ef3bbd6
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Display blank space between the symbol and the comment
This helps to visualize comments that may represent categories or
descriptions of a group of symbols.
---
changelog.rst | 10 ++++++++++
doc-show-inline.el | 13 +++++--------
2 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/changelog.rst b/changelog.rst
new file mode 100644
index 0000000000..22896af405
--- /dev/null
+++ b/changelog.rst
@@ -0,0 +1,10 @@
+
+##########
+Change Log
+##########
+
+
+- 2021-12-08
+ - Keep blank space between the symbol and comments.
+
+ This helps to visualize comments that may represent categories or
descriptions of a group of symbols.
diff --git a/doc-show-inline.el b/doc-show-inline.el
index 4bf8597124..866238b365 100644
--- a/doc-show-inline.el
+++ b/doc-show-inline.el
@@ -277,16 +277,13 @@ the point should not be moved by this function."
(defun doc-show-inline-extract-doc-default (sym)
"Extract doc-string for SYM."
- (let
- (
- ;; There may be blank lines between the comment beginning.
- (pos-end
- (progn
- (beginning-of-line)
- (skip-chars-backward " \t\n" (point-min))
- (point))))
+ ;; There may be blank lines between the comment beginning,
+ ;; include these since it's useful to display the the space to know if the
comment
+ ;; was directly above the text or not.
+ (let ((pos-end (max (point-min) (1- (line-beginning-position)))))
;; Move one character into the comment.
+ (goto-char pos-end)
(cond
((forward-comment -1)
(let
- [nongnu] branch elpa/doc-show-inline created (now 0cceb39df3), ELPA Syncer, 2022/07/07
- [nongnu] elpa/doc-show-inline 2ddb1c70f9 02/12: Display blank space between the symbol and the comment,
ELPA Syncer <=
- [nongnu] elpa/doc-show-inline 8b457d565d 06/12: Fix an error with C/C++ raising an error during syntax highlighting, ELPA Syncer, 2022/07/07
- [nongnu] elpa/doc-show-inline 5705f8d6f5 09/12: Cleanup: use brief SPDX license, ELPA Syncer, 2022/07/07
- [nongnu] elpa/doc-show-inline 0cceb39df3 12/12: Change URL to codeberg, ELPA Syncer, 2022/07/07
- [nongnu] elpa/doc-show-inline 2757164831 04/12: Fix for displaying indented doc-strings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/doc-show-inline 6bfea44e0b 08/12: Cleanup: minor improvement to error message, ELPA Syncer, 2022/07/07
- [nongnu] elpa/doc-show-inline 11fc50a13c 03/12: Demote errors, ELPA Syncer, 2022/07/07
- [nongnu] elpa/doc-show-inline daa99f0773 07/12: Fix repeat not being set for the initial timer, ELPA Syncer, 2022/07/07
- [nongnu] elpa/doc-show-inline 1c5837d2a6 01/12: Initial working version., ELPA Syncer, 2022/07/07
- [nongnu] elpa/doc-show-inline 3a4eee3ef3 05/12: Add doc-show-inline-exclude-regexp, ELPA Syncer, 2022/07/07
- [nongnu] elpa/doc-show-inline 4295439062 10/12: Add doc-show-inline-exclude-blank-lines option, ELPA Syncer, 2022/07/07