[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup 7817f1e 089/184: Add 'nostrip' parameter to 'popup-t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup 7817f1e 089/184: Add 'nostrip' parameter to 'popup-tip'(#42) |
Date: |
Wed, 6 Oct 2021 00:01:18 -0400 (EDT) |
branch: elpa/popup
commit 7817f1ee96f38bfd588621d7e3fbe15df7087ce2
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Add 'nostrip' parameter to 'popup-tip'(#42)
---
README.md | 6 ++++--
popup.el | 7 +++++--
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index f1bbbf0..f4b1814 100644
--- a/README.md
+++ b/README.md
@@ -246,17 +246,19 @@ something about what cursor points to.
popup-tip string &key point around width height min-height
truncate margin margin-left margin-right scroll-bar parent
- parent-offset nowait prompt
+ parent-offset nowait nostrip prompt
Show a tooltip with message `STRING` at `POINT`. This function is
synchronized unless `NOWAIT` specified. Almost all arguments are same as
-`popup-create` except for `TRUNCATE`, `NOWAIT`, and `PROMPT`.
+`popup-create` except for `TRUNCATE`, `NOWAIT`, `NOSTRIP` and `PROMPT`.
If `TRUNCATE` is non-nil, the tooltip can be truncated.
If `NOWAIT` is non-nil, this function immediately returns the tooltip
instance without entering event loop.
+If `NOSTRIP` is non-nil, `STRING` properties are not stripped.
+
`PROMPT` is a prompt string used when reading events during the event
loop.
diff --git a/popup.el b/popup.el
index b1f8f2e..74f3faa 100644
--- a/popup.el
+++ b/popup.el
@@ -1004,6 +1004,7 @@ HELP-DELAY is a delay of displaying helps."
parent
parent-offset
nowait
+ nostrip
prompt
&aux tip lines)
"Show a tooltip of STRING at POINT. This function is
@@ -1018,8 +1019,10 @@ tooltip instance without entering event loop.
PROMPT is a prompt string when reading events during event loop."
(if (bufferp string)
(setq string (with-current-buffer string (buffer-string))))
- ;; TODO strip text (mainly face) properties
- (setq string (substring-no-properties string))
+
+ (unless nostrip
+ ;; TODO strip text (mainly face) properties
+ (setq string (substring-no-properties string)))
(and (eq margin t) (setq margin 1))
(or margin-left (setq margin-left margin))
- [nongnu] elpa/popup e742014 180/184: Merge pull request #124 from auto-complete/dis, (continued)
- [nongnu] elpa/popup e742014 180/184: Merge pull request #124 from auto-complete/dis, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 9d104d4 172/184: Bump version., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup af0c179 018/184: Add ERT as git submodule, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup d097dba 029/184: Remove unused code., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup caca8dd 050/184: Merge pull request #22 from froydnj/update-readme, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 748c109 068/184: Merge pull request #31 from tkf/inherit-face, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 1277ab1 073/184: Merge pull request #23 from uk-ar/uk-ar-add-test-case, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup d7c98db 084/184: Fix for byte compile warnings, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 53bb3ec 117/184: bump up version, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup b9fc32c 092/184: Merge pull request #60 from auto-complete/delete-trailing-spaces, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 7817f1e 089/184: Add 'nostrip' parameter to 'popup-tip'(#42),
ELPA Syncer <=
- [nongnu] elpa/popup f8295a6 139/184: Switch from apt package to evm, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 077c502 147/184: Remove needless quote, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup f0b9c01 175/184: Update license info., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup bd5a0df 177/184: Simplify doc., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup c76d516 170/184: Bump version., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 4ab00e1 141/184: Use https scheme as possible, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 333ea5e 167/184: Bump version., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 9052d11 143/184: Improve eldoc for `popup-tip` and `popup-menu*`, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 6f4bba9 007/184: Update copyright., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 8937b92 003/184: Refactoring and auto-test., ELPA Syncer, 2021/10/06