From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: frame-cmds enlarge-font Date: Fri, 16 Dec 2016 06:56:26 -0800 (PST) Message-ID: <45ed52ca-1fd1-411c-95d2-8f40d3ad1e47@default> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1481900226 16466 195.159.176.226 (16 Dec 2016 14:57:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2016 14:57:06 +0000 (UTC) To: =?utf-8?B?R2F1dGhpZXIgw5ZzdGVydmFsbA==?= , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 16 15:57:02 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHtwU-0003f5-Bu for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Dec 2016 15:57:02 +0100 Original-Received: from localhost ([::1]:60963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHtwY-0007fO-Pp for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Dec 2016 09:57:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHtw0-0007To-Um for help-gnu-emacs@gnu.org; Fri, 16 Dec 2016 09:56:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHtvx-0002QH-US for help-gnu-emacs@gnu.org; Fri, 16 Dec 2016 09:56:33 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:37639) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cHtvx-0002Pa-N8 for help-gnu-emacs@gnu.org; Fri, 16 Dec 2016 09:56:29 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uBGEuS7E028122 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 16 Dec 2016 14:56:28 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.13.8/8.14.4) with ESMTP id uBGEuR9k028331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 16 Dec 2016 14:56:28 GMT Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id uBGEuR61012411; Fri, 16 Dec 2016 14:56:27 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111968 Archived-At: > I want the functionality of zoom-frm or default-text-scale (zooming in > on all windows of a frame). >=20 > I installed both via elpa, but none worked. The first zoom worked, > then nothing more. Sorry for your trouble. > A little investigation hints that the problem is with frame-cmds.el, > and its function enlarge-font. This seems to relate to an ancient > but (#119 and #1562), Emacs 23. I am currently on Emacs 24.4.1 > because Debian. I doubt that that bug is relevant here. As that comment says, it was fixed in Emacs long ago, so the workaround commented out is not needed or useful. > There is a comment in frame-cmds.el, with a work-around for this bug. > I tested it to no av, but I'm not sure I did it right: > - replaced frame-cmds.el function enlarge-font with the work-around. > Recompile with (byte-recompile-directory package-user-dir nil 'force), > start a new emacs instance. This seems to work better when I call > enlarge-font directly, although 1 and -1 as parameters don't always > work. zoom-frm's command zoom-in still works only once. See above. > For now I will just define my-enlarge-font in my init.el as what is in > the comment in frame-cmds.el, and call that directly. It would have > been nice to have the extra functionality of zoom-frm, but I'm not > sure what the correct way to do that: modify frame-cmds, recompile, > make zoom-frm use that. I suggest you follow up with me off list. It's not at all clear what you are doing or what does not work. FWIW, I use `enlarge-font' and the commands in `zoom-frm.el' all day long everyday, in every Emacs version since 20, with no problem. A guess is that you are doing something else in your init file, which is causing problems (especially since you seem to have the same problem with both my code and `default-text-scale'). Do you see the same problem if you start Emacs using `emacs -Q' (no init file), and you then load only `frame-cmds.el' and `zoom-frm.el'? If so, then that's the place to start the discussion, to find the problem. If not, then recursively bisect your init file, to find the cause. You can use command `comment-region' to comment out a block of text (with `C-u' it uncomments). Remove 1/2, then 3/4, 7/8,... of your init file until you find the problem. Follow up off list, please; this is not the place to debug the problem. You can always report back to the list about anything you discover, if you think it can help others.