From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sergio Pokrovskij Newsgroups: gmane.emacs.bugs Subject: bug#17489: 24.3; Major mode spec in .dir-locals.el breaks dired Date: Wed, 14 May 2014 14:14:48 +0700 Message-ID: <87d2fg6dcn.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1400052574 19383 80.91.229.3 (14 May 2014 07:29:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 May 2014 07:29:34 +0000 (UTC) To: 17489@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 14 09:29:27 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WkTd0-0003Pp-O1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 May 2014 09:29:26 +0200 Original-Received: from localhost ([::1]:49731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkTd0-0003vK-8B for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 May 2014 03:29:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkTcm-0003gD-Cl for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 03:29:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkTcd-0001xm-3H for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 03:29:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkTcd-0001xh-0j for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 03:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WkTcc-0005dO-3u for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 03:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sergio Pokrovskij Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 May 2014 07:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17489 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.140005250721597 (code B ref -1); Wed, 14 May 2014 07:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 May 2014 07:28:27 +0000 Original-Received: from localhost ([127.0.0.1]:34640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WkTc2-0005cG-2t for submit@debbugs.gnu.org; Wed, 14 May 2014 03:28:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56868) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WkTPX-0005Dk-Go for submit@debbugs.gnu.org; Wed, 14 May 2014 03:15:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkTPJ-0005YY-01 for submit@debbugs.gnu.org; Wed, 14 May 2014 03:15:26 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkTPI-0005YI-Tx for submit@debbugs.gnu.org; Wed, 14 May 2014 03:15:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkTP9-0007pP-Aw for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 03:15:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkTP0-0005CB-9G for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 03:15:07 -0400 Original-Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:59968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkTOz-0005Bw-Dq for bug-gnu-emacs@gnu.org; Wed, 14 May 2014 03:14:58 -0400 Original-Received: by mail-lb0-f182.google.com with SMTP id q8so1078529lbi.41 for ; Wed, 14 May 2014 00:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=pqkOy6LVIOqlwAegqf1Jqf7Vgzxwyb3mj9fx/Vu3Wt8=; b=x8rMw5tSBSx5vdhj76Irrh1d+UNJYbBYwBJ10ExV/b0TRFbSGDzdxBQ2w4lSq/YoCj pwbPNwTM+1/NEz2hVIJcPKYqn9GwoOQ2xVy2d9bZ09+qyNufo1xplERZ19GHbwgPZMZ6 GjGmMEqqB0JSAHZ+GHETImNb4rtj9j5VfkTZtn6uxEFUqKOaCrwNpHsQN4ONBpXU09Af pfDDNcBrh1lhyu/y1486CE4din0KcHhNRpMp18aLT8w3X1PDVqynWWNzFNOU95H/0Ssk sSAcvP7t9rUTyisyuuxD3okP0r2kZOsz7Z0WdU1aXCYFdMekLCpMcWb6raG/xed4a2go 5MRg== X-Received: by 10.152.42.234 with SMTP id r10mr243127lal.66.1400051695795; Wed, 14 May 2014 00:14:55 -0700 (PDT) Original-Received: from hp12 ([176.51.121.255]) by mx.google.com with ESMTPSA id mk2sm950925lbc.8.2014.05.14.00.14.53 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 14 May 2014 00:14:54 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 14 May 2014 03:28:23 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89060 Archived-At: Given a .dir-locals.el file of the form: --8<---------------cut here---------------start------------->8--- % ls -al /tmp/tst/ total 16 drwxrwxr-x 2 sergio sergio 4096 мая 14 12:01 . drwxrwxrwt 17 root root 4096 мая 14 14:06 .. -rw-rw-r-- 1 sergio sergio 44 мая 14 12:01 .dir-locals.el -rw-rw-r-- 1 sergio sergio 4 мая 14 11:58 t.t % % cat /tmp/tst/.dir-locals.el ((nil . ((mode . c) (fill-column . 80)))) % --8<---------------cut here---------------end--------------->8--- it works okay for the local files which are read with a path in the command-line or with a find-file: --8<---------------cut here---------------start------------->8--- % emacs -nw -Q /tmp/tst/t.t --8<---------------cut here---------------end--------------->8--- The file is open in c-mode, the *Messages* contains: --8<---------------cut here---------------start------------->8--- ("emacs" "/tmp/tst/t.t") For information about GNU Emacs and the GNU system, type C-h C-a. Loading cc-langs...done --8<---------------cut here---------------end--------------->8--- Yet it prevents the dired buffer for /tmp/tst/ to be displayed; a "Wrong type argument: stringp, nil" message is issued. This seems to occur for any major mode; I tried it for psgml-mode, text-mode, c-mode. It can be reproduced form batch or interactively. The batch version: --8<---------------cut here---------------start------------->8--- % cat /tmp/tst/.dir-locals.el ((nil . ((mode . c) (fill-column . 80)))) % % cat /tmp/ff.el (find-file "/tmp/tst" t) % % emacs -Q -batch -l /tmp/ff.el Loading cc-langs... Wrong type argument: stringp, nil % --8<---------------cut here---------------end--------------->8--- Same for the interactive version: --8<---------------cut here---------------start------------->8--- % emacs -nw -Q /tmp/tst/ --8<---------------cut here---------------end--------------->8--- *Messages* contains: --8<---------------cut here---------------start------------->8--- ("emacs" "/tmp/tst/") For information about GNU Emacs and the GNU system, type C-h C-a. Loading cc-langs...done dired-sort-R-check: Wrong type argument: stringp, nil --8<---------------cut here---------------end--------------->8--- ================================== In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-07-27 on roseapple, modified by Debian System Description: Ubuntu 13.10 Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_MONETARY: ru_RU.UTF-8 value of $LC_NUMERIC: ru_RU.UTF-8 value of $LC_TIME: ru_RU.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 0 ; 1 1 5 ; 0 c ESC x r e p o r t - e m a c s - b u g RET Recent messages: ("emacs" "/tmp/tst/") For information about GNU Emacs and the GNU system, type C-h C-a. Loading cc-langs...done dired-sort-R-check: Wrong type argument: stringp, nil Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message cl-macs gv format-spec rfc822 mml mml-sec 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-langs cl cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs dired time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment 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 macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- Sergio