Subject: bug#25271: 26.0.50; [PATCH] comint-insert-previous-argument logic improvements

From: Noam Postavsky <[email-masked]>
Date: Tue, 01 May 2018 21:36:41 -0400

Dima Kogan <[email-masked]> writes:

> +(defvar-local comint-insert-previous-argument-from-end nil

> +This variable is buffer-local.  To get the zsh behavior in `M-x
> +shell' sessions, do something like this:
> +
> +    (add-hook
> +      'shell-mode-hook
> +        (lambda ()
> +          (setq comint-insert-previous-argument-from-end t)))")
> +

Seems simpler to just make it a defcustom.  The user could still
setq-local if they really want per-buffer settings.