[Pkg-emacsen-addons] Bug#859011: elpa-editorconfig: editorconfig breaks opening a file when parent directory doesn't exist

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Mar 29 14:19:55 UTC 2017


Package: elpa-editorconfig
Version: 0.4+git20151028.3835e4-1
Severity: normal

A common pattern for me when starting work on a new project foo, when
/home/dkg/src/foo does not exist is:

  C-x C-f /home/dkg/src/foo/notes.txt RET
  M-x make-directory RET RET

but when i have elpa-editorconfig installed, this actually fails to
open the file in the first place (C-x C-f actually fails), so the
workflow breaks.

in *Messages* when i try that with elpa-editorconfig installed, i get:

Use M-x make-directory RET RET to create the directory and its parents
edconf-get-properties: Setting current directory: no such file or directory, /home/dkg/src/foo

Is there a way that edconf-get-properties can fail less fatally so
that this workflow is functional again?

     --dkg

-- System Information:
Debian Release: 9.0
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages elpa-editorconfig depends on:
ii  editorconfig    0.12.1-1+b1
ii  emacsen-common  2.0.8

Versions of packages elpa-editorconfig recommends:
ii  emacs           46.1
ii  emacsen-common  2.0.8

elpa-editorconfig suggests no packages.

-- no debconf information



More information about the Pkg-emacsen-addons mailing list