Subject: Re: bug#11312: 24.1.50; allout widgets mode bug when deleting text from header

From: Stefan Kangas <[email-masked]>
Date: Sat, 29 Feb 2020 04:34:24 +0100

Hi Ken,

Could you please help take a look at the below bug report in
allout.el?

Thanks in advance.

Best regards,
Stefan Kangas

Christopher Monsanto <[email-masked]> writes:

> Load allout.el(.gz)
> M-x allout-mode
> M-x allout-widgets-mode
>
> Position the point on the first character of a header (i.e., the bullet).
>
> [picture]*Header
>
> Delete the character:
>
> [picture]Header
>
> Turn off allout-widgets-mode, and the * will not have been deleted; turn allout-widgets-mode back on, and you will see the display:
>
> [picture]*Header.
>
> Another related symptom: after deleting the character, insert another character:
>
> [picture]xHeader
>
> Now try to delete the x: you will get a warning about unruly edits. 
>
>
> In GNU Emacs 24.1.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)
>  of 2012-04-22 on linuxpimpbox
> Windowing system distributor `The X.Org Foundation', version 11.0.11103000
> Important settings:
>   value of $LC_ALL: nil
>   value of $LC_COLLATE: en_US.UTF-8
>   value of $LC_CTYPE: en_US.UTF-8
>   value of $LC_MESSAGES: en_US.UTF-8
>   value of $LC_MONETARY: nil
>   value of $LC_NUMERIC: nil
>   value of $LC_TIME: nil
>   value of $LANG: en_US.UTF-8
>   value of $XMODIFIERS: nil
>   locale-coding-system: utf-8-unix
>   default enable-multibyte-characters: t
>
> Major mode: Lisp Interaction
>
> Minor modes in effect:
>   keyfreq-autosave-mode: t
>   keyfreq-mode: t
>   auto-highlight-symbol-mode: t
>   savehist-mode: t
>   eldoc-mode: t
>   diff-auto-refine-mode: t
>   nxhtml-menu-mode: t
>   paredit-mode: t
>   ido-ubiquitous-mode: t
>   ido-everywhere: t
>   dired-omit-mode: t
>   yas/global-mode: t
>   yas/minor-mode: t
>   global-auto-complete-mode: t
>   auto-complete-mode: t
>   global-undo-tree-mode: t
>   undo-tree-mode: t
>   show-paren-mode: t
>   mouse-wheel-mode: t
>   file-name-shadow-mode: t
>   global-font-lock-mode: t
>   font-lock-mode: t
>   blink-cursor-mode: t
>   auto-composition-mode: t
>   auto-encryption-mode: t
>   auto-compression-mode: t
>   column-number-mode: t
>   line-number-mode: t
>   transient-mark-mode: t
>
> Recent input:
> M-x r t e <backspace> <backspace> e p o r t <right> 
> <right> <left> <left> <right> <right> <return>
>
> Recent messages:
> Loading /home/monsanto/.emacs.d/elisp/nxhtml/nxhtml/nxhtml-autoload...
> nxhtml-autoload starting ... (hm, should maybe be renamed ...)
> majmodpri-apply-priorities running ... (done)
> Loading /home/monsanto/.emacs.d/elisp/nxhtml/nxhtml/nxhtml-autoload...done
> Nxml/Nxhtml Autostart.el loaded in 0.0 seconds
> trace: loading flymake-files
> Loading nxhtml/autostart...done
> Making mumamo-bug-3467-w14 local to  *temp* while let-bound!
> Tested for Bug 3467 => PASSED
> Warning: /home/monsanto/.emacs.d/init.el is newer than /home/monsanto/.emacs.d/init.elc
>
> Load-path shadows:
> /home/monsanto/.emacs.d/elisp/auctex/tex-site hides /usr/local/share/emacs/site-lisp/tex-site
> /home/monsanto/.emacs.d/elisp/bbdb/bbdb-migrate hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-migrate
> /home/monsanto/.emacs.d/elisp/bbdb/bbdb-com hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-com
> /home/monsanto/.emacs.d/elisp/bbdb/bbdb-rmail hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-rmail
> /home/monsanto/.emacs.d/elisp/bbdb/bbdb-mhe hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-mhe
> /home/monsanto/.emacs.d/elisp/bbdb/bbdb hides /usr/local/share/emacs/site-lisp/bbdb/bbdb
> /home/monsanto/.emacs.d/elisp/bbdb/bbdb-gnus hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-gnus
> /home/monsanto/.emacs.d/elisp/bbdb/bbdb-print hides /usr/local/share/emacs/site-lisp/bbdb/bbdb-print
> /home/monsanto/.emacs.d/elisp/w3m/w3m-bookmark hides /usr/local/share/emacs/site-lisp/w3m/w3m-bookmark
> /home/monsanto/.emacs.d/elisp/w3m/w3m-search hides /usr/local/share/emacs/site-lisp/w3m/w3m-search
> /home/monsanto/.emacs.d/elisp/w3m/w3m-dtree hides /usr/local/share/emacs/site-lisp/w3m/w3m-dtree
> /home/monsanto/.emacs.d/elisp/w3m/w3m-ucs hides /usr/local/share/emacs/site-lisp/w3m/w3m-ucs
> /home/monsanto/.emacs.d/elisp/w3m/w3m-image hides /usr/local/share/emacs/site-lisp/w3m/w3m-image
> /home/monsanto/.emacs.d/elisp/w3m/w3m-cookie hides /usr/local/share/emacs/site-lisp/w3m/w3m-cookie
> /home/monsanto/.emacs.d/elisp/w3m/mew-w3m hides /usr/local/share/emacs/site-lisp/w3m/mew-w3m
> /home/monsanto/.emacs.d/elisp/w3m/w3m-lnum hides /usr/local/share/emacs/site-lisp/w3m/w3m-lnum
> /home/monsanto/.emacs.d/elisp/w3m/w3m-symbol hides /usr/local/share/emacs/site-lisp/w3m/w3m-symbol
> /home/monsanto/.emacs.d/elisp/w3m/w3m-form hides /usr/local/share/emacs/site-lisp/w3m/w3m-form
> /home/monsanto/.emacs.d/elisp/w3m/w3m-favicon hides /usr/local/share/emacs/site-lisp/w3m/w3m-favicon
> /home/monsanto/.emacs.d/elisp/w3m/w3m-proc hides /usr/local/share/emacs/site-lisp/w3m/w3m-proc
> /home/monsanto/.emacs.d/elisp/w3m/w3m-filter hides /usr/local/share/emacs/site-lisp/w3m/w3m-filter
> /home/monsanto/.emacs.d/elisp/w3m/w3m-perldoc hides /usr/local/share/emacs/site-lisp/w3m/w3m-perldoc
> /home/monsanto/.emacs.d/elisp/w3m/w3m-weather hides /usr/local/share/emacs/site-lisp/w3m/w3m-weather
> /home/monsanto/.emacs.d/elisp/w3m/w3m hides /usr/local/share/emacs/site-lisp/w3m/w3m
> /home/monsanto/.emacs.d/elisp/w3m/w3m-hist hides /usr/local/share/emacs/site-lisp/w3m/w3m-hist
> /home/monsanto/.emacs.d/elisp/w3m/w3m-tabmenu hides /usr/local/share/emacs/site-lisp/w3m/w3m-tabmenu
> /home/monsanto/.emacs.d/elisp/w3m/w3m-util hides /usr/local/share/emacs/site-lisp/w3m/w3m-util
> /home/monsanto/.emacs.d/elisp/w3m/w3m-fb hides /usr/local/share/emacs/site-lisp/w3m/w3m-fb
> /home/monsanto/.emacs.d/elisp/w3m/w3m-ccl hides /usr/local/share/emacs/site-lisp/w3m/w3m-ccl
> /home/monsanto/.emacs.d/elisp/w3m/w3m-rss hides /usr/local/share/emacs/site-lisp/w3m/w3m-rss
> /home/monsanto/.emacs.d/elisp/w3m/w3m-bug hides /usr/local/share/emacs/site-lisp/w3m/w3m-bug
> /home/monsanto/.emacs.d/elisp/w3m/mime-w3m hides /usr/local/share/emacs/site-lisp/w3m/mime-w3m
> /home/monsanto/.emacs.d/elisp/w3m/w3m-mail hides /usr/local/share/emacs/site-lisp/w3m/w3m-mail
> /home/monsanto/.emacs.d/elisp/w3m/w3m-ems hides /usr/local/share/emacs/site-lisp/w3m/w3m-ems
> /home/monsanto/.emacs.d/elisp/w3m/w3m-namazu hides /usr/local/share/emacs/site-lisp/w3m/w3m-namazu
> /home/monsanto/.emacs.d/elisp/w3m/bookmark-w3m hides /usr/local/share/emacs/site-lisp/w3m/bookmark-w3m
> /home/monsanto/.emacs.d/elisp/w3m/octet hides /usr/local/share/emacs/site-lisp/w3m/octet
> /home/monsanto/.emacs.d/elisp/w3m/w3m-antenna hides /usr/local/share/emacs/site-lisp/w3m/w3m-antenna
> /home/monsanto/.emacs.d/elisp/w3m/w3m-session hides /usr/local/share/emacs/site-lisp/w3m/w3m-session
> /home/monsanto/.emacs.d/elisp/python/python hides /usr/local/share/emacs/24.1.50/lisp/progmodes/python
> /home/monsanto/.emacs.d/elisp/nxhtml/util/org-odt hides /usr/local/share/emacs/24.1.50/lisp/org/org-odt
> /home/monsanto/.emacs.d/elisp/magit/.dir-locals hides /usr/local/share/emacs/24.1.50/lisp/gnus/.dir-locals
>
> Features:
> (shadow sort gnus-msg emacsbug helm-config ispell twittering-mode xml
> write-or-die writegood-mode keyfreq apt-sources autoinsert apt-utils
> auto-highlight-symbol fastnav ace-jump-mode allout-widgets allout
> thingopt markdown-mode noutline outline mic-paren ack-and-a-half grep
> align-by-current-symbol filladapt rainbow-mode rebox2 newcomment
> saveplace savehist multi-term term disp-table ehelp electric python rx
> hie haskell-navigate-imports haskell-sort-imports haskell-align-imports
> haskell-indentation haskell-mode ibuffer-git ibuf-macs
> auto-complete-latex-light reftex reftex-vars preview prv-emacs tex-buf
> latex tex-style tex tex-site eproject-extras ibuf-ext ibuffer iswitchb
> eproject esh-var esh-io esh-cmd esh-ext esh-proc esh-arg eldoc
> esh-groups eshell esh-module esh-mode esh-util magit-bisect
> magit-key-mode magit diff-mode log-edit pcvs-util add-log compile comint
> ansi-color ring vc ediff-merg ediff-diff ediff-wind ediff-help
> ediff-util ediff-mult ediff-init ediff vc-dispatcher diary-lib
> diary-loaddefs cal-menu calendar cal-loaddefs deft dedicated popwin
> w3m-wget wget thingatpt wget-sysdep w3m-lnum w3m-search w3m doc-view
> jka-compr image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl
> w3m-favicon w3m-image w3m-proc w3m-util browse-url gnus-gravatar
> gravatar url-cache url url-proxy url-privacy url-expand url-methods
> url-history url-cookie url-domsuf url-util url-parse url-vars bbdb-gnus
> gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig bbdb-snarf
> mail-extr bbdb-com nnir gnus-sum gnus-group gnus-undo nnmail mail-source
> gnus-start gnus-spec gnus-int gnus-range gnus-win nnoo gnus gnus-ems
> nnheader wid-edit bbdb timezone bbdb-autoloads mailcap smtpmail
> auth-source eieio gnus-util password-cache sendmail message format-spec
> rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
> rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils
> gmm-utils mailheader mumamo byte-opt warnings bytecomp byte-compile
> cconv macroexp flymake-files flymakemsg nxhtml-autostart nxhtml-autoload
> majmodpri vc-git nxhtml-menu web-autoload nxhtml-base paredit
> ido-ubiquitous ido bookmark+ bookmark+-key easy-mmode dired-x dired
> bookmark+-1 bookmark+-bmu bookmark+-lit bookmark+-mac bookmark pp server
> yasnippet help-mode view easymenu assoc auto-complete edmacro kmacro
> popup browse-kill-ring undo-tree uniquify advice help-fns advice-preload
> paren cl time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
> x-win x-dnd tool-bar dnd fontset image regexp-opt fringe lisp-mode
> register page menu-bar rfn-eshadow timer select scroll-bar mouse
> jit-lock font-lock syntax facemenu font-core frame cham georgian
> utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
> japanese hebrew greek romanian slovak czech european ethiopic indian
> cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
> minibuffer loaddefs button faces cus-face files text-properties overlay
> sha1 md5 base64 format env code-pages mule custom widget
> hashtable-print-readable backquote make-network-process dynamic-setting
> system-font-setting font-render-setting move-toolbar gtk x-toolkit x
> multi-tty emacs)