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

From: Dima Kogan <[email-masked]>
Date: Sun, 17 Jun 2018 19:25:03 -0700

Noam Postavsky <[email-masked]> writes:

> 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.

Yes. I agree, actually. Want a new patch, and we can merge this?