unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: longlines-mode and comments
Date: Wed, 28 Nov 2007 16:02:32 +0000	[thread overview]
Message-ID: <3E823B74-5830-445A-8DEE-51A4AB4AFB44@gmail.com> (raw)

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:
<left> <left> <up> <right> <backspace> <up> <delete>
<backspace> SPC <down> <backspace> <delete> <down>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <delete> <delete> <down> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<backspace> <backspace> <backspace> SPC M-q <up> <up>
<up> <up> <right> <down> % SPC <down> <up> <left> <left>
<return> <down> <left> <return> <left> <left> <return>
<down> <backspace> SPC <down> <left> <left> <left>
<left> <right> % SPC <left> <left> <return> <down>
<down-mouse-1> <mouse-1> A-s <down-mouse-1> <mouse-1>
<delete> <delete> A-s <menu-bar> <buffer> "model-chapter.tex"
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <down-mouse-1>
<mouse-movement> <mouse-movement> <mouse-movement>
<mouse-movement> <drag-mouse-1> A-' A-z <delete> <delete>
<down-mouse-1> <mouse-1> <delete> <delete> <up> <right>
<down> A-s C-h k A-' <help-echo> <switch-frame> C-h
f c o m m e n t - r e g <tab> <return> <switch-frame>
<down-mouse-1> <mouse-movement> <mouse-movement> <mouse-movement>
<mouse-movement> <drag-mouse-1> <escape> x c o m m
<tab> e n t - r e g i o n <return> <help-echo> <S-down-mouse-1>
<S-mouse-1> A-c <menu-bar> <help-menu> <report-ema
cs-bug>

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...




             reply	other threads:[~2007-11-28 16:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-28 16:02 David Reitter [this message]
2007-11-29 10:34 ` longlines-mode and comments martin rudalics
2007-11-30  7:22   ` David Reitter
2007-11-30 16:48     ` Richard Stallman
2007-12-17 18:40   ` David Reitter
2007-12-17 22:11     ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E823B74-5830-445A-8DEE-51A4AB4AFB44@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).