Subject: bug#34993: 27.0.50; Repeated call to custom-add-option in esh-mode.el

From: Mauro Aranda <[email-masked]>
Date: Mon, 25 Mar 2019 11:11:11 -0300

Tags: patch

esh-mode.el has a repeated call to 'custom-add-option':
(custom-add-option 'eshell-pre-command-hook 'eshell-push-command-mark)

>From context, I assume the latter was intended for a different second
argument.  The patch is attached.

Best regards,
Mauro.
From d53841aa11da3a98a6ab56e1214dc3ab67f74217 Mon Sep 17 00:00:00 2001
From: Mauro Aranda <[email-masked]>
Date: Mon, 25 Mar 2019 10:38:39 -0300
Subject: [PATCH] Fix repeated call to 'custom-add-option' in esh-mode.el

* lisp/eshell/esh-mode.el: Call 'custom-add-option' with the right
argument.
---
 lisp/eshell/esh-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el
index 3029876..0a160b9 100644
--- a/lisp/eshell/esh-mode.el
+++ b/lisp/eshell/esh-mode.el
@@ -551,7 +551,7 @@ eshell-goto-input-start
 9term behavior."
   (goto-char eshell-last-input-start))
 
-(custom-add-option 'eshell-pre-command-hook 'eshell-push-command-mark)
+(custom-add-option 'eshell-pre-command-hook 'eshell-goto-input-start)
 
 (defsubst eshell-interactive-print (string)
   "Print STRING to the eshell display buffer."
-- 
2.7.4