emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: Extraneous newline added in display]


From: Richard Stallman
Subject: address@hidden: Extraneous newline added in display]
Date: Sat, 07 Dec 2002 16:27:36 -0500

I can't reproduce this using quail to enter the ä characters,
and I don't have a keyboard with that character.  Can you figure
out a way to investigate this?

------- Start of forwarded message -------
To: address@hidden
Subject: Extraneous newline added in display
From: Alan Shutko <address@hidden>
Date: Thu, 05 Dec 2002 21:36:52 -0500
X-Spam-Status: No, hits=-0.4 required=5.0
        tests=GAPPY_TEXT,SPAM_PHRASE_00_01,USER_AGENT
        version=2.41
X-Spam-Level: 


Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

In an xterm (with color support)
emacs -q -nw -l hlbug.el

Type C-l C-n C-e.  Enter ä (an umlauted a) twice.

The first ä will display correctly on the end of the line.  The
second will appear on the _next_ line.  Hitting C-l again will
correct the display.

This behavior was discovered with the highlight-current-line
package.  The package may be useless with hl-line-mode included with
emacs, but still, the code in the hlbug.el below looks correct.

Could someone take a look at this?

- ---- hlbug.el ----
(defvar highlight-current-line-overlay
  ;; Dummy initialization
  (make-overlay 1 1)
  "Overlay for highlighting."
  )

(make-face 'highlight-current-line-face)
(set-face-foreground 'highlight-current-line-face
                     "white")
(set-face-background 'highlight-current-line-face
                     "blue")
(overlay-put highlight-current-line-overlay
             'face 'highlight-current-line-face)
(defun highlight-current-line-hook ()
  (let ((current-point (point)))
    ;; Set overlay
    (move-overlay highlight-current-line-overlay
                  (progn (beginning-of-line)
                         (point))
                  (progn (forward-line 1)
                         (point))
                  (current-buffer))
    (goto-char current-point)))

(add-hook 'post-command-hook 'highlight-current-line-hook)


(set-keyboard-coding-system 'iso-8859-15-unix)
(set-terminal-coding-system 'iso-8859-15-unix)

(insert "\nabcdefg\n")
- ---- end hlbug.el ----


In GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-12-05 on wesley.springies.com
configured using `configure  'CFLAGS=-g -O''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  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
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Recent input:
M-d y M-d M-d p o i n t C-x C-s SPC C-x C-s <end> ( 
g o t o - l i n e SPC 2 ) <return> ( e n d - o f - 
l i n e ) <return> ( i n s e r t SPC " ä " ) <return> 
C-x C-s <down-mouse-1> <mouse-1> C-k C-k C-k C-k C-k 
C-k C-k C-x C-g C-b C-x C-b f <up> <up> <up> <up> <up> 
<up> <up> <up> M-x r e p o r t - e m a c s - b u g 
<tab> <return>

Recent messages:
Please type y, n or r; or ? for help
hlbug.el changed on disk; really edit the buffer? (y, n, r or C-h) 
File on disk now will become a backup file if you save these changes.
hlbug.el has changed since visited or saved.  Save anyway? (y or n) 
Wrote /home/ats/hlbug.el
(No changes need to be saved)
Mark set
Wrote /home/ats/hlbug.el
Buffers have changed; type g to update Ibuffer
Loading emacsbug...done

- -- 
Alan Shutko <address@hidden> - In a variety of flavors!
Wanted: Guillotine operator. Chance to get ahead.
------- End of forwarded message -------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]