all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tino Calancha <tino.calancha@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs developers <emacs-devel@gnu.org>,
	Tino Calancha <tino.calancha@gmail.com>
Subject: Re: [Emacs-diffs] master c711991: Allow not erase output buffer in shell commands
Date: Wed, 21 Sep 2016 01:32:49 +0900 (JST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1609210129280.1399@calancha-pc> (raw)
In-Reply-To: <jwvzin2sg3x.fsf-monnier+emacsdiffs@gnu.org>



On Tue, 20 Sep 2016, Stefan Monnier wrote:

>> I guess, in cases where the buffer is not displayed, (goto-char pos)
>> might not always work as `set-window-point': a posterior
>> display of the buffer maybe doesn't show point at pos.
>
> When a buffer is displayed in a window for the first time, the window's
> point is initialized from the buffer's point, so it should work for
> those cases.  If the goto-char happens for a buffer that used to be
> displayed in a window and later gets displayed again in that window, it
> may be the case that we remember the old window-point somewhere and try
> to return to that, indeed.  Let's not worry about it for now.
Ok.  thanks.
> Tho, maybe it would be a good idea to introduce a new function (not sure
> how to call it: window-goto-char?  set-buffer-window-point?) which would
> work like set-window-point but takes a buffer as argument.  After all,
> it's a fairly common need, and if we ever want to fix the corner case
> mentioned above, we could fix it there once and for all.
Thank you very much for the further explanation.  Let's see what other 
people here might comment about this new function proposal; people with 
deeper understanding than me in that topic.

> PS: Haven't checked the new patch, sorry.
Please take your time.  I took 1 month to answer this.  There is no hurry.



  reply	other threads:[~2016-09-20 16:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-20 15:10 [Emacs-diffs] master c711991: Allow not erase output buffer in shell commands Tino Calancha
2016-09-20 16:22 ` Stefan Monnier
2016-09-20 16:32   ` Tino Calancha [this message]
2016-09-20 17:08   ` martin rudalics
     [not found] <20160816094403.31386.69310@vcs.savannah.gnu.org>
     [not found] ` <20160816094404.013EC220155@vcs.savannah.gnu.org>
2016-08-22 16:41   ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=alpine.DEB.2.20.1609210129280.1399@calancha-pc \
    --to=tino.calancha@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.