[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion e515453141 047/313: from an alist to (stri
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion e515453141 047/313: from an alist to (string start stop) |
Date: |
Sat, 3 Dec 2022 10:59:15 -0500 (EST) |
branch: elpa/bash-completion
commit e5154531415d2d92216b781a8156e066f05e5e3b
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>
from an alist to (string start stop)
---
bash-completion.el | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/bash-completion.el b/bash-completion.el
index 74ec8792d5..61f37f2301 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -135,17 +135,16 @@ at POS, the current word: ( (word1 word2 ...) . wordnum )"
(cons cword (nreverse strings)))))
(defsubst bash-completion-split-raw-get-range (current)
- (cons (cdr (assq 'start current)) (cdr (assq 'end current))))
+ (cdr current))
(defsubst bash-completion-split-raw-set-end (current)
- (setcdr (assq 'end current) (point)))
+ (setcdr (cdr current) (point)))
(defsubst bash-completion-split-raw-append-str (current str)
- (let* ((str-cons (assq 'str current)) (straccum (cdr str-cons)))
- (setcdr str-cons (concat straccum str))))
+ (setcar current (concat (car current) str)))
(defsubst bash-completion-split-raw-get-str (current)
- (cdr (assq 'str current)))
+ (car current))
(defun bash-completion-split-raw (start end)
(save-excursion
@@ -155,9 +154,7 @@ at POS, the current word: ( (word1 word2 ...) . wordnum )"
(defun bash-completion-split-raw-new-element (end accum)
(skip-chars-forward " \t\n\r" end)
(if (< (point) end)
- (bash-completion-split-raw-0 end accum (list (cons 'str "")
- (cons 'start (point))
- (cons 'end nil)))
+ (bash-completion-split-raw-0 end accum (list "" (point)))
accum))
(defun bash-completion-split-raw-0 (end accum current)
- [nongnu] elpa/bash-completion 5501cb63cf 042/313: Turn off mail warning, (continued)
- [nongnu] elpa/bash-completion 5501cb63cf 042/313: Turn off mail warning, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0dcf43f91e 041/313: don't run integration tests by default, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 5b76fc4a33 032/313: remove wrong a=b variable prefix handling, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7697f1a87c 063/313: comments about tried systems, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3efe7cb03c 067/313: escape #, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 42441e36b0 055/313: more documentation, a little refactoring, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 5661a34c4a 098/313: updated test case for cd 2>/dev/null, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c64ca7a992 071/313: simplified parse-current-command, all tests pass, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion cc1a462415 050/313: tested complex line, detect escaped separators, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 9ac7f58758 059/313: Gone through compgen, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion e515453141 047/313: from an alist to (string start stop),
ELPA Syncer <=
- [nongnu] elpa/bash-completion 582b489fb3 091/313: Added message about mailcheck, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7f0160d271 065/313: Trim strange results that are a subset of the current value: test case, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 583ecc7707 103/313: Merge pull request #1 from kemmason/master, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 52af1ff8f7 090/313: Really disable mail check this time ? Set MAILCHECK to -1, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3859be798a 108/313: Add support for complete -D., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 711ccc2df1 096/313: format example properly, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7615b1bda5 083/313: changed e-mail address, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion aadb2e20b2 070/313: simplified bash-completion-parse-line, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion ca24f8ada4 073/313: forward last open quote, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion b4fc1a73cb 092/313: removed unnecessary elisp directory, ELPA Syncer, 2022/12/03