From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.bugs Subject: bug#38699: `text-scale-increase', `menu-set-font', and sexps Date: Tue, 24 Dec 2019 15:36:02 -0300 Message-ID: References: <83pnghzrm9.fsf@gnu.org> <87immblvd1.5.fsf@jidanni.org> <87bls1ur4a.5.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="48277"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38699@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 24 19:37:11 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 1ijp3P-000CPY-Bv for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Dec 2019 19:37:11 +0100 Original-Received: from localhost ([::1]:41306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijp3N-0005sV-KQ for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Dec 2019 13:37:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56498) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijp3H-0005pt-Q9 for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 13:37:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijp3G-00008O-Ft for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 13:37:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ijp3G-00008K-CV for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 13:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ijp3G-0007i9-AF for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2019 13:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eduardo Ochs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Dec 2019 18:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38699 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 38699-submit@debbugs.gnu.org id=B38699.157721258229588 (code B ref 38699); Tue, 24 Dec 2019 18:37:02 +0000 Original-Received: (at 38699) by debbugs.gnu.org; 24 Dec 2019 18:36:22 +0000 Original-Received: from localhost ([127.0.0.1]:53077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijp2c-0007hA-CQ for submit@debbugs.gnu.org; Tue, 24 Dec 2019 13:36:22 -0500 Original-Received: from mail-pj1-f66.google.com ([209.85.216.66]:55680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijp2a-0007gu-80 for 38699@debbugs.gnu.org; Tue, 24 Dec 2019 13:36:21 -0500 Original-Received: by mail-pj1-f66.google.com with SMTP id d5so1456309pjz.5 for <38699@debbugs.gnu.org>; Tue, 24 Dec 2019 10:36:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=1WMAsbjcFu5/AwZN363OHTb2qLx8CjLyNkIaL3p02zY=; b=py0+699PkG96i6SGT6oCj0SEKX7iaYZB2oWKoPZMXdkmZeScbBz2BDBFOhMpYkCL19 YTOe1wJscwaWImTUH3vPZInjqpoPgX2cr5g9zEGW2oE0zTHYplKX+TCnWMUS4zXFbkiR z6a3nO/lhF0mxxi4m04awd1E6lTLq5/cVThMB1ORTCp0tagJ9F0Q/LXp+gs0QpTvIfl+ +O1W1G324Ws74jqSTResKEJIEJgdvOyGWwpgNpg67JarNaRkmGZqZsAhuL2SNxgp6Hrk Q0B1arUXfnHCiwlN14JBR3b+FD3CR3PLc0d6ZbKq6YYFs+sAj7xKGdu/0RbKBcmfSonp YURQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1WMAsbjcFu5/AwZN363OHTb2qLx8CjLyNkIaL3p02zY=; b=k4lA3TupreJp5HoXZo92RaeV65Hm8L9WRyoi24JUtkm0tjb07CnUDTxD5TCvqeWUSW GSk2yZFq2NmO//20EXiD5V0rgtUnEv4zXsqfgYEDdRbaq1yl/in6BolA4VhO/cLy2vrD PTB88vRECPwlfgWsWcSITYSlP8YQdAA2czA4EtBzfE8VPaAPn+qvCyRLesqddqvChCKJ s5Txm9QXPTZNJb4Al9WRIRtp8MUbI5++rqGy6Zxz8nAttSBWmkIhObCDflPrdFHpkmm6 hwNPwt0q8ZojU6VTFd6GQzvJZ/X2pXzoSmkOWhZz1BvFDqnyI8xo0rTAQW573LAKaI4N KcBA== X-Gm-Message-State: APjAAAWud9L1XwOh+Vv9ZPKJ4cMFnmWjvey0KYfnNw/PMM+nOJa1uHfs X6bg6EheF8z6O5FWiMdP/fCQBBcZmLpBMyaczCk= X-Google-Smtp-Source: APXvYqxtcowZ8NDE06EOIv+rlITxUMzGnPFOeZ88gCNij7yJrBp5LDxlSfy0To+rxMa0B7+UJCIy93mlMJjIYGdi8kQ= X-Received: by 2002:a17:902:8547:: with SMTP id d7mr38302507plo.44.1577212574017; Tue, 24 Dec 2019 10:36:14 -0800 (PST) In-Reply-To: <87bls1ur4a.5.fsf@jidanni.org> 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:173722 Archived-At: Hi all, Let me take Dan Jacobson's proposal one step further. I changed the subject of the thread, so here is a link to his message: https://lists.gnu.org/archive/html/bug-gnu-emacs/2019-12/msg00897.html I use a laptop with a screen resolution that is low compared to modern standards - 1280x800 - and because of that I prefer to choose my Emacs fonts by hand from the ones listed by: xlsfonts | grep -v ^- | sort | uniq When I want to change to another font I usually run `M-x font', that displays a temporary buffer with the sexps below (plus some cruft): (set-frame-font "5x7") (set-frame-font "fixed") (set-frame-font "6x13") (set-frame-font "9x15") (set-frame-font "10x20") (set-frame-font "Monospace 7") (set-frame-font "Monospace 9") (set-frame-font "Monospace 10") (set-frame-font "Monospace 11") (set-frame-font "Monospace 12") (set-frame-font "Monospace 22") and I choose a font, or try the fonts, from there by typing `M-e' on a sexp; my `M-e' is roughly equivalent `C-e C-x C-e'. I spent about one hour playing with the functions in lisp/face-remap.el - `text-scale-increase' and friends - a few days ago, but I didn't get very far... Please, please, PLEASE, make them more hacker-friendly! AFAICT the current comments in lisp/face-remap.el don't even say how we can play with `face-remapping-alist' in low-level ways... By the way, I just played a bit with the source code of `menu-set-font' at (describe-function 'menu-set-font) using this, (fboundp 'x-select-font) (setq myfont (x-select-font)) (setq myfont (mouse-select-font)) myfont and I realized that I don't know how to convert the value of myfont - a # thing - into something that has a read-able syntax. Hints very welcome, and sorry if this is something that everybody is supposed to know =3D). Cheers & thanks in advance, Eduardo Ochs http://angg.twu.net/#eev http://angg.twu.net/emacsconf2019.html http://angg.twu.net/e/emacs.e.html#menu-set-font http://angg.twu.net/e/emacs.e.html#text-scale-increase On Sat, 21 Dec 2019 at 21:44, =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson wrote: > > >>>>> "EZ" =3D=3D Eli Zaretskii writes: > > EZ> There are: "C-x C-+" and "C-x C--". In Emacs 27, there's also > EZ> C-wheel-up and C-wheel-down. > > OK very good. > Problem is: User uses it. Says "Ah, now I've got it perfect." > But there is no additional command to spit out some lisp that he can > paste in his .emacs file to make his changes permanent to the next > session. > > No consideration is made that the user might want to save his changes.