From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#62275: 28.2; Changing major mode changes the current text scaling Date: Sun, 19 Mar 2023 16:03:26 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32446"; mail-complaints-to="usenet@ciao.gmane.io" To: 62275@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 19 17:04:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pdvW7-0008Fc-Jk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Mar 2023 17:04:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdvVt-0007cR-CA; Sun, 19 Mar 2023 12:04:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdvVr-0007c8-0y for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 12:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pdvVq-00044a-GE for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 12:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdvVp-0007xy-Vx for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 12:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Mar 2023 16:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62275 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.167924182430596 (code B ref -1); Sun, 19 Mar 2023 16:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Mar 2023 16:03:44 +0000 Original-Received: from localhost ([127.0.0.1]:52588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdvVX-0007xP-LS for submit@debbugs.gnu.org; Sun, 19 Mar 2023 12:03:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdvVU-0007xF-9c for submit@debbugs.gnu.org; Sun, 19 Mar 2023 12:03:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdvVT-0007Zf-Uq for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 12:03:40 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdvVR-00042w-Ll for bug-gnu-emacs@gnu.org; Sun, 19 Mar 2023 12:03:39 -0400 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32J4RlE2029016 for ; Sun, 19 Mar 2023 16:03:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=hDx0pkOb6eAuESfLYfCfQDthWjj6yl/pjiJtk8ycRZY=; b=VNHzJ0W7msi7VaT4rV0bSYiplsjspWjBT9tOU86zGeoKQNb64ls3TkMqd4kcLF0WhuQ/ CzYZ3l9N0+MgdH6RaY01g9jaSyjCNIMKmHmjgR2lTLrJ5Sc9axeGNjPk15+A3UUp+jgY ZJDV59Raj3K/4vFkL4EO+DX99z4RlTlm0UatkbafjWy/+6h/NuipouK+TmDpqEgR8dWo 26byMN2SWx/nsKppBKBS/cn6G1HO254rxcDpFhcvZJIgabvyp795cPio/p7coxNVoBTw 6ik75O841OUZxV3nmOsYo0DuA/H3foDVoIl+bV1zf/QMYb/Jea1TfYZcTZzEK+Rl3PG0 Bg== Original-Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3pd56ast9d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 19 Mar 2023 16:03:35 +0000 Original-Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 32JBcQV5037984 for ; Sun, 19 Mar 2023 16:03:34 GMT Original-Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2045.outbound.protection.outlook.com [104.47.66.45]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3pd3r3a7hs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 19 Mar 2023 16:03:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ct3dGTuzTjFT93UNUdVYLTLrBIJJWoG1ftSO0y5mZMBFZtcFoEBLDQ/RClCZoFhzmqxeFGgWaBpL7cPV99Owh4p3qNlsAosf5f4xDQGFvtXEJno7PAZeObjCo/eNcaxk9TVB8I7eHdYT+DQiWR1HOehtWtGfIrHAlcgRtt52rvWrb33J6pBfNWI7TNEWUsIwkmeoMO0zV/NI5N4QZnCzjlDL5Cl3pdAds7w2P3znE54vMnGBEafAQ8mcwhZdqE3otlT4nlx4Hnza3jnbZzbTYyK24HBNmBEjSJiI1JnboFaLL+xQmfl8xTXNBW8KB5sN4E2IihM9lQPmf0wVQ7g9yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hDx0pkOb6eAuESfLYfCfQDthWjj6yl/pjiJtk8ycRZY=; b=R230GqkTGADCAJiaHehMNNpZojs0UC2aAnHkVUd30L/35AVFOFlD4N/v56nC7G2oNUDuedvvqpskJ6A+yYAHOAqIeJGaKr+7Wb6CRr9bOoMCjgWDY7EwRLLG57/6bO+w/W8iAEzX+psgTaKESMP+59U5PFzL7t9qRmqgU7LUIKPMDsxe5UQoOC0khBlTvqpP3ytkXAtKvPBVXEg72iE8kj0pQuuWSsGvOeC30wTUV1MFTun4J+b9A52mwQAvQHjM5/pPsk0JdNSiawK2tvn7p+y4IpvnKlMAp9Wr9YWiZD/0K7Dj7dtlBhn+xTwdPNN/pR+j3RGX9qV2fHHOmZvMqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hDx0pkOb6eAuESfLYfCfQDthWjj6yl/pjiJtk8ycRZY=; b=dWlyJC0ZE0uHS1CFkwrLGO6tmU+bsdDEyZaSDo6wBaksj328RAur8Jxo2gxbPasBXZ8JzjiEi2H68TYybD+OTk6hOIOC7WEUTsy2jPrbY7iV++/8wpH5gJVsSni6Pt3yeOBrsipBUwOHgQl2ddBUDjc33eENE6zGCyg11cm4+no= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SJ0PR10MB6431.namprd10.prod.outlook.com (2603:10b6:a03:486::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Sun, 19 Mar 2023 16:03:31 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::32a3:707b:94c1:6e29]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::32a3:707b:94c1:6e29%2]) with mapi id 15.20.6178.037; Sun, 19 Mar 2023 16:03:26 +0000 Thread-Topic: 28.2; Changing major mode changes the current text scaling Thread-Index: AdlafBUd6ZKfmmZcTjODn5CYfQqR+g== Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|SJ0PR10MB6431:EE_ x-ms-office365-filtering-correlation-id: c9a31127-c516-4daa-0cb5-08db28937938 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nzi2TfCcZpzy+6IqYsMVQ3xFUi1quYVnrmGOepl2Et8sAJpcPphDZKqaypGiGAfIyLKdD3f7y81U7pU1TVXuwpsn4OC2exvBkOmx2T/8G24p4kbH5S1z542OSUc/Edsp+4x/XgDYKkS3cUKuA1ObZfplaltuZJa7X3EOdCiK77o8CqprVhTSFLhLyh0XzN2P1FNi3vOoFLwUZjVBlHLvDKaGVnlqcfAXJxTUkC0WXrXeh0fZ55tksQCnHttiEMa7e9S08a3FTCQbajCA5zl/tzuQc6jBgq5/CgS+SdE2HZixAz/YCGPKk09AhEf1FZh1XO2vEh/ILlL2sphxQKKgGoGUuIc3+Us5wRst6UvcnTLid/mAr7oPPRiteLjEV8K5nYa4y+xLBbNOYbUpyNFa0jk8Q/qKMBItY7IHTZEzTMEKitOKXv7Ju+5ebXshS8lZdw9Cf1WB6PC7jgFkPO7khRGq/j5djrJKZjIpp0b9nVe9R2w45bPRxS+CiOw3/nqxmdiqOpIte9SYHfxVxaYt/bYn/IpfhQgbh0DuOy1vZ5mrY+EBdA34v3dhzgRlBadfbmGwtfS/zbVAg5mv1WeujEcKOI6oi07AaOQycmU65BWg7jYsMivWutB67gkaZjIYJ6pUhkEisaSzNN4++6+eqsnKeFfRWCZUUVe3aAU7axUkOXSWasqM7SsQp7CEGnYNkVtkLqEBS5JK63vXEDDXMQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(39860400002)(366004)(136003)(376002)(346002)(396003)(451199018)(41300700001)(52536014)(76116006)(8676002)(6916009)(66946007)(64756008)(66446008)(66476007)(66556008)(8936002)(38100700002)(2906002)(122000001)(33656002)(55016003)(86362001)(38070700005)(5660300002)(44832011)(71200400001)(7696005)(186003)(6506007)(9686003)(26005)(316002)(478600001)(83380400001)(45080400002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: +3V+WaFemSBPLaFCj5A4FUFQxE9WqVzndnTEQm5qu+PjwfEgfnYh0VodXAL3II0xhawvQnfJprNnw7x0UJMECUQqPCdDl/VEq81SOFYR7ii1hiSJJKyvc+LoPJ/vKmlfmyeUai3TwCR+0nFGi03nZN7eMSkGdIh6EO3a5xi6ozmw1vDk4dPKV60Sx0KAI/aCkQ5iSpkJLohhf2yTIpoyEKP0h9QVZk6A612CS9Xfekdw7hQ1gCVhpojfDV2CNByhYV6lRNMnrvVoSI54Em/GLrLDFZ58Lfu+eFiNklExOr0DOBDDN8/Ku3C/PCxKS/Imx2mssxkidjAwNKtj4Twu7zkisgv6cwIWMxt3lngoa4ZR7H7q1CjvHPB0zfD5Sy1KwRcjiBv6W1QZ88VLdCGZ2cQtmh/pcRttbo9wPoPDiChmdaeCVJ0METRdeEyKZIDjZjtc+Ted7AWfJLQJI0WxwybAIEAkujqKZJeYr6Gr1/K/HPIIsDwrDD0BH0IP/0xPOC02RRQSbjq0QY5tbeSjUeBLzX9tmjDAFbAB61BssiVaew/1+2ygvEoEWJAiqfnh0aDHmmxIqBWoc29Xt4d+aNoA/BDFXsSeoAZqGay9gojqx6mBilBLDsbIc/9QS/8pwF/6THratpUs27r8y54FQa1zHI7XFrzixONgh9NJYxc614agXUWI3m2e2taL5tV13IeUm8OHogRFrw1gt5aF3D9w19ApSfUKJTnUsqIpSedknA1NgaaG+5md7r X6ukaISLnsB2k1dbeM4Wg8kPRSnJAhIYuVVThLPqCqeOz2pcIXtupe/Tj0Z6esn8/mUvIZFTG2RjMYnj45seFsOh74U9hvp7be X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Sa55SXzukc3Cpn13JNpPruoy+PgESuo4gda91j2uakz7Ja/TO25wEcfzbg6uxg07P4V5gcILOdiSPmDyr51bZ1smifDPiwVrfFwiAwgR+dVdo71+bAu9VzW52+vz6TWNWpRFnmvOLFV58PXQqTHBhAOjvO2K1r0GJBAdNogrMTvgC7vEnjFgclN83n93gdv85vzyAWt++Dra9tGFGRR2cx7INjpceZhh8CG4DXhafUW0o962lPesVo113nmmZePRCWQhDBX1qqkBBaV80t/VXTVHAPoqQGf/n/6FWIejvkpnC9irC2YsxqZggTRQqSuG0ul6nUMlLAvgtSxIVQU+yMswSNuN2gd6578Mi/WN7JwKmYcUa2gouF4w3hfDK4jZBY1htUdBKgNuJRBAYXVLtg2tgmQYLRfxmLArCrJf8XgXdcghAbhI8OtmXMTwbtd+9ZmlC718ATuRSsU3t77nP6mEjRGC7m90SuzVBKi9oxaOBdC4D8+Qqmv0PfgbM01aEoKsjs+2vu5pG+i8nIlHwYYNW7p8IQLkSkexH940deY4wReGUb/0Ab/xlgUyBVaP900HbVqsbxW69Wc2v9R9BO5f594Sme+v/px0dgcD8YnxPUUDTabGl8M/mfUO9gsH0N57UuYiIi77dVPcY9VIR4zyYF80JR2rnZ6sig7+j3FZ5ywORlqIZzh/YqfyyOHgCeT9w/9yD49R0wARqxyAaEz03IAOQBeeLXjdFmQAA3bDFp u3bCb8rgSDBWenjNBr X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9a31127-c516-4daa-0cb5-08db28937938 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2023 16:03:26.1608 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dT2gNmPvqbJBXzCKNKALK5QG1oVpA/G7kgjTQeAQdGKtZfYUG/wOYYxB/nTOT69TrU3VSMG4baBRxesQQyEa8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB6431 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-19_08,2023-03-16_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 suspectscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303150002 definitions=main-2303190137 X-Proofpoint-ORIG-GUID: JGLDjrCCdt5rCjb_Smr3NhvSUY6UG6gA X-Proofpoint-GUID: JGLDjrCCdt5rCjb_Smr3NhvSUY6UG6gA Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258240 Archived-At: Maybe this is intended and documented somewhere - if so, feel free to close it. I haven't seen it mentioned, and it doesn't seem right to me. emacs -Q Use the mouse (with `C-') or keys to text-scale the buffer, e.g., to enlarge the text size. M-x emacs-lisp-mode The text in the buffer (*scratch*) is resized back to its original size. Should that happen? If so, why - is that the right behavior? In addition, if you then do `M-x lisp-interaction-mode', the text size doesn't change back to the size you had scaled it to previously. Text-scaling is per buffer, and the buffer hasn't changed. Only the major mode has changed. I can guess that this is happening because changing the mode kills all local variables. But is this the intended behavior, i.e., what we want? As a user, I find this unexpected (even a bit annoying). I think users will (and should) think of text-scaling as per buffer, not something that's affected by changing the major mode. I tried doing this, but it didn't fix the behavior. (put 'text-scale-mode-remapping 'permanent-local t) (put 'text-scale-mode-lighter 'permanent-local t) (put 'text-scale-mode-amount 'permanent-local t) Haven't tried to understand what's really going on - just reporting that the behavior seems odd to me. If there's (also) a good use case for the current behavior then maybe we could have a user option, to choose whether a major-mode change resets the text scale? In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.19044 System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.2604) Configured using: 'configure --with-modules --without-dbus --with-native-compilation --without-compress-install CFLAGS=3D-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB (NATIVE_COMP present but libgccjit not available)