Subject: Re: bug#468: longline mode and flyspell fails when type backspace

From: Marco Pessotto <[email-masked]>
Date: Wed, 23 Jul 2008 15:13:45 +0200

Chong Yidong <[email-masked]> writes:

>> Longlines-mode fails using the backspace at the beginning of a line
>> (with a soft newline at the end of the previous line). It give the
>> message Error in post-command-hook: (wrong-type-argument integerp
>> nil). This disables the longlines-mode's auto-wrapping and the font
>> lock of flyspell.
>
> I can't reproduce this.  Please provide a detailed recipe for
> reproducing this bug, beginning with "emacs -Q".

emacs -Q

;; please paste this line:

i i Turchi spezzano la resistenza a sud i resiste solo Clissa (difesa

;; to get the "right" lenght of the line

M-x text-mode
M-x flyspell-mode
M-x longline-mode

type <space> and 2 letters

<backspace> <backspace> => error (it can't go to the previous line without
error

=> long-line doesn't wrap lines anymore, flyspell lost fontifycation...
It needs a restart both of longlines and flyspell

Regards

Marco

In GNU Emacs 22.2.1 (i486-slackware-linux-gnu, GTK+ Version 2.12.9)
 of 2008-04-14 on midas
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--program-prefix=' '--program-suffix=' '--mandir=/usr/man' '--infodir=/usr/info' '--enable-static=no' '--enable-shared=yes' '--with-x' '--with-x-toolkit=gtk' '--build=i486-slackware-linux' 'build_alias=i486-slackware-linux' 'CFLAGS=-O2 -march=i486 -mtune=i686''

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: it_IT.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  longlines-mode: t
  flyspell-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  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
  line-number-mode: t

Recent input:
<down-mouse-1> <mouse-1> C-y M-x t e x t <tab> <return> 
M-x f l y s p <tab> m o <tab> <return> M-x l o n g 
<tab> <return> SPC d k <backspace> <backspace> <down-mouse-1> 
<mouse-1> M-x l o <backspace> <backspace> e m a c s 
- b <tab> u <tab> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
r e p <tab> o r t <tab> <return>

Recent messages:
Mark set
Loading flyspell...done
Loading regexp-opt...done
Starting new Ispell process [default] ...
Loading longlines...done
Longlines mode enabled
Error in post-command-hook: (wrong-type-argument integerp nil)
Making completion list...
Loading help-mode...done
Loading emacsbug...done