[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pcmpl-args a04b9f0308 14/33: Filter out backspace characte
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pcmpl-args a04b9f0308 14/33: Filter out backspace character in default man function output |
Date: |
Mon, 31 Jan 2022 11:59:23 -0500 (EST) |
branch: elpa/pcmpl-args
commit a04b9f030878326843512324f4824c8329f7d452
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Troy Hinckley <t.macman@gmail.com>
Filter out backspace character in default man function output
The man command can produce \b characters that are used to make
argument bold. This lead to completions that looked like:
ls -_--_-a_al_ll_l
To fix this we need to use the col -b command to apply all of the
backspaces in order and get the final column positions.
---
pcmpl-args.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pcmpl-args.el b/pcmpl-args.el
index 872c712a61..5baa5f246a 100644
--- a/pcmpl-args.el
+++ b/pcmpl-args.el
@@ -788,7 +788,8 @@ insert its content into the current buffer.")
;; line, reducing the number of false positives that result from lines
;; starting with `-' that aren't really options.
(push "MANWIDTH=10000" process-environment)
- (pcmpl-args-process-file "man" name)))
+ (pcmpl-args-process-file
+ shell-file-name shell-command-switch (format "man %s | col -b" name))))
(defun pcmpl-args-extract-argspecs-from-manpage (name &rest args)
"Return a list of argspecs by parsing the manpage identified by NAME.
- [nongnu] elpa/pcmpl-args 7d444d5793 22/33: Update minor version, (continued)
- [nongnu] elpa/pcmpl-args 7d444d5793 22/33: Update minor version, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 910f42cdbd 31/33: Fix package-lint warnings, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 1a1f5f5eab 05/33: Fix annotation display width on ttys, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 3221c53036 04/33: Truncate annotations to width of *Completions* buffer, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 9dd5dbd62a 01/33: Initial commit, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args ab9076cf03 07/33: Removed man options that were conflicting with MacOSX, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 7bc360c2e5 10/33: Don't throw an error when man page is missing, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 0b8a05fc6e 13/33: Add additional README formatting, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 83f43d0f6f 12/33: Reformat README, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args e6957896b0 15/33: Add shell-quote-argument to name, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args a04b9f0308 14/33: Filter out backspace character in default man function output,
ELPA Syncer <=
- [nongnu] elpa/pcmpl-args 6d45d2d7c1 16/33: Fixed too many subcommmands for git completions, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 02ae18bda3 33/33: Revert "Fix expansion of $PREFIX in most commands", ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 0b4d9bb8ce 25/33: Implemented col -b in elisp, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 4c299e8f64 27/33: Added missing subr-x dependency and bumped emacs version, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 5f2943fd70 30/33: Bump version after moving minimum Emacs to 25.1, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 593811a570 29/33: Reimplemented listing of gpg keys in e-lisp, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args d911fddfa2 26/33: Fixed formatting and tabs, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args ec71fe5813 28/33: Reimplemented pass find in e-lisp, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args 604ea27bdf 17/33: Use cl-lib instead of cl, ELPA Syncer, 2022/01/31
- [nongnu] elpa/pcmpl-args c162469e41 18/33: Minor fixes, ELPA Syncer, 2022/01/31