all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reiner Steib <Reiner.Steib@gmx.de>
To: 25597@debbugs.gnu.org
Subject: bug#25597: 25.1; SMIE: error in smie-indent--rule
Date: Wed, 01 Feb 2017 10:40:36 +0100	[thread overview]
Message-ID: <877f5az1t7.fsf@marauder.physik.uni-ulm.de> (raw)

Recipe:
(I don't see this bug in GNU Emacs 24.3.1., but in GNU Emacs 25.1.1.)

$ emacs -Q --eval "(progn
    (add-hook 'sh-set-shell-hook 'sh-learn-buffer-indent)
    (setq debug-on-error t))" smie-bug.sh

%%% test-file: smie-bug.sh
#! /bin/bash

awk -F\; '\
{ if ($5 ~ "^[0-9]{1,3}" &&
      ( ($16 ~ "l7" && $4 ~ "O" ) ||	       \
	($16 ~ "b" && $4 ~ "c" ) ||	       \
	($16 ~ "s|c|l" ) ) )		       \
    { print $5 "\r" } }' \
    a.csv > r.csv
#

# awk -F\; -v q=\' '{
#   printf("update foo bar");
# }' < s1.csv > s2.sql
%%%

%%% Backtrace
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p
noindent)
  smie-indent--rule(:after "{" 242 nil 239)
  smie-indent-after-keyword()
  run-hook-with-args-until-success(smie-indent-after-keyword)
  smie-indent-calculate()
  smie-config--get-trace()
  smie-config--guess(1 295)
  smie-config-guess()
  sh-learn-buffer-indent()
  run-hooks(sh-set-shell-hook)
  sh-set-shell("/bin/bash" nil nil)
  sh-mode()
  set-auto-mode-0(sh-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer smie-bug.sh> ".../tmp/smie-bug.sh" nil
nil ".../tmp/smie-bug.sh" (0 (31798 . 32572)))
  find-file-noselect(".../tmp/smie-bug.sh")
  #[1285 "[bytecode]" [file-name-absolute-p message "Ignoring
relative file name (%s) due to nil default-directory" expand-file-name
command-line-normalize-file-name find-file-noselect 0 1
move-to-column] 10 "\n\n(fn DISPLAYABLE-BUFFERS DIR LINE COLUMN
NAME)"]((nil) ".../tmp/" (0) (0) "smie-bug.sh")
  command-line-1(("--eval" "(progn (add-hook 'sh-set-shell-hook
sh-learn-buffer-indent) (setq debug-on-error t))" "smie-bug.sh"))
  command-line()
  normal-top-level()
%%%

In GNU Emacs 25.1.1 (i686-w64-mingw32)
 of 2016-09-17 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
Configured using:
 'configure --host=i686-w64-mingw32 --without-dbus
 --without-compress-install CFLAGS=-static'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS

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

Major mode: Debugger

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
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Setting up indent for shell type bash
Indentation variables are now local.
Indentation setup for shell type bash
Analyzing the buffer...
Entering debugger...
Making completion list...

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils
help-mode easymenu cl-loaddefs pcase cl-lib debug sh-script smie
executable time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table
w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core 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 charscript case-table epa-hook
jka-cmpr-hook help simple abbrev 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 w32notify w32 multi-tty
make-network-process emacs)

Memory information:
((conses 8 98151 5364)
 (symbols 32 20410 0)
 (miscs 32 83 223)
 (strings 16 19000 4247)
 (string-bytes 1 500915)
 (vectors 8 13312)
 (vector-slots 4 460032 5782)
 (floats 8 174 129)
 (intervals 28 322 53)
 (buffers 520 24))

Bye, Reiner.





             reply	other threads:[~2017-02-01  9:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-01  9:40 Reiner Steib [this message]
2019-07-26 14:34 ` bug#25597: 25.1; SMIE: error in smie-indent--rule Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877f5az1t7.fsf@marauder.physik.uni-ulm.de \
    --to=reiner.steib@gmx.de \
    --cc=25597@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.