From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#28182: maybe implement CTRL++ to zoom text Date: Tue, 20 Aug 2019 19:12:52 -0700 (PDT) Message-ID: References: <87y3qcs3nf.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="79575"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Richard Stallman , 28182@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Stefan Kangas , Tak Kunihiro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 21 04:14:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i0G8Z-000Ka2-HQ for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Aug 2019 04:14:11 +0200 Original-Received: from localhost ([::1]:43360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0G8X-0006eN-Mv for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Aug 2019 22:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36054) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0G8S-0006eE-AG for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 22:14:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0G8R-0004lE-9e for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 22:14:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53749) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0G8R-0004l6-5T for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 22:14:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i0G8P-0000lA-KX for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2019 22:14:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Aug 2019 02:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28182 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28182-submit@debbugs.gnu.org id=B28182.15663535862842 (code B ref 28182); Wed, 21 Aug 2019 02:14:01 +0000 Original-Received: (at 28182) by debbugs.gnu.org; 21 Aug 2019 02:13:06 +0000 Original-Received: from localhost ([127.0.0.1]:34337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0G7V-0000jl-Qn for submit@debbugs.gnu.org; Tue, 20 Aug 2019 22:13:06 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:42114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i0G7S-0000ip-7V for 28182@debbugs.gnu.org; Tue, 20 Aug 2019 22:13:04 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7L2Bgah017892; Wed, 21 Aug 2019 02:12:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=7IUslRRXC13UJJiE67TPybL/EX/ki5hAa/XE+Wh65xo=; b=gFQ66HIu3eWUMDWkwzdUHIIfpADdwQx2BYmUwN5y5xTH7a2aq2wEgVoG/liaIPojsn1R 0aG3njXN3I9JCnNU1fPTt1rwj2mSGBSKIfpPaF4QzNv8DmzUG4a29ehlXkjsMuwDVOaS lxARo5Cn4DUJpyJkbuTqRoLa28z++USkulfF0F+GvlMsXDfRvX5sUzvvLmxdL65dS7Sn Hg1KaYDaIckWOxdi77RvUhHdba3FGUwUbB6AvNehgC1Q9yEKos1MdoGSYwEU4ewPWf+v NKF1bnArhuRRylS+YI0nvWozReA2QZBXnVfFJUgpy677UMb/DVZHSTf+9K2Njdf+x8/A GQ== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2ue90tjc8t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Aug 2019 02:12:56 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7L28Ml7038990; Wed, 21 Aug 2019 02:12:55 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 2ug269dwxu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Aug 2019 02:12:55 +0000 Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x7L2CrO1016428; Wed, 21 Aug 2019 02:12:53 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9355 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908210019 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9355 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908210019 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165462 Archived-At: > I think this is a good idea, which has the usability benefit to mirror > what happens in many common browsers, and other common text editors. > I remember myself that I was struggling to find the binding to change > the font size when I was an Emacs beginner. >=20 > I have implemented this suggestion in the attached patch. >=20 > However, this will be an incompatible change, since this was > previously bound to scrolling up and down by close to a full screen. > I therefore moved that binding to the meta modifier and wrote a NEWS > item that explains how to get the old functionality back. >=20 > How does it look? I'm not sure that mouse-4 and mouse-5 have that meaning for all mice and platforms. Some mice have separate mouse-4 and mouse-5 buttons. I think this is the right way to do it: (global-set-key (vector (list 'control mouse-wheel-up-event)) 'text-scale-increase)) (global-set-key (vector (list 'control mouse-wheel-down-event)) 'text-scale-decrease)) I've been using that for years, and I use it all the time. --- But I bind them to `zoom-in' and `zoom-out', which can zoom either the buffer (via `text-scale-(in|de)crease) or the frame (via `zoom-frm-(in|out)'). A prefix arg toggles between buffer and frame zooming. https://www.emacswiki.org/emacs/download/zoom-frm.el