Skip to content

Commit

Permalink
mandb: fix a bug that the description is inserted for "--no-OPTION"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Feb 3, 2022
1 parent 82b9c01 commit 88614b8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
7 changes: 4 additions & 3 deletions docs/ChangeLog.md
Expand Up @@ -89,7 +89,7 @@
- cmdspec: refactor `{mandb => cmdspec}_opts` `#D1706` `#D1707` 0786e92
- complete (menu-style:align): refactor `complete_menu_align => menu_align_{min,max}` (motivated by banoris) `#D1717` 22a2449
- prompt: support `bleopt prompt_command_changes_layout` `#D1750` e199bee
- exec: measure execution times `#D1756` 0000000
- exec: measure execution times `#D1756` 2b28bec

## Changes

Expand Down Expand Up @@ -140,7 +140,7 @@
- edit (`history_share`): update history on `discard-line` (reported by SuperSandro2000) `#D1742` 8dbefe0
- canvas: do not insert explicit newlines on line folding if possible (reported by banoris) `#D1745` 02b9da6 dc3827b
- edit (`ble-bind -x`): preserve multiline prompts on execution of `bind -x` commands (requested by SuperSandro2000) `#D1755` 7d05a28
- util (`ble/util/buffer`): hide cursor in rendering `#D1758` 0000000
- util (`ble/util/buffer`): hide cursor in rendering `#D1758` e332dc5
- complete (`action:file`): always suffix `/` to complete symlinked directory names (reported by SuperSandro2000) `#D1759` 0000000

## Fixes
Expand All @@ -163,6 +163,7 @@
- mandb: fix small issues of man-page analysis `#D1708` caa77bc
- mandb: insert a comma in brace expansions instead of a space `#D1719` 0ac7f03
- mandb: support man-page format of `rsync` `#D1733` 7900144
- mandb: fix a bug that the description is inserted for `--no-OPTION` `#D1761` 0000000
- edit: work around the wrong job information of Bash in trap handlers (reported by 3ximus) `#D1435` `#D1436` bc4735e
- edit (command-help): work around the Bash bug that tempenv vanishes with `builtin eval` `#D1438` 8379d4a
- global: suppress missing locale errors (reported by 3ximus) `#D1440` 4d3c595
Expand Down Expand Up @@ -305,7 +306,7 @@
- global: work around `shopt -s compat42` `#D1754` a75bb25
- global (`ble/builtin/*`): work around `set -eu` in NixOS initialization (reported by SuperSandro2000) `#D1743` 001c595
- util, edit, contrib: add support for `bash-preexec` (motivated by SuperSandro2000) `#D1744` e85f52c
- util (`ble/builtin/trap`): fix resetting `$?` and `$_` (reported by SuperSandro2000) `#D1757` 0000000
- util (`ble/builtin/trap`): fix resetting `$?` and `$_` (reported by SuperSandro2000) `#D1757` dfc6221
- main: check `IN_NIX_SHELL` to inactivate ble.sh in nix-shell (suggested by SuperSandro2000) `#D1747` b4bd955
- canvas: test the terminal for the sequence of clearing `DECSTBM` `#D1748` 4b1601d
- main: check `/dev/tty` on startup (reported by andychu) `#D1749` 711c69f
Expand Down
1 change: 1 addition & 0 deletions lib/core-complete.sh
Expand Up @@ -3237,6 +3237,7 @@ function ble/complete/progcomp/.filter-and-split-compgen {
optarg = "";
suffix = " ";
}
mandb_count++;
print option FS optarg FS suffix FS desc;
}
next;
Expand Down
39 changes: 30 additions & 9 deletions note.txt
Expand Up @@ -1348,6 +1348,24 @@ bash_tips

* bash-completion

2022-02-02

* [DraftPR で修正済み] _services が failglob で問題を起こしている。

_comp_init_set_up_service_completions も駄目。うーん。failglob ではある
がこれは自分が修正している途中の物ではない新しい物だろうか? →これは既に
fix-failglob の中に含まれていた。

* [修正済み] rsync で *-from が云々という failglob が発生している
→これは最新版では既に修正されている。

結局ロードして欲しい bash-completion が全然ロードされない。何故 → 結局ロー
カルの場所ではなくて其処で make install されている物が読み出されている様だ
が、make install しても何故かずっと古いままという状態になっている様だった。
autoreconf -i をし直して実行したらちゃんと新しい物に置き換えられた。make 自
体がちゃんと動いていなかったという事になるのだろうか。何れにしてもこれでちゃ
んと動く様になった。

2022-01-23

683 にも unresolved patch suggestion がある。
Expand Down Expand Up @@ -1737,15 +1755,6 @@ bash_tips
* nix-build -A の補完が効かないという問題
https://github.com/akinomyoga/ble.sh/issues/171#issue-1113799687

* rsync --no-while-f[TAB] で説明が一緒に挿入されてしまう。DATA を挿入している
のだろうか。。或いは、単一確定の場合に postprocess が走っていなくて直接補完
されている。後で確認する必要がある。

* bash-completion _services が failglob で問題を起こしてい
る。_comp_init_set_up_service_completions も駄目。うーん。failglob ではある
がこれは自分が修正している途中の物ではない新しい物だろうか? →これは既に
fix-failglob の中に含まれていた。

2022-01-23

* コマンドのログ機能を作成する。
Expand Down Expand Up @@ -5949,6 +5958,18 @@ bash_tips

2022-02-02

* mandb: rsync --no-while-f[TAB] で説明が一緒に挿入されてしまう [#D1761]

DATA を挿入しているのだろうか。。或いは、単一確定の場合に postprocess が走っ
ていなくて直接補完されている。後で確認する必要がある。

→どうやら ACTION progcomp で生成されている様だ。--no-whole-file に対しては
問題発生するが、--whole-file に対しては問題は発生しない。どうも CAND の時点
で大変な事になっている。

→OK. --no-OPTION の説明を勝手に生成した時に mandb_count++ するのを忘れてい
た為に、mandb 処理がスキップされていたのが原因だった。

* complete: fzf と組み合わせている時に補完の再試行がされない問題 (reported by SuperSandro2000) [#D1760]
https://github.com/akinomyoga/ble.sh/issues/171#issuecomment-1021326168

Expand Down

0 comments on commit 88614b8

Please sign in to comment.