all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* longlines-mode and comments
@ 2007-11-28 16:02 David Reitter
  2007-11-29 10:34 ` martin rudalics
  0 siblings, 1 reply; 6+ messages in thread
From: David Reitter @ 2007-11-28 16:02 UTC (permalink / raw)
  To: bug-gnu-emacs

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-17 22:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-28 16:02 longlines-mode and comments David Reitter
2007-11-29 10:34 ` 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.