From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: longlines mode and kill-line: missing space between boundary words Date: Wed, 05 Dec 2007 23:58:55 +0100 Message-ID: <47572D2F.9010307@gmx.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196895591 25304 80.91.229.12 (5 Dec 2007 22:59:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2007 22:59:51 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: =?ISO-8859-1?Q?Jacek_Chrz=B1szcz?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 23:59:59 2007 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 1J03Di-0006yC-Oc for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2007 23:59:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J03DS-0007WW-1y for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2007 17:59:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J03DN-0007Ty-UY for emacs-devel@gnu.org; Wed, 05 Dec 2007 17:59:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J03DM-0007S7-FK for emacs-devel@gnu.org; Wed, 05 Dec 2007 17:59:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J03DL-0007Rv-Ol for emacs-devel@gnu.org; Wed, 05 Dec 2007 17:59:35 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J03DL-0005UR-DO for emacs-devel@gnu.org; Wed, 05 Dec 2007 17:59:35 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J03DL-0005QV-3T for emacs-pretest-bug@gnu.org; Wed, 05 Dec 2007 17:59:35 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1J03DH-0005TV-I9 for emacs-pretest-bug@gnu.org; Wed, 05 Dec 2007 17:59:34 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1J03DH-0005T3-4H for emacs-pretest-bug@gnu.org; Wed, 05 Dec 2007 17:59:31 -0500 Original-Received: (qmail invoked by alias); 05 Dec 2007 22:59:30 -0000 Original-Received: from N812P022.adsl.highway.telekom.at (EHLO [62.47.45.118]) [62.47.45.118] by mail.gmx.net (mp018) with SMTP; 05 Dec 2007 23:59:30 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/5FZd12Wr5PQELznsQzCLO/0s+sq0I+0zqmDXUzi nhbuTmTUy1+cpC User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:84757 gmane.emacs.pretest.bugs:20423 Archived-At: > In longlines mode when I press C-k (i.e. a kill-line command) in a > long paragraph with soft linebreaks and then press C-y to yank the > killed line somewhere, the spaces between the words on soft-broken > lines' boundaries disapear. > ... > > I guess after kill-line the longline mode automatically compresses the > soft-linebreak at the end of the line (because the space is > temporarily turned into a soft linebreak) and the information about > the space does not get into the kill ring. Yes. `kill-line' kills the line without the newline and longlines mode removes the newline character after that. > The consistent behaviour would be either to add the missing space to > the kill ring or (it that is impossible or too hard) to kill the whole > paragraph at once (since it in fact is a single line). The first > behaviour clearly looks better to me. I'm afraid that it's hardly possible to DTRT here. Adding the space is not quite correct since `kill-line' doesn't kill the newline character which substitutes the space. Note that you get a similar bug when you kill the line + the newline character. Reinserting the killed stretch will get you a hard newline instead of the soft one. Killing everything up to the next hard newline appears conceptually right. It would clash, however, with the current concept that a line for `kill-line' is pretty much a line as it appears on the screen. Moreover, `kill-line' would have to become aware of longlines' way of distinguishing soft and hard newlines.