From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Re: Ergonomics: mouse clicking with scroll-margin Date: Sun, 14 Jun 2020 19:58:56 +0200 Message-ID: <87imftsf4v.fsf@wavexx.thregr.org> References: <87tuzdefr3.fsf@wavexx.thregr.org> <83ftax35ja.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="58043"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.2; emacs 28.0.50 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 14 19:59:37 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jkWuu-000F0J-HS for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Jun 2020 19:59:36 +0200 Original-Received: from localhost ([::1]:39620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkWut-00052h-Gi for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Jun 2020 13:59:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkWuP-0004cU-Qk for emacs-devel@gnu.org; Sun, 14 Jun 2020 13:59:05 -0400 Original-Received: from erc.thregr.org ([2001:41c9:1:41f::63]:50954) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkWuO-0003Uz-08; Sun, 14 Jun 2020 13:59:05 -0400 Original-Received: from [37.163.1.190] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1jkWuL-000Alb-8h (envelope-from ); Sun, 14 Jun 2020 19:59:01 +0200 In-reply-to: <83ftax35ja.fsf@gnu.org> Received-SPF: pass client-ip=2001:41c9:1:41f::63; envelope-from=wavexx@thregr.org; helo=erc.thregr.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252241 Archived-At: On Sun, Jun 14 2020, Eli Zaretskii wrote: >> Can this be improved _without_ disabling scroll-margin? > > Can you propose a more useful behavior in that case? Another solution would be to move the pointer along with the scrolling buffer (as done occasionally in cad software when moving the viewport), so that the pointer doesn't move from the POV of the buffer. Kind of odd for an editor though. > If you are saying that Emacs should put point inside the scroll-margin > and leave it there in this case, then I don't recommend such a > solution: any subsequent command will scroll the window anyway, > because Emacs is programmed to keep point outside of the scroll > margin. Would that happen for _any_ command or just for commands that already move the point? If that happens only with a command that already moves the point up or down, such as next-line, I'd actually say that's OK and I would find that expected. It's definitely an edge scenario, but less unorthodox than moving the pointer IMHO. > We need to come up with a more clever approach. Fully open to any idea here. This is just the first thing that came to mind.