[Top][All Lists]

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

[debbugs-tracker] bug#29767: closed (26.0.90; Failing auto-fill in messa

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#29767: closed (26.0.90; Failing auto-fill in message-mode because of bad state (comment-skip-end))
Date: Thu, 11 Jan 2018 15:12:01 +0000

Your message dated Thu, 11 Jan 2018 10:11:51 -0500
with message-id <address@hidden>
and subject line Re: bug#29767: 26.0.90; Failing auto-fill in message-mode 
because of bad state (comment-skip-end)
has caused the debbugs.gnu.org bug report #29767,
regarding 26.0.90; Failing auto-fill in message-mode because of bad state 
to be marked as done.

(If you believe you have received this mail in error, please contact

29767: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29767
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 26.0.90; Failing auto-fill in message-mode because of bad state (comment-skip-end) Date: Mon, 18 Dec 2017 22:17:53 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)
Unfortunately, i cannot reproduce the bug reliably, but these are the

  - sometimes, when composing a reply to an email in gnus (major mode is
    message-mode there, auto-fill-mode is enabled), when a line is
    auto-filled and broken in two, do-auto-fill incorrectly thinks that
    it is inside a comment and adds a `> ' prefix to it.

    For instance, i'm writing

        > This is a citation of the message i'm replying to

        This is my response and now i am approaching fill-colum so it

    which causes an auto-fill, which should be:

        > This is a citation of the message i'm replying to

        This is my response and now i am approaching fill-colum
        so it

    but instead i get:

        > This is a citation of the message i'm replying to

        This is my response and now i am approaching fill-colum
        > so it

   - i have no reliable way of reproducing the problem.  even when it's
     happening, if i kill and yank the buffer's content into a new
     buffer and put it in message-mode, the problem goes away.

   - stepping over do-auto-fill (called by message-do-auto-fill), i
     finally found out that the reason a > is being inserted is because
     `comment-beginning` is misbehaving, and thinks point is inside a

   - and stepping into comment-beginning i've discovered that
     comment-beginning is wrong beacause someone sets the local variable
     `comment-end-skip` to a bogus value in the process of
     auto-filling.  that variable starts life as nil in message-mode,
     but, sometimes, after some calls to auto-fill it ends up having a
     bogus value.  that value is,  i think, set by
     newcomment.el's `comment-normalize-vars`, at the end of its body.

   - i don't know if setting the value is wrong in the context it's
     being set, but i've got the suspicion that the fact that that value
     is not returned to nil once do-auto-fill has ended its business
     might be causing havoc.  the concrete value is "[  ]*\\(\\s>\\|\\n\\)"

   - at any rate, i know for sure that is that value of comment-end-skip
     the responsible for the bad behaviour of `comment-beginning` doing
     the wrong thing in some cases at least.


In GNU Emacs 26.0.90 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
 of 2017-12-18 built on imladris
Repository revision: c51e797bbace83181a3c778ba610560e236ee62b
Windowing system distributor 'The X.Org Foundation', version 11.0.11905000
System Description:     Debian GNU/Linux unstable (sid)

Recent messages:
Sending email 
Sending email done
Mark set
Wrote /home/jao/.emacs.d/gnus/Mail/bigml/48389
Deleting article /home/jao/.emacs.d/gnus/drafts/drafts/2 in drafts...
Mark set [4 times]
Message modified; kill anyway? (y or n) y

Configured using:
 'configure --without-pop --with-x-toolkit=lucid'

Configured features:

Important settings:
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Summary

Minor modes in effect:
  magit-auto-revert-mode: t
  global-git-commit-mode: t
  async-bytecomp-package-mode: t
  winner-mode: t
  savehist-mode: t
  recentf-mode: t
  save-place-mode: t
  network-watch-mode: t
  display-time-mode: t
  intero-global-mode: t
  global-edit-server-edit-mode: t
  flx-ido-mode: t
  ido-everywhere: t
  circe-lagmon-mode: t
  diff-auto-refine-mode: t
  tracking-mode: t
  persistent-scratch-autosave-mode: t
  show-paren-mode: t
  global-auto-revert-mode: t
  pdf-occur-global-minor-mode: t
  override-global-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t

Load-path shadows:
/home/jao/etc/emacs/site/custom/jao-themes hides 
/home/jao/etc/emacs/site/custom/jao-fold hides 
/home/jao/etc/emacs/site/custom/jao-elisp hides 
/home/jao/etc/emacs/site/custom/jao-muse hides 
/home/jao/etc/emacs/site/custom/jao-browse-url hides 
/home/jao/etc/emacs/site/custom/jao-vc hides /home/jao/etc/emacs/custom/jao-vc
/home/jao/etc/emacs/site/custom/jao-w3m hides /home/jao/etc/emacs/custom/jao-w3m
/home/jao/etc/emacs/site/custom/jao-gnus hides 
/home/jao/etc/emacs/site/custom/jao-afio hides 
/home/jao/etc/emacs/site/custom/jao-clojure hides 
/home/jao/etc/emacs/site/custom/jao-lisp hides 
/home/jao/etc/emacs/site/custom/jao-skels hides 
/home/jao/etc/emacs/site/custom/jao-fci hides /home/jao/etc/emacs/custom/jao-fci
/home/jao/etc/emacs/site/custom/jao-gnuplot hides 
/home/jao/etc/emacs/site/custom/jao-completion hides 
/home/jao/etc/emacs/site/custom/jao-python hides 
/home/jao/etc/emacs/site/custom/jao-oz hides /home/jao/etc/emacs/custom/jao-oz
/home/jao/etc/emacs/site/custom/jao-conkeror hides 
/home/jao/etc/emacs/site/custom/jao-slime hides 
/home/jao/etc/emacs/site/custom/jao-markdown hides 
/home/jao/etc/emacs/site/custom/jao-snippets hides 
/home/jao/etc/emacs/site/custom/jao-edit hides 
/home/jao/etc/emacs/site/custom/jao-translate hides 
/home/jao/etc/emacs/site/custom/jao-sawfish hides 
/home/jao/etc/emacs/site/custom/jao-kbd hides /home/jao/etc/emacs/custom/jao-kbd
/home/jao/etc/emacs/site/custom/jao-spotify hides 
/home/jao/etc/emacs/site/custom/jao-tex hides /home/jao/etc/emacs/custom/jao-tex
/home/jao/etc/emacs/site/custom/jao-compile hides 
/home/jao/etc/emacs/site/custom/jao-ruby hides 
/home/jao/etc/emacs/site/custom/jao-network hides 
/home/jao/etc/emacs/site/custom/jao-dict hides 
/home/jao/etc/emacs/site/custom/jao-custom hides 
/home/jao/etc/emacs/site/custom/jao-diminish hides 
/home/jao/etc/emacs/site/custom/jao-goto-chg hides 
/home/jao/etc/emacs/site/custom/jao-erlang hides 
/home/jao/etc/emacs/site/custom/jao-prolog hides 
/home/jao/etc/emacs/site/custom/jao-maxima hides 
/home/jao/etc/emacs/site/custom/jao-deft hides 
/home/jao/etc/emacs/site/custom/jao-pdf hides /home/jao/etc/emacs/custom/jao-pdf
/home/jao/etc/emacs/site/custom/jao-time hides 
/home/jao/etc/emacs/site/custom/jao-session hides 
/home/jao/etc/emacs/site/custom/jao-c hides /home/jao/etc/emacs/custom/jao-c
/home/jao/etc/emacs/site/custom/jao-project-root hides 
/home/jao/etc/emacs/site/custom/jao-circe hides 
/home/jao/etc/emacs/site/custom/jao-fonts hides 
/home/jao/etc/emacs/site/custom/jao-eshell hides 
/home/jao/etc/emacs/site/custom/jao-emms-config hides 
/home/jao/etc/emacs/site/custom/jao-frames hides 
/home/jao/etc/emacs/site/custom/jao-buffers hides 
/home/jao/etc/emacs/site/custom/jao-dired hides 
/home/jao/etc/emacs/site/custom/jao-diary hides 
/home/jao/etc/emacs/site/custom/jao-colors hides 
/home/jao/etc/emacs/site/custom/jao-epg hides /home/jao/etc/emacs/custom/jao-epg
/home/jao/etc/emacs/site/custom/jao-mode-line hides 
/home/jao/etc/emacs/site/custom/jao-mail hides 
/home/jao/etc/emacs/site/custom/jao-utils hides 
/home/jao/etc/emacs/site/custom/jao-haskell hides 
/home/jao/etc/emacs/site/custom/jao-auto hides 
/home/jao/etc/emacs/site/custom/jao-org hides /home/jao/etc/emacs/custom/jao-org
/home/jao/etc/emacs/site/custom/jao-undo-tree hides 
/home/jao/etc/emacs/site/custom/jao-factor hides 

(shadow emacsbug edebug debug trace pulse eieio-opt speedbar sb-image
ezimage dframe cl-print help-fns radix-tree iso-transl gnus-fun gnus-dup
bbdb-message mailalias quail flow-fill counsel swiper w3m-cookie
w3m-filter w3m-bookmark w3m-tabmenu w3m-session url-http url-gw
url-cache cal-iso org-w3m org-info org-id org-gnus org-crypt org-bibtex
org-bbdb org-agenda misearch multi-isearch copyright magit-bookmark
magit-obsolete magit-blame magit-stash magit-bisect magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-branch
magit-collab ghub url-auth magit-files magit-refs magit-status magit
magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode
magit-core magit-autorevert magit-process magit-margin magit-mode
git-commit magit-git magit-section magit-utils magit-popup log-edit
pcvs-util add-log with-editor async-bytecomp async colir ivy delsel
ivy-overlay ffap w3m-form w3m-symbol mm-archive gnus-cite qp gnus-async
gnus-bcklg gnus-ml gnus-topic mail-extr utf-7 nnml bbdb-gnus bbdb-mua
network-stream nsm starttls gnus-registry registry eieio-base nnir
gnus-delay gnus-draft gnus-agent gnus-srvr gnus-score score-mode
nnvirtual gnus-cache gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime
smime dig gnus-sum nndraft nnmh gnus-demon nntp gnus-group gnus-undo
gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo
gnus-spec gnus-int gnus-range gnus-win cursor-sensor windmove winner
ido-completing-read+ memoize minibuf-eldef server whizzml-skeletons
whizzml-mode bml-logs bml bml-misc bml-clojure bml-clj-tests bml-python
bml-skels bml-utils geiser jao-w3m w3m w3m-hist w3m-fb bookmark-w3m
w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util jao-vc
git-timemachine diff-hl vc-dir vc vc-dispatcher jao-utils battery
jao-undo-tree jao-translate google-translate google-translate-default-ui
google-translate-core-ui google-translate-core google-translate-tk
jao-tex biblio biblio-download biblio-dissemin biblio-hal biblio-dblp
biblio-crossref biblio-arxiv biblio-doi biblio-core hl-line ebib
ebib-reading-list ebib-notes ebib-filters ebib-keywords ebib-utils
ebib-db parsebib bibtex jao-spotify jao-snippets jao-slime slime-banner
slime-asdf grep slime-fancy slime-trace-dialog slime-fontifying-fu
slime-package-fu slime-references slime-compiler-notes-tree
slime-scratch slime-presentations bridge slime-macrostep macrostep
slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace
slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc
slime-repl slime-parse slime hyperspec jao-skels texinfo-skel lisp-skel
muse-skel haskell-skel jao-dominating-file scsh-skel init-skel
common-skel skeleton autoinsert jao-session savehist recentf tree-widget
saveplace jao-sawfish jao-ruby ruby-mode smie jao-python
virtualenvwrapper gud jao-prolog jao-project-root jao-pdf jao-doc-view
jao-oz jao-org jao-org-links jao-devon jao-applescript jao-org-utils
jao-network network-watch jao-muse muse-journal muse-book muse-latex
muse-wiki muse-colors muse-html muse-xml-common muse-publish
muse-project muse-mode muse-protocols muse-regexps muse muse-nested-tags
jao-mode-line spaceline-config spaceline-segments s spaceline powerline
powerline-separators powerline-themes jao-time time jao-maxima
jao-markdown json-mode json-reformat json-snatcher js sgml-mode cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs gh-md eww mm-url gnus nnheader url-queue shr svg dom
markdown-mode color jao-mail randomsig bbdb-anniv bbdb-com crm bbdb
bbdb-site timezone smtpmail sendmail message rmc puny rfc822 mml mml-sec
gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils
mailheader jao-lisp info-look jao-kbd jao-haskell intero company pcase
warnings flycheck json map dash jao-goto-chg jao-gnus jao-gnuplot
jao-frames jao-fonts mm-util mail-prsvr jao-fold jao-factor jao-eshell
fish-completion em-cmpl esh-var esh-io esh-cmd esh-opt esh-ext esh-proc
esh-arg esh-groups eshell esh-module esh-util esh-mode bash-completion
eshell-up pcmpl-args pcmpl-gnu pcmpl-linux pcmpl-unix esh-toggle
git-ps1-mode jao-erlang erlang jao-emms-config jao-emms-info-track
jao-emms jao-osd jao-emms-lyrics jao-emms-random-album
emms-info-metaflac emms-librefm-stream xml emms-librefm-scrobbler
emms-playlist-limit emms-volume emms-volume-amixer emms-i18n
emms-history emms-score emms-stream-info emms-metaplaylist-mode
emms-bookmarks emms-cue emms-mode-line-icon emms-browser sort
emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd
emms-playing-time emms-lyrics emms-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-domsuf url-util
mailcap emms-streams emms-show-all emms-tag-editor emms-mark
emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-info
later-do emms-playlist-mode emms-player-vlc emms-player-mplayer
emms-player-simple emms-source-playlist emms-source-file locate
emms-setup emms emms-compat jao-elisp edit-list jao-edit edit-server
jao-dired dired+ image-dired image-file dired-x dired-aux jao-diminish
jao-dict jao-diary view cal-china lunar solar cal-dst cal-bahai
cal-islam cal-hebrew holidays hol-loaddefs vc-git appt diary-lib
diary-loaddefs jao-deft jao-custom jao-conkeror jao-completion
jao-recoll flx-ido flx ido jao-compile jao-colors jao-mono-dark-theme
jao-themes jao-clojure cider-macroexpansion cider-mode cider-interaction
etags xref project arc-mode archive-mode cider-repl cider-resolve
cider-eldoc cider-test cider-overlays cider-stacktrace cider-doc
org-table org-element avl-tree generator org org-macro org-footnote
org-pcomplete org-list org-faces org-entities noutline outline
org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table
ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs
org-loaddefs cal-menu calendar cal-loaddefs cider-grimoire cider-popup
cider-client cider-common cider-util nrepl-client queue nrepl-dict
cider-compat ewoc spinner clojure-mode subr-x align diminish paredit
jao-fci fill-column-indicator jao-circe circe-lagmon jao-epg epa-file
epa derived epg circe diff-mode lui-irc-colors irc make-tls-process tls
gnutls lcs lui-format lui tracking shorten thingatpt flyspell ispell
circe-compat jao-c jao-buffers elec-pair persistent-scratch time-date
paren autorevert filenotify jao-browse-url edmacro kmacro jao-docview
doc-view pdf-occur ibuf-ext ibuffer ibuffer-loaddefs tablist
tablist-filter semantic/wisent/comp semantic/wisent
semantic/wisent/wisent semantic/util-modes semantic/util semantic
semantic/tag semantic/lex semantic/fw mode-local find-func cedet dired
dired-loaddefs pdf-isearch let-alist pdf-misc imenu pdf-tools compile
cus-edit cus-start cus-load wid-edit pdf-view bookmark pp jka-compr
pdf-cache pdf-info tq pdf-util image-mode cl-extra help-mode term
disp-table ehelp browse-url jao-auto jao-afio use-package
use-package-ensure use-package-delight use-package-diminish
use-package-bind-key bind-key easy-mmode use-package-core finder-inf
tex-site rx cl slime-autoloads tramp tramp-compat tramp-loaddefs
trampver ucs-normalize shell pcomplete comint ansi-color ring parse-time
format-spec advice info jao-elpa package-x package easymenu epg-config
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 3257313 343804)
 (symbols 48 86674 1)
 (miscs 40 10668 5632)
 (strings 32 669521 101418)
 (string-bytes 1 24294796)
 (vectors 16 135917)
 (vector-slots 8 3387304 187382)
 (floats 8 2401 2048)
 (intervals 56 78147 19074)
 (buffers 992 318))

To be well informed, one must read quickly a great number of merely
instructive books. To be cultivated, one must read slowly and with a
lingering appreciation the comparatively few books that have been written
by men who lived, thought, and felt with style. -Aldous Huxley

--- End Message ---
--- Begin Message --- Subject: Re: bug#29767: 26.0.90; Failing auto-fill in message-mode because of bad state (comment-skip-end) Date: Thu, 11 Jan 2018 10:11:51 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
> The patch below seems to fix it for me.  Is it OK to push it to emacs-26?



--- End Message ---

reply via email to

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