From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "=?ISO-8859-2?Q?Jacek_Chrz=B1szcz?=" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: longlines mode and kill-line: missing space between boundary words Date: Tue, 4 Dec 2007 23:52:13 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196829601 2681 80.91.229.12 (5 Dec 2007 04:40:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2007 04:40:01 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 05:40:10 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 1Izm3M-00042G-KI for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2007 05:40:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Izm36-0004Ov-0o for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 23:39:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Izgco-0007Bj-Ru for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:52:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Izgco-0007BE-50 for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:52:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Izgcn-0007B6-VV for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:52:22 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Izgcn-0002L1-Ep for emacs-devel@gnu.org; Tue, 04 Dec 2007 17:52:21 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Izgcm-00081h-UM for emacs-pretest-bug@gnu.org; Tue, 04 Dec 2007 17:52:21 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Izgck-0002J8-2n for emacs-pretest-bug@gnu.org; Tue, 04 Dec 2007 17:52:20 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Izgci-0002I2-D0 for emacs-pretest-bug@gnu.org; Tue, 04 Dec 2007 17:52:17 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so6682553wah for ; Tue, 04 Dec 2007 14:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=B4HfROLToaTBaznAwvsiPVpD81pE1HpXTKB+Tf19NnI=; b=iYqZpLIhH9/PsXuGWmPRPgVBPwbHZZy162vWI2RIoR9ENjpxYy+NJgibAI4GNU66GkZe9kpVwpw0nz6kS+V4NZpuSMXONuJS6MbaP/mpluxMNyX4pWLnwGjTeOmi3Kb8DDqaqZtqNrKXb8ACJOTZ08zgZ/amVjFpsMe9zE6DDRQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=j/BheMKjz5us4kIM5YzCywZ9Lo4UAXICsiRVTHCzYLX6YlqZqwzrCTKpa6unpcuzdqCH46ZyPTjhe3KocevUnyer9vddfWKHUDPEq+iNAzpdAFTvD2K4m/CPVjbsA1CpZiXprvNjkxAQLmBETjIdYpXPCGzRctbsvY9q1kAPD0I= Original-Received: by 10.114.95.1 with SMTP id s1mr1339777wab.1196808733984; Tue, 04 Dec 2007 14:52:13 -0800 (PST) Original-Received: by 10.114.24.17 with HTTP; Tue, 4 Dec 2007 14:52:13 -0800 (PST) Content-Disposition: inline X-Google-Sender-Auth: 1fb040f4da296bb0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Tue, 04 Dec 2007 23:39:35 -0500 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:84705 gmane.emacs.pretest.bugs:20420 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: 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. For example: suppose the paragraph below has soft linebreaks (and not hard) then when I put the cursor on the first line and press C-k C-y I should get exactly the same paragraph. Lazy fox jumped over crazy dogs Lazy fox jumped over crazy dogs Lazy fox jumped over crazy dogs Lazy fox jumped over crazy dogs Lazy fox jumped over crazy dogs Lazy fox jumped over crazy dogs Lazy fox jumped over crazy dogs And what I get is: Lazy fox jumped over crazy dogs Lazy fox jumped over crazy dogs Lazyfox jumped over crazy dogs Lazy fox jumped over crazy dogs Lazy fox jumped over crazy dogs Lazy fox jumped over crazy dogs Lazy fox jumped over crazy dogs (with again soft-breaks at end of lines). Remark "Lazyfox" on the second line. 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. 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. Although I am using emacs 23 now (from http://peadrop.com/blog/2007/01/06/pretty-emacs under Ubuntu 7.04), I get the same behaviour in ubuntu-distributed emacs 21 as well. Cheers, Jacek If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.0/etc/DEBUG for instructions. In GNU Emacs 23.0.0.1 (i486-pc-linux-gnu, GTK+ Version 2.10.11) of 2007-07-06 on helios Windowing system distributor `The X.Org Foundation', version 11.0.70200000 configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.0/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.0/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.0.0/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--enable-font-backend' '--with-xft' '--with-freetype' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CC=gcc' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: pl_PL.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Text Minor modes in effect: longlines-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t use-hard-newlines: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-x C-f p l i k . t x t s M-x l o n g C-a SPC C-k C-y Recent messages: Loading /usr/share/emacs/23.0.0/lisp/longlines.el.gz... Loading jka-compr...done uncompressing longlines.el.gz...done Loading easy-mmode...done Loading /usr/share/emacs/23.0.0/lisp/longlines.el.gz...done Longlines mode enabled Mark set Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done