[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup caca8dd 050/184: Merge pull request #22 from froydnj
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup caca8dd 050/184: Merge pull request #22 from froydnj/update-readme |
Date: |
Wed, 6 Oct 2021 00:01:05 -0400 (EDT) |
branch: elpa/popup
commit caca8ddd7929f1cf0674933779386f0636f5f3cd
Merge: 25e2e7f b5e13a8
Author: Tomohiro Matsuyama <tomo@cx4a.org>
Commit: Tomohiro Matsuyama <tomo@cx4a.org>
Merge pull request #22 from froydnj/update-readme
update README.md to tweak typos and grammar
---
README.md | 59 ++++++++++++++++++++++++++++++-----------------------------
1 file changed, 30 insertions(+), 29 deletions(-)
diff --git a/README.md b/README.md
index 325d4cc..f1bbbf0 100644
--- a/README.md
+++ b/README.md
@@ -44,21 +44,21 @@ Popup Items
Elements of `popup-list` have to be popup items. A popup item is
substantially a string but it may involve some text-properties. There
-is two ways for making popup items. One is just using strings. Another
-is to use `popup-make-item` function, which just returna the string
-with adding text-properties of its keywords. Effective text-properties
+are two ways to make popup items. One is just using strings. Another
+is to use the `popup-make-item` function, which just returns the string
+after adding text-properties of its keywords. Effective text-properties
are:
* `value` -- This represents the **real** value of the item. This will
be used when returning the value but not the item (or string) from
some synchronous functions such as `popup-menu*`.
* `face` -- The background face of the item. The value of `popup-face`
- will be overriden.
+ will be overridden.
* `selection-face` -- The selection face of the item. The value of
- `popup-selection-face` will be overriden.
+ `popup-selection-face` will be overridden.
* `document` -- The documentation string or function of the item.
-* `summary` -- The summary string of the item. This will be shown at
- inline of the item.
+* `summary` -- The summary string of the item. This will be shown
+ inline with the item.
* `symbol` -- The symbol character of the item.
* `sublist` -- The sublist of the item. This is effective only with
`popup-cascade-menu`.
@@ -88,7 +88,7 @@ popups.
### Struct: `popup`
Any instance of `popup` structure has the following fields (some
-unimportant fields was omitted):
+unimportant fields are not listed):
* `point`
* `row` -- The line number.
@@ -97,8 +97,8 @@ unimportant fields was omitted):
* `height` -- Max height of `popup` instance.
* `min-height`
* `current-height`
-* `direction` -- Positive number means forwarding, negative number
- means backwarding.
+* `direction` -- Positive number means forward, negative number means
+ backward.
* `parent` -- The parent of `popup` instance.
* `face` -- The background face.
* `selection-face`
@@ -113,7 +113,7 @@ unimportant fields was omitted):
(strings).
* `original-list` -- Same as `list` except that this is not filtered.
-All of fields can be accessed by `popup-<field>` function.
+All of these fields can be accessed by `popup-<field>` function.
### Function: `popup-create`
@@ -123,15 +123,15 @@ All of fields can be accessed by `popup-<field>` function.
Create a popup instance at `POINT` with `WIDTH` and `HEIGHT`.
-`MIN-HEIGHT` is a minimal height of the popup. The default value is 0.
+`MIN-HEIGHT` is the minimal height of the popup. The default value is 0.
If `AROUND` is non-nil, the popup will be displayed around the point
but not at the point.
-`FACE` is a background face of the popup. The default value is
+`FACE` is the background face of the popup. The default value is
`popup-face`.
-`SELECTION-FACE` is a foreground (selection) face of the popup The
+`SELECTION-FACE` is the foreground (selection) face of the popup The
default value is `popup-face`.
If `SCROLL-BAR` is non-nil, the popup will have a scroll bar at the
@@ -142,9 +142,9 @@ If `MARGIN-LEFT` is non-nil, the popup will have a margin
at the left.
If `MARGIN-RIGHT` is non-nil, the popup will have a margin at the
right.
-`SYMBOL` is a single character which indicates a kind of the item.
+`SYMBOL` is a single character which indicates the kind of the item.
-`PARENT` is a parent popup instance. If `PARENT` is omitted, the popup
+`PARENT` is the parent popup instance. If `PARENT` is omitted, the popup
will be a root instance.
`PARENT-OFFSET` is a row offset from the parent popup.
@@ -239,7 +239,7 @@ Enter incremental search event loop of `POPUP`.
Tooltips
--------
-Tooltip is an useuful visual UI widget for displaying information
+A tooltip is an useful visual UI widget for displaying information
something about what cursor points to.
### Function: `popup-tip`
@@ -248,16 +248,17 @@ something about what cursor points to.
truncate margin margin-left margin-right scroll-bar parent
parent-offset nowait prompt
-Show a tooltip of `STRING` at `POINT`. This function is synchronized
-unless `NOWAIT` specified. Almost arguments are same as `popup-create`
-except for `TRUNCATE`, `NOWAIT`, and `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`.
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.
-`PROMPT` is a prompt string when reading events during event loop.
+`PROMPT` is a prompt string used when reading events during the event
+loop.
Here is an example:
@@ -267,7 +268,7 @@ Here is an example:
Popup Menus
-----------
-Popup menu is an useful visual UI widget for requesting users to
+Popup menu is an useful visual UI widget for prompting users to
select an item of a list.
### Function: `popup-menu*`
@@ -277,17 +278,17 @@ select an item of a list.
fallback help-delay nowait prompt isearch isearch-cursor-color
isearch-keymap isearch-callback => selected-value
-Show a popup menu of `LIST` at `POINT`. This function returns a value
-of the selected item. Almost arguments are same as `popup-create`
+Show a popup menu of `LIST` at `POINT`. This function returns the value
+of the selected item. Almost all arguments are same as `popup-create`
except for `KEYMAP`, `FALLBACK`, `HELP-DELAY`, `PROMPT`, `ISEARCH`,
`ISEARCH-CURSOR-COLOR`, `ISEARCH-KEYMAP`, and `ISEARCH-CALLBACK`.
-If `KEYMAP` is a keymap which is used when processing events during
-event loop.
+If `KEYMAP` is provided, it is a keymap which is used when processing
+events during event loop.
-If `FALLBACK` is a function taking two arguments; a key and a
-command. `FALLBACK` is called when no special operation is found on
-the key. The default value is `popup-menu-fallback`, which does
+If `FALLBACK` is provided, it is a function taking two arguments; a key
+and a command. `FALLBACK` is called when no special operation is found
+on the key. The default value is `popup-menu-fallback`, which does
nothing.
`HELP-DELAY` is a delay of displaying helps.
- [nongnu] elpa/popup a7ed816 174/184: Upate license year., (continued)
- [nongnu] elpa/popup a7ed816 174/184: Upate license year., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 13364d7 173/184: Add more Emacs version for CI test., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 866a091 178/184: Add homepage url, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 4abbbf9 146/184: Merge pull request #99 from spwhitton/apt-get, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e452399 153/184: Add popup-isearch-yank., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup b436b63 168/184: Merge pull request #111 from drvink/patch-1, ELPA Syncer, 2021/10/06
- [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 <=
- [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, 2021/10/06
- [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