From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: longlines-mode and comments Date: Wed, 28 Nov 2007 16:02:32 +0000 Message-ID: <3E823B74-5830-445A-8DEE-51A4AB4AFB44@gmail.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196266728 25238 80.91.229.10 (28 Nov 2007 16:18:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2007 16:18:48 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 17:24:29 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from mail-forward.uio.no ([129.240.10.42]) by dough.gmane.org with esmtp (Exim 4.50) id 1IxPfO-0001uW-Co for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 17:21:38 +0100 Original-Received: from mail-mx2.uio.no ([129.240.10.30]) by pat.uio.no with esmtp (Exim 4.67) (envelope-from ) id 1IxPOV-0004mb-Dp for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 17:04:11 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx2.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1IxPOG-0003eJ-Dk for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 17:04:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxPND-00057i-Dn for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Nov 2007 11:02:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IxPN7-00057X-TM for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2007 11:02:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IxPN6-00057I-OP for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2007 11:02:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxPN6-00057E-JU for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2007 11:02:44 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.170]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IxPN6-0005Db-D5 for bug-gnu-emacs@gnu.org; Wed, 28 Nov 2007 11:02:44 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so1720071ugf for ; Wed, 28 Nov 2007 08:02:39 -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=vOMzPiAgUMxQ/AG0EdNcBxZ0ZYy+HSjg9szUpTTAW5s=; b=LMiMC6xffeNdLMh8imh/gTwso0GYsIrhZWAddLAJmxfA7ozbkAylvp7HCtOGjYQHACtQRO+9WX+bzX3VrL72kqRXkGuynJoV7WNZfUT6VL2Y0yoQ1bL59EY4MWJsFz3V6Dp+baXWXftF3hV7l0fJ+v7cG+YhhpkBArngHBX8kg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; b=h+MFY7kMNnnT2dPDfcgDy+cNafxRXJijmvWAnIMg7XlULPjQ4Qc3M4CFQCgKXayMkLLFvwZQchZCBt8RDfRIw1k64sKTlvoYgQId6FLy8WXkK+J3Fh/G9UVjTzPtzTz6s+fvQvxvIblfhP0FBrGiSlX6PyMnVoaeaWbuEJ3Dl7g= Original-Received: by 10.67.30.13 with SMTP id h13mr179942ugj.1196265759153; Wed, 28 Nov 2007 08:02:39 -0800 (PST) Original-Received: from scarlett.inf.ed.ac.uk ( [129.215.174.113]) by mx.google.com with ESMTPS id u6sm9565324uge.2007.11.28.08.02.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Nov 2007 08:02:36 -0800 (PST) X-Mailer: Apple Mail (2.915) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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 X-UiO-SPF-Received: Received-SPF: pass (mail-mx2.uio.no: domain of gnu.org designates 199.232.76.165 as permitted sender) client-ip=199.232.76.165; envelope-from=bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org; helo=lists.gnu.org; X-UiO-ClamAV-Virus: No X-UiO-Spam-info: not spam, SpamAssassin (score=-0.5, required=5.0, autolearn=disabled, AWL=0.500,RCVD_IN_DNSWL_LOW=-1) X-UiO-Scanned: 903A6C47C470A324BE3164325A5F6A819B0A68D3 X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -4 maxlevel 200 minaction 2 bait 0 mail/h: 1 total 27943 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.bugs:17081 Archived-At: emacs-lisp-mode, or latex-mode (AUCTeX) Turn on longlines-mode. Paste a long line (paragraph in the long-lines sense) into the buffer, which should be wrapped correctly and displayed as a paragraph of text. Select the entire paragraph and call `comment-region'. Result: The comment mark (;; or % or whatever) is placed all over the lines, and only the first line has it in the right place, i.e. at the beginning. (Also, when `longlines-wrap-follows-window-size' is turned on, then the line/paragraph is reformatted.) The expected (correct) behavior would be to add the comment command at the beginning of the line in the file, i.e. at the beginning of the paragraph, that is, after each hard return. Note that the other expected thing there is that the syntax highlighting (font-lock) works, i.e. that the whole comment is shown using the right face. This, IMHO, is a second bug. In GNU Emacs 22.1.50.1 (i386-apple-darwin8.11.1, Carbon Version 1.6.0) of 2007-11-27 on plume.sr.unh.edu - Aquamacs Distribution 1.2 Windowing system distributor `Apple Inc.', version 10.5.1 configured using `configure '--without-x' '--prefix=/usr/local'' 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 locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t Major mode: PDFLaTeX/F Minor modes in effect: reftex-mode: t TeX-fold-mode: t outline-minor-mode: t TeX-PDF-mode: t smart-frame-positioning-mode: t aquamacs-styles-mode: t shell-dirtrack-mode: t recentf-mode: t encoded-kbd-mode: t osx-key-mode: t longlines-mode: t show-paren-mode: t delete-selection-mode: t pc-selection-mode: t cua-mode: t tooltip-mode: t mac-input-method-mode: t tool-bar-mode: 0 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 unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: SPC SPC M-q % SPC SPC % SPC A-s A-s "model-chapter.tex" A-' A-z A-s C-h k A-' C-h f c o m m e n t - r e g x c o m m e n t - r e g i o n A-c Recent messages: Quit Mark set Mark saved where search started Wrote /Users/dr/PhD/thesis/introduction-chapter.tex [2 times] Undo... Undo! Saving file /Users/dr/PhD/thesis/model-chapter.tex... Wrote /Users/dr/PhD/thesis/model-chapter.tex Type "q" to quit, C-v to scroll help. [2 times] Making completion list...