From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: mode-line tooltips for "[" and "]" in recursive-edit Date: Fri, 11 Apr 2008 12:28:47 -0400 Message-ID: References: <200803201508.m2KF8C0S002150@sallyv1.ics.uci.edu> <006301c88aa9$ffafda40$c2b22382@us.oracle.com> <200803201704.m2KH4HVt023198@sallyv1.ics.uci.edu> <47E37419.6080708@swipnet.se> <18404.11482.3867.697294@kahikatea.snap.net.nz> <47E430B0.4080408@gmail.com> <18404.12883.894990.383516@kahikatea.snap.net.nz> <87iqzfczrr.fsf@jurta.org> <47FC8E8F.1020002@swipnet.se> <18429.45504.593032.149745@kahikatea.snap.net.nz> <47FDC15B.4060604@swipnet.se> <008c01c89b26$7bf38ac0$c2b22382@us.oracle.com> <009701c89b3b$0c5f7f60$c2b22382@us.oracle.com> <47FEF5BC.5040205@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1207931347 20301 80.91.229.12 (11 Apr 2008 16:29:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2008 16:29:07 +0000 (UTC) Cc: 'Juri Linkov' , 'Nick Roberts' , "'Lennart Borgman \(gmail\)'" , Drew Adams , emacs-devel@gnu.org To: Jan =?iso-8859-1?Q?Dj=1FFFFFFFrv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 11 18:29:39 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JkM88-0004k3-40 for ged-emacs-devel@m.gmane.org; Fri, 11 Apr 2008 18:29:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkM7U-000114-61 for ged-emacs-devel@m.gmane.org; Fri, 11 Apr 2008 12:28:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JkM7P-0000zE-AJ for emacs-devel@gnu.org; Fri, 11 Apr 2008 12:28:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JkM7N-0000wS-Gq for emacs-devel@gnu.org; Fri, 11 Apr 2008 12:28:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JkM7N-0000wK-7d for emacs-devel@gnu.org; Fri, 11 Apr 2008 12:28:49 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JkM7M-00016B-R4 for emacs-devel@gnu.org; Fri, 11 Apr 2008 12:28:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjoFACEu/0fO+KV8/2dsb2JhbACBXalf X-IronPort-AV: E=Sophos;i="4.25,642,1199682000"; d="scan'208";a="18358449" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 11 Apr 2008 12:28:48 -0400 Original-Received: from pastel.home ([206.248.165.124]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id RUN31048; Fri, 11 Apr 2008 12:28:48 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id DB7968487; Fri, 11 Apr 2008 12:28:47 -0400 (EDT) In-Reply-To: <47FEF5BC.5040205@swipnet.se> ("Jan =?iso-8859-1?Q?Dj?= =?iso-8859-1?Q?=1FFFFFFFrv=22's?= message of "Fri, 11 Apr 2008 07:23:08 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94976 Archived-At: >> Especially since the truncation is inexact anyway (depending on the >> chars found and the fonts used for them we may not cut at the right >> place: the only right way to truncate is via tuncate-lines). > Truncate happens at newlines. I understand the intention, but Emacs is notoriously bad at relating string-sizes and window-sizes, so your comparison of text-size with window-width just can't be foolproof: you'll get cases where you think you cut the line short enough, but it wraps onto the next line anyway because the fonts are bigger. And other cases where you end up cutting shorter than you'd have to. > I thought it best to show complete lines rather than lines cut at some > random word. But it's also good for the user to know that there's more to it. And if he decided to keep it all on a single-line, he's probably willing to deal with some side effects. Stefan