From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 05 12:05:36 2020 Received: (at submit) by debbugs.gnu.org; 5 Sep 2020 16:05:36 +0000 Received: from localhost ([127.0.0.1]:43937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEah5-0005SA-UC for submit@debbugs.gnu.org; Sat, 05 Sep 2020 12:05:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:58710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEYsr-0004TW-RK for submit@debbugs.gnu.org; Sat, 05 Sep 2020 10:09:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEYsr-0005ob-Mn for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 10:09:37 -0400 Received: from sonic309-24.consmr.mail.ir2.yahoo.com ([77.238.179.82]:45037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEYsp-00025c-Cq for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 10:09:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1599314972; bh=gGEO3KXayvyTe0cOvRrXfTpqMt8B/0JM96kBNigx3gY=; h=From:To:Subject:Date:References:From:Subject; b=rsi1g3eA4ht0uWdJoYZ71G7iSMC8cIJS/sIuh52We/2ExXezQ99895YEddi72TR2YnLLpGA7SaD7ZmB70u34tVix1VVmr/XgQrHDInqwyzlBZ26WNSrbAl57DmX0UO60K48TBz6XAqIrvXNEQwz/g5OBRwIlOlf9et1wyLuVgrwomdIQLqqlaKKlcg8H4bqsOcRw4CuCoZI76++pzDQDaeWlEX7N7OgApm3szRwYaKTOQ+n9IZ9Xn6usSnHloIJvB5sILSkMzUMfOUWH0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3GrlZStrK1W_1X9yiF2uDbiB3iSRF9bMS2MNrAdmU0KvfnywQaQLkw2 beDWT7ZWBJNUhes9.LdRgPhtv5mvFfsccHtfjTkkwwBxglVFfb2uX6UG4O0isALNagHRUqIju.Db zF9t6N77DKgaLLxJJP.o_8V6Rf.Ri2Q3EK0B4DPRQBg.7IsV87GGH9SOqRidDh5tel8Shg1NkpDI j4_59yDSPO1CXnIhoR9gIkbZLSWW6toe6CC7QvqAoHH86CSHUvxeCL5aPDM9vhe.dEvHOQy.BXcA w.Lie62UwexdAqAqswWgo_O3qpOOrW_Y.elOY5ZZtHZ1E9OMRsqXEdQdTg7Q9GOS3JrKj5XGi5gc enjSZsaYGKvc3w0AERiFl.OBJpdsDZEPfbCU0XIsawuGVtx5GzdVbaVAsLux.liN5CyC3i5U7DJe .s.5i3wEr6qTj14KDvbVxTQ3WK3aV03_DqVHzqhsci9dRbDCfEjnNKkZHzhFL4ybr4z.UF_lSr9k a9SNf_JNUVOYI86RzVW5jn8cUtRHCFcqimQrinkpPIj1PDkzAPoRw06s- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Sat, 5 Sep 2020 14:09:32 +0000 Received: by smtp415.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 778dbb03af6c90d29cdfe3c54b45cf70; Sat, 05 Sep 2020 14:09:30 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: bug-gnu-emacs@gnu.org Subject: [PATCH] Support horizontal scrolling in the tab line Date: Sat, 05 Sep 2020 16:09:27 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" References: X-Mailer: WebService/1.1.16565 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Content-Length: 2853 Received-SPF: pass client-ip=77.238.179.82; envelope-from=mardani29@yahoo.es; helo=sonic309-24.consmr.mail.ir2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/05 10:09:32 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 05 Sep 2020 12:05:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain First of all, thank you for the tab bar and tab line implementation in Emacs 27.1. While using the feature, I found a possible improvement: Add support for horizontal scrolling if your mouse or trackpad supports it. The motivation for this change is that, as the tab line is a horizontal UI, it makes sense to support horizontal scrolling if the hardware supports it, as the scrolling feels more natural. If you agree with the proposed feature, I've attached a patch that implements it. Feel free to leave any review comments. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-support-for-horizontal-scrolling-in-tab-line.patch >From 722760083b644bb565b5b69f0fccb50cb8946d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= Date: Sat, 5 Sep 2020 15:49:33 +0200 Subject: [PATCH] Add support for horizontal scrolling in tab-line * lisp/tab-line.el ([tab-line wheel-left]): Bind left and right tab line scrolling to the 'wheel-left' and 'wheel-right' mouse events. ([tab-line S-wheel-right]): Analogous change for the functions that switch tabs. * etc/NEWS: Announce the new feature. --- etc/NEWS | 4 ++++ lisp/tab-line.el | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index 749b28ac3f..954f8c8cc7 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -206,6 +206,10 @@ of the next command to be displayed in a new tab. Show/hide the tab bar independently for each frame, according to the value of 'tab-bar-show'. +*** The tabs in the tab line can now be scrolled using horizontal scroll. +If your mouse or trackpad supports it, you can now scroll tabs when +the mouse pointer is in the tab line by scrolling left or right. + ** New bindings in occur-mode, 'next-error-no-select' bound to 'n' and 'previous-error-no-select' bound to 'p'. diff --git a/lisp/tab-line.el b/lisp/tab-line.el index e8c4dc4d93..40f80959cc 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el @@ -764,11 +764,15 @@ global-tab-line-mode (global-set-key [tab-line mouse-5] 'tab-line-hscroll-right) (global-set-key [tab-line wheel-up] 'tab-line-hscroll-left) (global-set-key [tab-line wheel-down] 'tab-line-hscroll-right) +(global-set-key [tab-line wheel-left] 'tab-line-hscroll-left) +(global-set-key [tab-line wheel-right] 'tab-line-hscroll-right) (global-set-key [tab-line S-mouse-4] 'tab-line-switch-to-prev-tab) (global-set-key [tab-line S-mouse-5] 'tab-line-switch-to-next-tab) (global-set-key [tab-line S-wheel-up] 'tab-line-switch-to-prev-tab) (global-set-key [tab-line S-wheel-down] 'tab-line-switch-to-next-tab) +(global-set-key [tab-line S-wheel-left] 'tab-line-switch-to-prev-tab) +(global-set-key [tab-line S-wheel-right] 'tab-line-switch-to-next-tab) (provide 'tab-line) -- 2.28.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 07 11:11:58 2020 Received: (at 43224) by debbugs.gnu.org; 7 Sep 2020 15:11:59 +0000 Received: from localhost ([127.0.0.1]:50417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFIoI-00056N-Kj for submit@debbugs.gnu.org; Mon, 07 Sep 2020 11:11:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFIoG-000567-Rc for 43224@debbugs.gnu.org; Mon, 07 Sep 2020 11:11:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Gm5t4/GyBu7M7uqsSQEyxhiXKafo5sDB8FbtMdG+Bv0=; b=IEGBBw7qCznNn1lQhAc83Tojuk /xHuUr8e4LFVwu1jO/PAQdTULFsQELegxL3g6HjO+cHGS2a14hoRupVBmMLLpT7Y68zSPkar4QaKN oLr+YrULtRuXNlc5WDOKRXhYBQCbSae5ONTcqsCCKrf2eaqNQXzFN+PIYsVybIAGmBt8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFIo4-0000Yh-S9; Mon, 07 Sep 2020 17:11:50 +0200 From: Lars Ingebrigtsen To: Daniel =?utf-8?Q?Mart=C3=ADn?= Subject: Re: bug#43224: [PATCH] Support horizontal scrolling in the tab line References: X-Now-Playing: Trash Kit's _Confidence_: "Shyness" Date: Mon, 07 Sep 2020 17:11:43 +0200 In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Sat, 05 Sep 2020 16:09:27 +0200") Message-ID: <87o8mh7hao.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Daniel Martín writes: > First of all, thank you for the tab bar and tab line implementation in > Emacs 27.1. While using the feature, I found a possible improvement: Add > support for horizontal scrolling if your mouse or [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43224 Cc: 43224@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Daniel Mart=C3=ADn writes: > First of all, thank you for the tab bar and tab line implementation in > Emacs 27.1. While using the feature, I found a possible improvement: Add > support for horizontal scrolling if your mouse or trackpad supports > it. The motivation for this change is that, as the tab line is a > horizontal UI, it makes sense to support horizontal scrolling if the > hardware supports it, as the scrolling feels more natural. > > If you agree with the proposed feature, I've attached a patch that > implements it. Feel free to leave any review comments. Thanks for the patch! Looks good to me, so I've now applied it to Emacs 28. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 07 11:12:03 2020 Received: (at control) by debbugs.gnu.org; 7 Sep 2020 15:12:03 +0000 Received: from localhost ([127.0.0.1]:50421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFIoM-000572-Ub for submit@debbugs.gnu.org; Mon, 07 Sep 2020 11:12:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:58308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFIoL-00056D-Sz for control@debbugs.gnu.org; Mon, 07 Sep 2020 11:12:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jsVifNOdjPavlUaWpVcxdb8YxEvhM0+Bhi5v/rv0z+8=; b=I4dcshxgWgmRjbxQDMuM1Hy5gm 8o9MSH/yFjdRXt1HgIuzSsrbeGUMAyKNzZ4QEZ0v0nd/JxVCJVmn5r7hL9wLw0LdZuB/TThR3j/IS 360XBo+jFGH96DNL5qApsWaZKGrSzM9iiJepEgsUo8TJNP7MY2ggQajPxLFNUWWDMwds=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFIoE-0000Yn-9V for control@debbugs.gnu.org; Mon, 07 Sep 2020 17:11:56 +0200 Date: Mon, 07 Sep 2020 17:11:53 +0200 Message-Id: <87mu217hae.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43224 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 43224 fixed close 43224 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 43224 fixed close 43224 28.1 quit From unknown Sat Aug 16 19:15:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Oct 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator