From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: word-wrap in echo area Date: Mon, 11 Aug 2008 12:03:22 -0400 Message-ID: <87od3z5yk5.fsf@stupidchicken.com> References: <87zlp4raab.fsf@catnip.gol.com> <87d4lzehq2.fsf@stupidchicken.com> <87skuqbwr8.fsf@stupidchicken.com> <85E9BC5B-7337-4CD4-A783-6B2FAEBAEBCA@gmail.com> <87tzf6c5il.fsf@stupidchicken.com> <87abgxx0ju.fsf@stupidchicken.com> <4D997CA8-A2ED-4E12-9F91-76E98AE95210@gmail.com> <87prpsjhre.fsf@stupidchicken.com> <375C0006-2B47-4B1F-9EB2-ED47941C2DB3@gmail.com> <87od56tp4o.fsf@stupidchicken.com> <71C2D50C-1680-4ADD-A7E3-7B7A1146B85D@gmail.com> <87od553ktd.fsf@stupidchicken.com> <670AE360-A39E-483B-A0EB-E70FC97CC8AE@gmail.com> <1BFB5A3E-310A-4F88-B3A2-3758EB4A4ACC@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218470895 13610 80.91.229.12 (11 Aug 2008 16:08:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2008 16:08:15 +0000 (UTC) Cc: Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 11 18:09:04 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 1KSZww-000585-IO for ged-emacs-devel@m.gmane.org; Mon, 11 Aug 2008 18:08:50 +0200 Original-Received: from localhost ([127.0.0.1]:51357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSZw0-00087K-Hp for ged-emacs-devel@m.gmane.org; Mon, 11 Aug 2008 12:07:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSZrI-00035F-GG for emacs-devel@gnu.org; Mon, 11 Aug 2008 12:03:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSZrG-00031q-US for emacs-devel@gnu.org; Mon, 11 Aug 2008 12:03:00 -0400 Original-Received: from [199.232.76.173] (port=43431 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSZrG-00031T-J8 for emacs-devel@gnu.org; Mon, 11 Aug 2008 12:02:58 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:41275 helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSZrG-0003T6-Am for emacs-devel@gnu.org; Mon, 11 Aug 2008 12:02:58 -0400 Original-Received: by cyd (Postfix, from userid 1000) id 08F0557E1CA; Mon, 11 Aug 2008 12:03:22 -0400 (EDT) In-Reply-To: <1BFB5A3E-310A-4F88-B3A2-3758EB4A4ACC@gmail.com> (David Reitter's message of "Mon, 11 Aug 2008 15:38:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:102287 Archived-At: David Reitter writes: >>>> Incidentally: how would one turn on word-wrap for the echo area? >>>> Word wrapping for `message' would be very useful. (It could even >>>> be the default.) > > It's a simple change. Is this trouble-prone, or can it be installed > now? > > > Index: xdisp.c > =================================================================== > RCS file: /sources/emacs/emacs/src/xdisp.c,v > retrieving revision 1.1245 > diff -c -r1.1245 xdisp.c > *** xdisp.c 8 Aug 2008 15:43:45 -0000 1.1245 > --- xdisp.c 11 Aug 2008 13:33:36 -0000 > *************** > *** 8320,8325 **** > --- 8320,8326 ---- > sprintf (name, " *Echo Area %d*", i); > echo_buffer[i] = Fget_buffer_create (build_string (name)); > XBUFFER (echo_buffer[i])->truncate_lines = Qnil; > + XBUFFER (echo_buffer[i])->word_wrap = Qt; We shouldn't turn on word wrap unconditionally in the echo area, because there are instances in which word wrap is undesirable. For example, when the buffer contains words that are (on average) half the window width, word wrap actually makes text harder to read than ordinary line wrapping. Maybe this situation never occurs in the echo area; maybe not; in any case, let's leave this till after the release.