unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Dima Kogan <dima@secretsauce.net>
Cc: 25271@debbugs.gnu.org
Subject: bug#25271: 26.0.50; [PATCH] comint-insert-previous-argument logic improvements
Date: Tue, 01 May 2018 21:36:41 -0400	[thread overview]
Message-ID: <87in86on2u.fsf@gmail.com> (raw)
In-Reply-To: <87eg0veqe2.fsf@secretsauce.net> (Dima Kogan's message of "Sun, 25 Dec 2016 11:54:13 -0800")

Dima Kogan <dima@secretsauce.net> 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.





  reply	other threads:[~2018-05-02  1:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-25 19:54 bug#25271: 26.0.50; [PATCH] comint-insert-previous-argument logic improvements Dima Kogan
2018-05-02  1:36 ` Noam Postavsky [this message]
2018-06-18  2:25   ` Dima Kogan
2018-06-18  2:30     ` Noam Postavsky
2018-06-18  6:05 ` bug#25271: Committed Dima Kogan
2018-06-18 16:29   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87in86on2u.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=25271@debbugs.gnu.org \
    --cc=dima@secretsauce.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).