From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#28492: 27.0.50; File mode specification error for some files during desktop-read Date: Mon, 18 Sep 2017 13:58:08 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c076876941f420559772278" X-Trace: blaine.gmane.org 1505743160 16651 195.159.176.226 (18 Sep 2017 13:59:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Sep 2017 13:59:20 +0000 (UTC) To: 28492@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 18 15:59:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtwZs-0003tL-EM for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Sep 2017 15:59:12 +0200 Original-Received: from localhost ([::1]:36776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtwZy-0001D5-84 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Sep 2017 09:59:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtwZn-00019s-1r for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 09:59:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtwZi-00012c-5x for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 09:59:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37811) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dtwZi-00012H-33 for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 09:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dtwZh-00026J-QA for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 09:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Sep 2017 13:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28492 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.15057431178041 (code B ref -1); Mon, 18 Sep 2017 13:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Sep 2017 13:58:37 +0000 Original-Received: from localhost ([127.0.0.1]:46492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtwZI-00025c-7b for submit@debbugs.gnu.org; Mon, 18 Sep 2017 09:58:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtwZF-00025P-KS for submit@debbugs.gnu.org; Mon, 18 Sep 2017 09:58:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtwZ8-0000id-Ev for submit@debbugs.gnu.org; Mon, 18 Sep 2017 09:58:28 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dtwZ8-0000iN-Bu for submit@debbugs.gnu.org; Mon, 18 Sep 2017 09:58:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dtwZ6-0000gE-5K for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 09:58:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dtwZ4-0000e2-6n for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 09:58:24 -0400 Original-Received: from mail-yw0-x22c.google.com ([2607:f8b0:4002:c05::22c]:50174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dtwZ4-0000cg-0p for bug-gnu-emacs@gnu.org; Mon, 18 Sep 2017 09:58:22 -0400 Original-Received: by mail-yw0-x22c.google.com with SMTP id l4so391871ywa.6 for ; Mon, 18 Sep 2017 06:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=N8tyDStGEO1Ae9d3XOSjJOdpmwLyWcFCM0yax2lsdxA=; b=ljQil0E3aY+FrNKONeRMmpnapnD8T6Ao4RV4cfHhd54kay1LIFP+KatwRQE5QVChXC QLpTOoZ1ghogRnGizcV5NDGbDcbLLV+3w7cms+JPQJjgnVgsYaAxzai1IBOaq1kPjbLb CP7txTF7V1lg9b9nOn9D9E2xNw+5/Qa7Cqs4VH/Py3KKeM0nKlxLe7DA5+Kyiz+gHPn1 9mzSuMpRLB/bewB6e36aoPuHEq2aVtWT6vnhSwjP6kGLMHnnBBaBhLCbWcZbKDyIrvXw 5GcrMxRelicKwGKyE0J21VjY5R/rbPLGP50u3MJqOAtrL4BrMmZbIluoY1g0u8CyvRln LyNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=N8tyDStGEO1Ae9d3XOSjJOdpmwLyWcFCM0yax2lsdxA=; b=VDIRLR2MDI/PMWFgi+DMrgII4l5W3/GyPpg+znEghR3d82tc8KRyk3+qBVQeV9tiRU Yi6LqZF1v+HpEzhBd3py7uRzFfDaqlBVIvKCQTjFTB14l4JrI2wThyx8usF59uz2epm0 yd3uJoqUMDHXYn9tfe7Znk7VQazB+YJgFNlHyIVahuyzNjZ026q1clrh6dwPSo3+FK60 TJdXQn873WZ/deKmetsFKrIfET6ecEP/zvcLgExk5VbiqKdJQXs8ZOf6nxA+VdOBwRb4 m8L/vQRnp5NtuqG8UnNkPmUtzW8KKPXRQq5HyuvVpfLKfhptFJ8xOQ3vQFkUM/WJCrFc pmfg== X-Gm-Message-State: AHPjjUgPP8SRQQGaydDpJjpeISgk8N62vtF75pEYvc6It7GDeoFheTLs dq5Mjpyr/ydgz3tsgJfJZomWY+dz8e7Wt3VgofY= X-Google-Smtp-Source: ADKCNb4iQhOtgO8+V7qwvLYH7xpqbGqMJrRk3t4yv6AkAV9gjc7/sYZSNJggR2VE/wjB/rh4ZDMS+hCO3y2Dst2MZ7I= X-Received: by 10.13.221.211 with SMTP id g202mr29888464ywe.246.1505743099664; Mon, 18 Sep 2017 06:58:19 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137050 Archived-At: --94eb2c076876941f420559772278 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, To start off, this issue is not specific to emacs 27. I have been noticing this issue for maybe one or two weeks and just to formally reporting it. Issue: When doing desktop-read, only files from a certain project root cause these errors: File mode specification error: (wrong-type-argument stringp nil) [2 times] Digging deeper, it looks like the set-auto-mode call in normal-mode is returning nil. But it is surprising because the files for which this error shows up does actually have an associated major mode (verilog-mode). After the desktop loads, I am able to see the files that flagged that error properly in the correct major mode though. Here is the error backtrace: (*I have replaced the actual path with /my/prj/root/some.file for the purpose of corporate privacy. The some.file is has verilog-mode as its major mode.) Debugger entered--Lisp error: "File mode specification error: (wrong-type-argument stringp nil)" #("File mode specification error: %s" (wrong-type-argument stringp nil)) apply(# ("File mode specification error: %s" (wrong-type-argument stringp nil))) message("File mode specification error: %s" (wrong-type-argument stringp nil)) normal-mode(t) after-find-file(nil nil) find-file-noselect-1(# "/my/prj/root/some.file" :nowarn nil "/my/prj/root/some.file" (96434279 175)) find-file-noselect("/my/prj/root/some.file" :nowarn) desktop-restore-file-buffer("/my/prj/root/some.file" "some.file" nil) desktop-create-buffer(208 "/my/prj/root/some.file" "some.file" verilog-mode (abbrev-mode override-global-mode modi-mode beacon-mode hi-lock-mode volatile-highlights-mode hungry-delete-mode rainbow-delimiters-mode undo-tree-mode projectile-mode hardcore-mode ivy-mode which-key-mode flyspell-mode yas-minor-mode auto-complete-mode mode-line-space-mode) 6362 (19911 nil) t nil ((buffer-display-time 22952 2660 236587 832000) (buffer-file-coding-system . undecided-unix)) ((mark-ring (19911)))) eval-buffer(# nil "/home/kmodi/.emacs.d/emacs_27_0.desktop" nil t) ; Reading at buffer position 67828 In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.23) of 2017-09-16 Repository revision: 977cd6cb28a37744966ec62f70cf62659f6f302a Windowing system distributor 'The X.Org Foundation', version 11.0.60900000 System Description: Red Hat Enterprise Linux Workstation release 6.6 (Santiago) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-modules --prefix=3D/home/kmodi/usr_local/apps/6/emacs/master '--program-transform-name=3Ds/^ctags$/ctags_emacs/' 'CPPFLAGS=3D-I/home/kmodi/usr_local/6/include -I/usr/include/freetype2 -I/usr/include' 'CFLAGS=3D-ggdb3 -O0' 'CXXFLAGS=3D-ggdb3 -O0' 'LDFLAGS=3D-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64 -ggdb3' PKG_CONFIG_PATH=3D/home/kmodi/usr_local/6/lib/pkgconfig:/home/kmodi/usr_lo= cal/6/lib64/pkgconfig:/cad/adi/apps/gnu/linux/x86_64/6/lib/pkgconfig:/cad/a= di/apps/gnu/linux/x86_64/6/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pk= gconfig:/usr/share/pkgconfig:/lib/pkgconfig:/lib64/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 MODULES Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dnone locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu 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 elec-pair time-date 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 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 97100 8003) (symbols 48 20813 1) (miscs 40 46 119) (strings 32 28798 1799) (string-bytes 1 765072) (vectors 16 14942) (vector-slots 8 508712 6478) (floats 8 48 68) (intervals 56 245 0) (buffers 992 11) (heap 1024 29158 859)) --=20 Kaushal Modi --94eb2c076876941f420559772278 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

To start off, this is= sue is not specific to emacs 27. I have been noticing this issue for maybe = one or two weeks and just to formally reporting it.

Issue: When doing desktop-read, only files from a certain project root ca= use these errors:

=C2=A0 =C2=A0 File mode specific= ation error: (wrong-type-argument stringp nil) [2 times]

=
Digging deeper, it looks like the set-auto-mode call in normal-m= ode is returning nil. But it is surprising because the files for which this= error shows up does actually have an associated major mode (verilog-mode).=

After the desktop loads, I am able to see the fil= es that flagged that error properly in the correct major mode though.
=

Here is the error backtrace:

(= *I have replaced the actual path with /my/prj/root/some.file for the purpos= e of corporate privacy. The some.file is has verilog-mode as its major mode= .)

Debugger entered--Lisp error: "File m= ode specification error: (wrong-type-argument stringp nil)"
= =C2=A0 #<subr message>("File mode specification error: %s" = (wrong-type-argument stringp nil))
=C2=A0 apply(#<subr message= > ("File mode specification error: %s" (wrong-type-argument st= ringp nil)))
=C2=A0 message("File mode specification error: = %s" (wrong-type-argument stringp nil))
=C2=A0 normal-mode(t)=
=C2=A0 after-find-file(nil nil)
=C2=A0 find-file-nosel= ect-1(#<buffer some.file> "/my/prj/root/some.file" :nowarn = nil "/my/prj/root/some.file" (96434279 175))
=C2=A0 fin= d-file-noselect("/my/prj/root/some.file" :nowarn)
=C2= =A0 desktop-restore-file-buffer("/my/prj/root/some.file" "so= me.file" nil)
=C2=A0 desktop-create-buffer(208 "/my/prj= /root/some.file" "some.file" verilog-mode (abbrev-mode overr= ide-global-mode modi-mode beacon-mode hi-lock-mode volatile-highlights-mode= hungry-delete-mode rainbow-delimiters-mode undo-tree-mode projectile-mode = hardcore-mode ivy-mode which-key-mode flyspell-mode yas-minor-mode auto-com= plete-mode mode-line-space-mode) 6362 (19911 nil) t nil ((buffer-display-ti= me 22952 2660 236587 832000) (buffer-file-coding-system . undecided-unix)) = ((mark-ring (19911))))
=C2=A0 eval-buffer(#<buffer =C2=A0*load= *-734956> nil "/home/kmodi/.emacs.d/emacs_27_0.desktop" nil t)= =C2=A0; Reading at buffer position 67828



In GNU Emacs 27.0.50 (build 1, x= 86_64-pc-linux-gnu, GTK+ Version 2.24.23)
=C2=A0of 2017-09-16=C2= =A0
Repository revision: 977cd6cb28a37744966ec62f70cf62659f6f302a=
Windowing system distributor 'The X.Org Foundation', ver= sion 11.0.60900000
System Description: Red Hat Enterprise Linux Workstation release 6.6 (Santiago)

Recent messages:
For information about GNU= Emacs and the GNU system, type C-h C-a.

Configure= d using:
=C2=A0'configure --with-modules
=C2=A0--pr= efix=3D/home/kmodi/usr_local/apps/6/emacs/master
=C2=A0'--pro= gram-transform-name=3Ds/^ctags$/ctags_emacs/'
=C2=A0'CPPF= LAGS=3D-I/home/kmodi/usr_local/6/include -I/usr/include/freetype2
=C2=A0-I/usr/include' 'CFLAGS=3D-ggdb3 -O0' 'CXXFLAGS=3D-g= gdb3 -O0'
=C2=A0'LDFLAGS=3D-L/home/kmodi/usr_local/6/lib = -L/home/kmodi/usr_local/6/lib64
=C2=A0-ggdb3'
=C2= =A0PKG_CONFIG_PATH=3D/home/kmodi/usr_local/6/lib/pkgconfig:/home/kmodi/usr_= local/6/lib64/pkgconfig:/cad/adi/apps/gnu/linux/x86_64/6/lib/pkgconfig:/cad= /adi/apps/gnu/linux/x86_64/6/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/= pkgconfig:/usr/share/pkgconfig:/lib/pkgconfig:/lib64/pkgconfig'

Configured features:
XPM JPEG TIFF GIF PNG RSVG= IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTL= S LIBXML2 FREETYPE LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11 M= ODULES

Important settings:
=C2=A0 value = of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dnone
=C2=A0 locale-coding-system: utf-8-unix

Maj= or mode: Lisp Interaction

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
= =C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mo= de: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-= mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug= message subr-x puny seq byte-opt gv
bytecomp byte-compile cconv = cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc822 mml ea= symenu mml-sec password-cache epa derived epg
epg-config gnus-uti= l rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse r= fc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 i= etf-drums mm-util mail-prsvr mail-utils elec-pair time-date
mule-= util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-flo= at-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dn= d 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 georg= ian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao kor= ean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech = european
ethiopic indian cyrillic chinese composite charscript ch= arprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarr= ay minibuffer
cl-preloaded nadvice loaddefs button faces cus-face= macroexp files
text-properties overlay sha1 md5 base64 format en= v code-pages mule
custom widget hashtable-print-readable backquot= e dbusbind inotify
dynamic-setting system-font-setting font-rende= r-setting move-toolbar gtk
x-toolkit x multi-tty make-network-pro= cess emacs)

Memory information:
((conses= 16 97100 8003)
=C2=A0(symbols 48 20813 1)
=C2=A0(miscs= 40 46 119)
=C2=A0(strings 32 28798 1799)
=C2=A0(string= -bytes 1 765072)
=C2=A0(vectors 16 14942)
=C2=A0(vector= -slots 8 508712 6478)
=C2=A0(floats 8 48 68)
=C2=A0(int= ervals 56 245 0)
=C2=A0(buffers 992 11)
=C2=A0(heap 102= 4 29158 859))

--

Kaushal Modi

--94eb2c076876941f420559772278--