GNU bug report logs - #36593
(wrong-type-argument integer-or-marker-p nil) when deleting char in C file

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Thu, 11 Jul 2019 09:43:02 UTC

Severity: normal

Tags: fixed

Found in version 26.2

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36593 in the body.
You can then email your comments to 36593 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36593; Package emacs. (Thu, 11 Jul 2019 09:43:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dani Moncayo <dmoncayo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 11 Jul 2019 09:43:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: bug-gnu-emacs <bug-gnu-emacs <at> gnu.org>
Date: Thu, 11 Jul 2019 11:42:11 +0200
[Message part 1 (text/plain, inline)]
Recipe from "emacs -Q":

* Visit the attached file.
* Try to delete the second character in line 2.

At that moment, I see the following error:
  c-forward-name: Wrong type argument: integer-or-marker-p, nil

-- 
Dani Moncayo

In GNU Emacs 26.2 (build 1, x86_64-pc-cygwin)
 of 2019-04-15 built on moufang2
Repository revision: 3eb72f90eb994355ed13a136386f4cc0e1f7fd06
Windowing system distributor 'Microsoft Corp.', version 6.3.9600
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
c-forward-name: Wrong type argument: integer-or-marker-p, nil
Configured using:
 'configure
 --srcdir=/home/kbrown/src/cygemacs/emacs-26.2-1.x86_64/src/emacs-26.2
 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc
 --docdir=/usr/share/doc/emacs --htmldir=/usr/share/doc/emacs/html -C
 --with-w32 'CFLAGS=-ggdb -O2 -pipe -Wall -Werror=format-security
 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong
 --param=ssp-buffer-size=4
 -fdebug-prefix-map=/home/kbrown/src/cygemacs/emacs-26.2-1.x86_64/build=/usr/src/debug/emacs-26.2-1
 -fdebug-prefix-map=/home/kbrown/src/cygemacs/emacs-26.2-1.x86_64/src/emacs-26.2=/usr/src/debug/emacs-26.2-1'
 CPPFLAGS= LDFLAGS='

Configured features:
XPM JPEG TIFF GIF PNG IMAGEMAGICK SOUND DBUS GLIB NOTIFY ACL GNUTLS
LIBXML2 ZLIB TOOLKIT_SCROLL_BARS XIM THREADS LCMS2

Important settings:
  value of $LANG: C.ISO-8859-1
  locale-coding-system: iso-latin-1-unix

Major mode: C/*l

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-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
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml
mml-sec password-cache epa derived epg epg-config gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils cc-mode cc-fonts easymenu cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
cl-loaddefs cl-lib elec-pair time-date mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel disp-table
term/w32-win w32-win w32-vars term/common-win 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 threads dbusbind gfilenotify w32 lcms2 multi-tty
make-network-process emacs)

Memory information:
((conses 16 117211 8204)
 (symbols 48 22508 2)
 (miscs 40 39 158)
 (strings 32 35475 1105)
 (string-bytes 1 1043992)
 (vectors 16 17218)
 (vector-slots 8 528979 11656)
 (floats 8 53 217)
 (intervals 56 368 226)
 (buffers 992 12))
[fp.c (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36593; Package emacs. (Thu, 11 Jul 2019 11:29:02 GMT) Full text and rfc822 format available.

Message #8 received at 36593 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 36593 <at> debbugs.gnu.org
Subject: Re: bug#36593: (wrong-type-argument integer-or-marker-p nil) when
 deleting char in C file
Date: Thu, 11 Jul 2019 07:28:26 -0400
retitle 36593 (wrong-type-argument integer-or-marker-p nil) when deleting char in C file
found 36593 26.2
tags 36593 fixed
close 36593 27.1
quit

Dani Moncayo <dmoncayo <at> gmail.com> writes:

> Recipe from "emacs -Q":
>
> * Visit the attached file.
> * Try to delete the second character in line 2.

Seems to be fixed in master.  Here's the backtrace from emacs-26 for the
record:

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  c-forward-sws()
  c-forward-name()
  c-forward-declarator(nil)
  c-fl-decl-end(8)
  c-change-expand-fl-region(8 8 1)
  #f(compiled-function (fn) #<bytecode 0xe4814d>)(c-change-expand-fl-region)
  mapc(#f(compiled-function (fn) #<bytecode 0xe4814d>) (c-depropertize-new-text c-parse-quotes-after-change c-extend-font-lock-region-for-macros c-neutralize-syntax-in-CPP c-change-expand-fl-region))
  c-after-change(8 8 1)
  delete-char(1)
  c-electric-delete-forward(nil)
  funcall-interactively(c-electric-delete-forward nil)
  call-interactively(c-electric-delete-forward nil nil)
  command-execute(c-electric-delete-forward)




Set bug title to '(wrong-type-argument integer-or-marker-p nil) when deleting char in C file'. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 11 Jul 2019 11:29:02 GMT) Full text and rfc822 format available.

bug Marked as found in versions 26.2. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 11 Jul 2019 11:29:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 11 Jul 2019 11:29:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 36593 <at> debbugs.gnu.org and Dani Moncayo <dmoncayo <at> gmail.com> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 11 Jul 2019 11:29:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 09 Aug 2019 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 259 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.