From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#36421: Having some text with face height > 1.0 causes scroll-step to be ignored Date: Thu, 04 Jul 2019 16:11:18 -0400 Message-ID: <85lfxdef15.fsf@gmail.com> References: <83blyghmhu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="243548"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt) Cc: Juanma Barranquero , 36421@debbugs.gnu.org, Pip Cet To: Andrea Cardaci Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 04 22:23:58 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 1hj8Gr-00117j-Ek for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jul 2019 22:23:57 +0200 Original-Received: from localhost ([::1]:48570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj85T-0003tv-8q for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jul 2019 16:12:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43115) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj85N-0003qp-1Q for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 16:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hj85L-0007vF-Iy for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 16:12:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hj85L-0007v6-Fe for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 16:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hj85K-00089a-8l for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2019 16:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jul 2019 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36421 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 36421-submit@debbugs.gnu.org id=B36421.156227108631294 (code B ref 36421); Thu, 04 Jul 2019 20:12:02 +0000 Original-Received: (at 36421) by debbugs.gnu.org; 4 Jul 2019 20:11:26 +0000 Original-Received: from localhost ([127.0.0.1]:51973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj84k-00088g-5n for submit@debbugs.gnu.org; Thu, 04 Jul 2019 16:11:26 -0400 Original-Received: from mail-io1-f52.google.com ([209.85.166.52]:34735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj84i-00088S-67 for 36421@debbugs.gnu.org; Thu, 04 Jul 2019 16:11:24 -0400 Original-Received: by mail-io1-f52.google.com with SMTP id k8so14912647iot.1 for <36421@debbugs.gnu.org>; Thu, 04 Jul 2019 13:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=hkj0hbvNaFIiMUDnBSlvHulSUAh1ANEH/1KvO68W+1A=; b=DpucDPs7cKV7vU8gTiyBjN09flYWkiyB047UjTAvDmRo/7up2OKhpLAsDQLZYuf1a2 NkphY4kiX9pERgOwi72dKUdrW2BT/EfCKh5DYAUC0ewq/hMlezcx4L3NFuudA0IW6M35 36PrbiilzF3FHMFmk6JdeaKwwg/YwCq1RdA/EFsGJpt5BmOZ9baaZJ+/4iK7S5hjvLPJ sD3FvWU7E60erWe3Seeqb3Sqjb71yqTplBWwdksR35t/why7Hp/lncaQs4ioDAvigMJf xmPO4xTwR9kPq3aYOv/AuP6DS74xgBMmj5Xw35rBOxSyiytnIok9cMHWKpPNPsokrv2N VVow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=hkj0hbvNaFIiMUDnBSlvHulSUAh1ANEH/1KvO68W+1A=; b=Y9fD6jSGSkF21YMSq2LVTGb80X1wZda6AfoKfL1dzv5AtnGy5JSTq2DaJgv7GQ2nl+ f1zDXeRk0KdA/06pfgra49euN+AtRc8KHQu1KkJICmTOe7wZ/15V9C2ehRA+u4PqTYNI Ta2YlekapXsHo/v4yNeoD/e+cuh0ctRbqRsUUJTGgcsQf/+EBJovHH5BZK/boAwIHDQ5 1RLr/AaxCN9lQo88IEQXAxqJ17RlariCtVIGIrRyqUaldVcEFqOlYESguQ5kMd/JsvEc snHO/xEmn0ylQNApadMTkDkbOhQj9n/go7bnsDNEcpwNUxXk8YUlBUbLG213PXfKlgl7 QdRg== X-Gm-Message-State: APjAAAXIf6XL1NKuSmn01bYfX5mdizUinNYRrX+p+zcL+9F86Tii15MF hOd7L7C6KwwmCG2f9ic5nbQ= X-Google-Smtp-Source: APXvYqyUcYAYh+zPxlpjcvVZ0IqiEW51tCT2LQatPLj4vdxAZcRop0c3QIMEFNupRYnqWZjj6D4Jpg== X-Received: by 2002:a5e:9701:: with SMTP id w1mr187549ioj.294.1562271078591; Thu, 04 Jul 2019 13:11:18 -0700 (PDT) Original-Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id z17sm8497949iol.73.2019.07.04.13.11.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Jul 2019 13:11:18 -0700 (PDT) In-Reply-To: (Andrea Cardaci's message of "Sun, 30 Jun 2019 00:43:07 +0200") 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:162079 Archived-At: Andrea Cardaci writes: >> If you have a lot of higher-than-default lines, and you don't like the >> effect of scroll-conservatively, then my suggestion is to set >> scroll-conservatively to 2 or 3. > > It's much better this way (set to 2), there are still some > *unpleasant* moments where the point is not exactly on the bottom (by > a fraction of line height) and some others where the point is scrolled > up by one entire line. But I guess this unavoidable, maybe I should > just stop worrying and love the recentering... It looks like scroll-down-line does the right thing, maybe a wrapping command like this would work for you: (defun previous-and-maybe-scroll-line (&optional arg) (interactive "^p") (when (< (line-beginning-position 0) (window-start)) (condition-case () (scroll-down-line arg) (beginning-of-buffer nil))) (previous-line arg)) (define-key global-map [up] 'previous-and-maybe-scroll-line) ;; Corresponding [down] command left as exercise for reader