From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elnatan Reisner Newsgroups: gmane.emacs.bugs Subject: bug#5438: 23.0.94; auto-fill-mode behaves strangely with periods near end of line Date: Thu, 21 Jan 2010 16:05:07 -0500 Message-ID: <0E8C1E96-7C33-4CD7-81A6-5DEFED50A553@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1264221463 11168 80.91.229.12 (23 Jan 2010 04:37:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jan 2010 04:37:43 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 23 05:37:36 2010 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.50) id 1NYXkd-0001Ha-0t for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jan 2010 05:37:35 +0100 Original-Received: from localhost ([127.0.0.1]:54853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYXkd-0005p9-G3 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Jan 2010 23:37:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NY4kf-0005xv-21 for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 16:39:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NY4kZ-0005qw-AO for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 16:39:40 -0500 Original-Received: from [199.232.76.173] (port=41068 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NY4kZ-0005qj-39 for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 16:39:35 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51190) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NY4kY-0006tI-FL for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 16:39:34 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NY4Lq-0006Gq-Kn; Thu, 21 Jan 2010 16:14:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Elnatan Reisner , 5438@debbugs.gnu.org Resent-From: Elnatan Reisner Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jan 2010 21:14:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5438 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.126410841824077 (code B ref -1); Thu, 21 Jan 2010 21:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jan 2010 21:13:38 +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 1NY4LQ-0006GH-NF for submit@debbugs.gnu.org; Thu, 21 Jan 2010 16:13:37 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NY4B2-0006AR-08 for submit@debbugs.gnu.org; Thu, 21 Jan 2010 16:02:52 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:55065) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NY4Ax-0003pG-RI for submit@debbugs.gnu.org; Thu, 21 Jan 2010 16:02:48 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NY4Au-0002D1-GF for submit@debbugs.gnu.org; Thu, 21 Jan 2010 16:02:47 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:34877) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NY4Au-0002Cv-AD for submit@debbugs.gnu.org; Thu, 21 Jan 2010 16:02:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NY4Au-0003jf-1M for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 16:02:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NY4Ap-0003ZY-Pg for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 16:02:43 -0500 Original-Received: from [199.232.76.173] (port=53210 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NY4Ap-0003ZD-Gh for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 16:02:39 -0500 Original-Received: from mail-bw0-f209.google.com ([209.85.218.209]:36830) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NY4Ao-0002CR-Sk for bug-gnu-emacs@gnu.org; Thu, 21 Jan 2010 16:02:39 -0500 Original-Received: by bwz1 with SMTP id 1so532382bwz.30 for ; Thu, 21 Jan 2010 13:02:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=mqsDd5A0+jpzi73Q4iOvllqPNLlAMwgWQrU8INWGN1s=; b=dZsfzSQ05rL5HsTjpr7pQatUnQBtZqtv2XJNttsqCgQrhVMPs6KSZg2ZPvKlP0wuEF E6RH0aTm/OlWcaHj2j6B3gctKKQKk1+y8XhBuD2zy53sBUIPzAUSaG1pRIDVVfm/Aw4u Ez/8ULlgY9WSKvbqBmRfveKmOIZLxj8I2hUu0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=rvELo4YSuDlMr+8rLBxYmWw9Ta2mrCSZntxAUJ4AXi82DOY3YmZPYc0O5uwa1GPqbd BRXJ2+t2siV9Gb7fu7kWGMbKRFr1J9R0R8RZtmeW7fGb2/+KUMmeve3fa6TZ8pZLTI8t j18nkzanHcVGtYpf9OftGZmSHlVEy4PvfKjcM= Original-Received: by 10.102.149.4 with SMTP id w4mr1058951mud.34.1264107757520; Thu, 21 Jan 2010 13:02:37 -0800 (PST) Original-Received: from 208-59-170-141.c3-0.slvr-ubr1.lnh-slvr.md.cable.rcn.com (208-59-170-141.c3-0.slvr-ubr1.lnh-slvr.md.cable.rcn.com [208.59.170.141]) by mx.google.com with ESMTPS id u9sm5892281muf.54.2010.01.21.13.02.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Jan 2010 13:02:35 -0800 (PST) X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Thu, 21 Jan 2010 16:13:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -5.9 (-----) Resent-Date: Thu, 21 Jan 2010 16:14:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 22 Jan 2010 23:37:17 -0500 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:34649 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 =20 mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I opened a new file and typed the following (which I copied from =20 further down in this bug report): ^U 3 0 A SPC ^U 3 0 A SPC ^U 8 A SPC ^U 3 0 A SPC X A U T O F - - F I ^U 3 0 A SPC ^U 9 A SPC Q ^U 3 0 A SPC ^U 3 0 A SPC ^U 7 A . SPC Q ^/ SPC ^/ ^U 3 0 A SPC ^U 3 0 A SPC ^U 3 A . SPC A A A A SPC Q ^A SPC Q ^E ^U 3 0 A SPC ^U 3 0 A SPC A A . SPC A A . SPC F I E J A SPC Q X R E P O T R T - E I am confused by how auto-fill deals with periods near the end of the =20= line. It seems that the determination of where to wrap is based not =20 only on spaces, but also on periods. That is, auto-fill seems to =20 search for the final space before the last column, but if that space =20 is preceded by a period, it looks back for the preceding space, and so =20= on. I notice this most regularly when a period happens to occur in =20 column 70 (which is the default width for auto-fill-mode), so the last =20= word of my sentence gets wrapped to the next line, even though I don't =20= want it to. However, if I manually replace the word on the previous =20 line, later invocations of Esc-Q do not re-wrap such words, but rather =20= leave them in place. (I am grateful for this, because this is behavior =20= I would want to begin with; but the inconsistency seems odd.) I have seen this behavior in this Aquamacs (the specs are below), in =20 Aquamacs 1.9 (GNU Emacs 22.3.1 (powerpc-apple-darwin9.8.0, Carbon =20 Version 1.6.0)), and GNU Emacs 21.3.1 on a Linux computer. 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 /Applications/Aquamacs.app/Contents/Resources/etc/DEBUG for =20 instructions. In GNU Emacs 23.0.94.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-10-26 on braeburn.aquamacs.org - Aquamacs Distribution =20 2.0preview3 Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns' '--without-x' 'CFLAGS=3D-arch =20= i386 -arch ppc' 'LDFLAGS=3D-arch i386 -arch ppc'' 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: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: savehist-mode: t smart-frame-positioning-mode: t aquamacs-autoface-mode: t recentf-mode: t osx-key-mode: t tabbar-mwheel-mode: t tabbar-mode: t show-paren-mode: t delete-selection-mode: t pc-selection-mode: t cua-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: 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-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: 5 A ^A ^K ^U 9 A SPC ^U 9 A SPC ^A ^K ^U 3 0 A SPC ^U 3 0 A SPC A B C D E F G H I SPC ^X K Y ^X K Y ^/ =E2=8C=98W =E2=8C=98{ =E2=8C=98W ^X ^F B L A H . T X T ^G ^X ^F B L A H ^U 3 0 A SPC ^U 3 0 A SPC A B C D E F G H I X A U T O - F I ^U 3 0 A SPC ^U 3 0 A SPC A B C D E F G . SPC Q Q ^/ Q ^E ^X ^F A S D F . T X T ^U 3 0 A SPC ^U 3 0 A SPC ^U 8 A SPC ^U 3 0 A SPC X A U T O F - - F I ^U 3 0 A SPC ^U 9 A SPC Q ^U 3 0 A SPC ^U 3 0 A SPC ^U 7 A . SPC Q ^/ SPC ^/ ^U 3 0 A SPC ^U 3 0 A SPC ^U 3 A . SPC A A A A SPC Q ^A SPC Q ^E ^U 3 0 A SPC ^U 3 0 A SPC A A . SPC A A . SPC F I E J A SPC Q X R E P O T R T - E Recent messages: Auto-saving...done fill-prefix cancelled Buffer *mail to emacs-pretest-bug@gnu.org* modified; kill anyway? (y =20 or n) Undo! Quit (New file) Undo! (New file) call-interactively: End of buffer Undo! [2 times] Load-path shadows: None found. Features: (shadow mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug load-emacs-plugins aquamacs-mode-defaults auctex-config server tex-site smart-dnd aquamacs-aux savehist mouse-sel one-buffer-one-frame smart-frame-positioning drews_init color-theme-autoloads saveplace visual-line aquamacs-bug aquamacs-autoface-mode aquamacs-editing sendmail recentf tree-widget cus-edit osxkeys emulate-mac-keyboard-mode frame-cmds strings misc-fns thingatpt+ thingatpt frame-fns avoid aquamacs-mac-fontsets fit-frame aquamacs-frame-setup aquamacs-tabbar tabbar-window cl cl-19 tabbar easy-mmode cus-start cus-load load-emacs-pre-plugins aquamacs-site-start cocoa-compatibility filladapt aquamacs-redo check-for-updates aquamacs-menu osx_defaults aquamacs-tool-bar aquamacs mac-extra-functions aquamacs-tools aquamacs-macros parse-time timezone time-date paren delsel pc-select cua-base wid-edit regexp-opt advice advice-preload byte-opt bytecomp byte-compile debug help-fns help-mode view image-file disp-table tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)