From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Dempsky Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#5117: 23.1.50; Weird display when wrap-prefix contains tabs Date: Thu, 3 Dec 2009 14:06:26 -0800 Message-ID: Reply-To: Matthew Dempsky , 5117@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1259880000 11990 80.91.229.12 (3 Dec 2009 22:40:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2009 22:40:00 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 03 23:39:53 2009 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 1NGKL2-0001U5-9h for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2009 23:39:53 +0100 Original-Received: from localhost ([127.0.0.1]:39863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGKL1-00007J-Uo for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2009 17:39:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGK95-0007Sj-RU for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 17:27:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGK91-0007Pk-5U for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 17:27:31 -0500 Original-Received: from [199.232.76.173] (port=38767 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGK91-0007Pf-0W for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 17:27:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40091) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NGK90-0002Tt-IR for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 17:27:26 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB3MROLW030758; Thu, 3 Dec 2009 14:27:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB3MF3Hk029621; Thu, 3 Dec 2009 14:15:03 -0800 Resent-Date: Thu, 3 Dec 2009 14:15:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Matthew Dempsky Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 03 Dec 2009 22:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 5117 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125987799529074 (code B ref -1); Thu, 03 Dec 2009 22:15:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Dec 2009 22:06:35 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB3M6XMB029071 for ; Thu, 3 Dec 2009 14:06:35 -0800 Original-Received: from mail.gnu.org ([199.232.76.166]:38933 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1NGJon-0004oV-Co for emacs-pretest-bug@gnu.org; Thu, 03 Dec 2009 17:06:33 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NGJol-0000Xt-9Y for emacs-pretest-bug@gnu.org; Thu, 03 Dec 2009 17:06:33 -0500 Original-Received: from mail-pz0-f193.google.com ([209.85.222.193]:57868) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGJok-0000XK-TU for emacs-pretest-bug@gnu.org; Thu, 03 Dec 2009 17:06:31 -0500 Original-Received: by pzk31 with SMTP id 31so1736397pzk.28 for ; Thu, 03 Dec 2009 14:06:28 -0800 (PST) Original-Received: by 10.115.114.5 with SMTP id r5mr2889027wam.145.1259877986545; Thu, 03 Dec 2009 14:06:26 -0800 (PST) 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 (newer, 2) Resent-Date: Thu, 03 Dec 2009 17:27:31 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:33183 gmane.emacs.pretest.bugs:25273 Archived-At: Here's the contents of `foo.el': (require 'cl) (with-output-to-temp-buffer "bonk" (with-current-buffer standard-output (loop for i from 1 to 100 do (insert (make-string (+ (random 5) 3) ?x) " ")) (visual-line-mode) (setq wrap-prefix "\t"))) If I run `Emacs -Q foo.el' and then `M-x eval-buffer', it creates a new buffer "demo", but instead of each continuation line being consistently indented by 8 spaces, they're each randomly indented between 1 and 8 spaces. The issue appears to be due to the expansion of tabs being related to the actual current column rather than the visual current column. Literal tabs within a wrapped paragraph exhibit similar behavior. This additionally sometimes confuses `visual-line-mode's line motion keys. In GNU Emacs 23.1.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-12-02 on admins-macbook-pro-2.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns' '--without-x'' 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: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x e v a l - b u f f e r M-` h s Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. 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 time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug sendmail regexp-opt tmm electric help-mode view cl cl-19 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)