From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#7822: 24.0.50; `fit-window-to-buffer': take display artefacts into account Date: Tue, 11 Jan 2011 05:40:06 +0100 Message-ID: References: <7A4D04DE08AE47B8B59F98C7D0215CAD@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294721665 6643 80.91.229.12 (11 Jan 2011 04:54:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 Jan 2011 04:54:25 +0000 (UTC) Cc: 7822@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 11 05:54:20 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PcWFP-0000aU-Fr for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jan 2011 05:54:19 +0100 Original-Received: from localhost ([127.0.0.1]:56868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcWFO-0000gb-91 for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Jan 2011 23:54:18 -0500 Original-Received: from [140.186.70.92] (port=48716 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcWFH-0000gG-CR for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2011 23:54:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcWFF-0001v0-Ov for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2011 23:54:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcWFF-0001uw-MT for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2011 23:54:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PcVvm-0007B5-IC; Mon, 10 Jan 2011 23:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jan 2011 04:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7822 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7822-submit@debbugs.gnu.org id=B7822.129472038327523 (code B ref 7822); Tue, 11 Jan 2011 04:34:02 +0000 Original-Received: (at 7822) by debbugs.gnu.org; 11 Jan 2011 04:33:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PcVup-00079s-FW for submit@debbugs.gnu.org; Mon, 10 Jan 2011 23:33:03 -0500 Original-Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PcVuo-00079P-1N for 7822@debbugs.gnu.org; Mon, 10 Jan 2011 23:33:02 -0500 Original-Received: by eyd10 with SMTP id 10so9385171eyd.3 for <7822@debbugs.gnu.org>; Mon, 10 Jan 2011 20:40:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=mgKjbI247zKQrHJe3ZIHJLxSBZafEaz6Ly/hLdp3nVg=; b=deGukNGNgQ55VlM1ORP59+DN/Ur9q2k8IjySoDdnLWOGykyjFr2ZsvS32cR9NeUb7W +2FoWVnPHnhkztyWg4ofICj+OpM4BXWVcPte4arTJDMaEuozEbFxCNmRo9NGXAV8r/tv ptEiYzsmhchPX75LD4YDxg8kyZl8s9X0xcZ4k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=HdDSARZqkbQpJ9X2qcm5Xj2p6tAo/YLXloqs2mYx64IUlB2NLrVdfK0IkagrQOjdt9 x4IFJQR2IAtZEzCtLKvMx+3r6yiZR6+S2ft6KfA4B2KbDPcgjZejzfK96qgP0Mm0JCvS Ys51qySvv8jHjyFqHCJhWY82xAM2UC1y/1kyI= Original-Received: by 10.213.28.142 with SMTP id m14mr2480403ebc.58.1294720826658; Mon, 10 Jan 2011 20:40:26 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Mon, 10 Jan 2011 20:40:06 -0800 (PST) In-Reply-To: <7A4D04DE08AE47B8B59F98C7D0215CAD@us.oracle.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 10 Jan 2011 23:34:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43255 Archived-At: On Tue, Jan 11, 2011 at 1:21 AM, Drew Adams wrote: > Enhancement request. > > See emacs-devel thread "`fit-window-to-buffer-as-displayed'?", > 2011-01-10: > http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00323.html > > `fit-window-to-buffer' does not take any display artefacts into account, > except for visual (screen) lines. =C2=A0The enhancement would be to have = it > do so. > > How much it tries to do so should be under programmer control, so that, > e.g., one could tell it (e.g. via a new optional parameter) not to take > any display stuff into account (i.e., to treat the buffer content as > just plain text with a fixed-width font of the current char size). > > See the emacs-devel thread for more info about this. I think this would be a bit easier if adjust_window_trailing_edge gave different error messages for different problems, i.e. "too small", "too big" etc.