[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra e7146dc 066/395: counsel.el (counsel--compila
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra e7146dc 066/395: counsel.el (counsel--compilation-errors-buffer): Simplify |
Date: |
Thu, 25 Feb 2021 08:31:33 -0500 (EST) |
branch: externals/ivy-hydra
commit e7146dc160880099f24a002f7d542c5c996543c7
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
counsel.el (counsel--compilation-errors-buffer): Simplify
Re #2299
---
counsel.el | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/counsel.el b/counsel.el
index bdd400a..c401b4f 100644
--- a/counsel.el
+++ b/counsel.el
@@ -6243,17 +6243,18 @@ We update it in the callback with
`ivy-update-candidates'."
(with-current-buffer buf
(let ((res nil)
(pt (point-min)))
- (while (setq pt (compilation-next-single-property-change
- pt 'compilation-message))
- (let ((loc (get-text-property pt 'compilation-message)))
- (when (and loc (setq loc (compilation--message->loc loc)))
- (let* ((fs (compilation--loc->file-struct loc))
- (file-name (caar fs))
- (line-number (compilation--loc->line loc)))
- (push (propertize
- (format "%d:%s" line-number file-name)
- 'pt pt
- 'buffer buf) res)))))
+ (save-excursion
+ (while (setq pt (compilation-next-single-property-change
+ pt 'compilation-message))
+ (let ((loc (get-text-property pt 'compilation-message)))
+ (when (and loc (setq loc (compilation--message->loc loc)))
+ (goto-char pt)
+ (push
+ (propertize
+ (buffer-substring-no-properties pt (line-end-position))
+ 'pt pt
+ 'buffer buf)
+ res)))))
(nreverse res))))
(defun counsel-compilation-errors-cands ()
- [elpa] externals/ivy-hydra 1020a77 026/395: swiper.el (swiper-query-replace): Show matched groups in preview, (continued)
- [elpa] externals/ivy-hydra 1020a77 026/395: swiper.el (swiper-query-replace): Show matched groups in preview, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra c0b61ea 028/395: swiper.el (swiper--query-replace-setup): Highlight at eobp, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 412266f 038/395: swiper.el (swiper--line-at-point): Don't error on empty string, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e598b04 042/395: ivy.el (ivy--regex): Improve handling of capture groups, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f42723e 046/395: ivy.el (ivy-done): Let it go through the rest of conditions if confirmation is not required., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 6abc3de 050/395: .travis.yml: Use 2 xenial recipes, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ecb098d 049/395: counsel.el (counsel-imenu): Add counsel-imenu-history., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 657e6b4 062/395: ivy-test.el (ivy-inhibit-action): Better behavior with an alist collection, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 4ba0944 064/395: counsel.el (counsel-set-variable): Save expr to the kill ring, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 40978ec 063/395: counsel.el (counsel-ag-base-command): Set default to --vimgrep, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e7146dc 066/395: counsel.el (counsel--compilation-errors-buffer): Simplify,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra 148f84e 074/395: counsel.el (counsel-git): Work with utf-8 characters, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra bfefd69 075/395: counsel.el (counsel-git-occur): Fixup, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra b4d9286 080/395: ivy-test.el (ivy-read-sort-def): Add test, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 41bd988 082/395: ivy.el (ivy-alt-done): In an empty directory with no input return this directory, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 0f57db8 079/395: ivy.el (ivy--reset-state): Ensure default values are prepended, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f8eb450 077/395: counsel.el (counsel-register): Fix for file registers in Emacs 27, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7d94e67 087/395: Use the current prompt for shell history initial input, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ce70661 095/395: counsel.el (counsel-grep-function): Simplfy and extend, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 51fe2ce 097/395: counsel.el (counsel--recentf-get-xdg-recent-files): Decode utf-8, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra fb6db46 093/395: counsel.el (counsel-flycheck-occur): Add, Basil L. Contovounesios, 2021/02/25