GNU bug report logs - #11947
24.1.50; tramp bug - grep from helm have an empty buffer when used on a remote machine.

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>

Date: Mon, 16 Jul 2012 04:25:01 UTC

Severity: normal

Tags: notabug

Found in version 24.1.50

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Cc: 11947 <at> debbugs.gnu.org
Subject: bug#11947: 24.1.50; tramp bug - grep from helm have an empty buffer when used on a remote machine.
Date: Tue, 17 Jul 2012 10:27:10 +0200
Hi,

finally, it is a helm error. In `helm-c-grep-init',
`start-file-process-shell-command' is called with a nil buffer. This
means, that no buffer is associated with the corresponding process; it
did work only by unintended side effect. The following patch solves it:

--8<---------------cut here---------------start------------->8---
ubu1004:~/src/helm> git diff helm-grep.el
diff --git a/helm-grep.el b/helm-grep.el
index 34f4e14..ff6ff09 100644
--- a/helm-grep.el
+++ b/helm-grep.el
@@ -209,7 +209,7 @@ See `helm-c-grep-default-command' for format specs.")
         (insert (concat ">>> " cmd-line "\n\n"))))
     (prog1 ; Start grep process.
         (let ((default-directory helm-ff-default-directory))
-          (start-file-process-shell-command "grep-process" nil cmd-line))
+          (start-file-process-shell-command "grep-process" (current-buffer) cmd-line))
       (helm-log "Start Grep process")
       (setq mode-line-format
           '(" " mode-line-buffer-identification " "
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.




This bug report was last modified 13 years ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.