From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt Lundin Newsgroups: gmane.emacs.bugs Subject: bug#20386: 25.0.50; error when calling sgml-attributes and sgml-tag Date: Mon, 20 Apr 2015 14:15:03 -0500 Message-ID: <87mw22k3wo.fsf@fastmail.fm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429557386 3137 80.91.229.3 (20 Apr 2015 19:16:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Apr 2015 19:16:26 +0000 (UTC) To: 20386@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 20 21:16:13 2015 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 1YkHAz-0005fO-0p for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Apr 2015 21:16:13 +0200 Original-Received: from localhost ([::1]:55068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkHAy-000690-7Y for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Apr 2015 15:16:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkHAs-00064O-8e for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2015 15:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkHAo-0004rH-Mx for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2015 15:16:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkHAo-0004rB-JX for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2015 15:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YkHAo-00061f-Ai for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2015 15:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt Lundin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Apr 2015 19:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20386 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.142955733023111 (code B ref -1); Mon, 20 Apr 2015 19:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Apr 2015 19:15:30 +0000 Original-Received: from localhost ([127.0.0.1]:33842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YkHAH-00060f-Ei for submit@debbugs.gnu.org; Mon, 20 Apr 2015 15:15:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33160) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YkHAC-00060D-Kr for submit@debbugs.gnu.org; Mon, 20 Apr 2015 15:15:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkHA5-0004lA-LW for submit@debbugs.gnu.org; Mon, 20 Apr 2015 15:15:19 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkHA5-0004kw-IU for submit@debbugs.gnu.org; Mon, 20 Apr 2015 15:15:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkHA0-0005cS-8J for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2015 15:15:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkH9w-0004j8-Rw for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2015 15:15:12 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:45417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkH9w-0004aF-G7 for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2015 15:15:08 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A6CC72090D; Mon, 20 Apr 2015 15:15:04 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Mon, 20 Apr 2015 15:15:04 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=imapmail.org; h= content-type:date:from:message-id:mime-version:subject:to :x-sasl-enc:x-sasl-enc; s=mesmtp; bh=tyg3JXyNx/vzSWEpQHu3gVB6QC4 =; b=JjelY+BoJYrle2Ytx8tVnDm8Wa80lcegH4K6ckV1KreoMiEE4nh2a0Idd7r vW7lVD47rBHcL3NLuiHVRATFfAG2fjDZTjPIW5xg8PSMsoFrgpRsomYikcaEy3tR 7MDGzUn85DqPg+He77dbjYYmrWL0+CppveAh3S4BHmEr94Og= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=ty g3JXyNx/vzSWEpQHu3gVB6QC4=; b=DQMAk+AfDqxDSjpL2rtAiuvD6iOi1lznyv c5SQYxOW5D0Ffddl+yySmlDzWIGDU+enE/aW3y0OpQ0sYAl0ljbw/eSpQGFslK2i 0Mex115oluCJhGZUynb7C639a6t41v1qQmB959fs78wbL6Ed5A4OkGqN5ZaNQfqV biErDiqmM= X-Sasl-enc: pDS27bVAA9Kg0101mmSvVWuAxz+bCVMUYOf/lOY8I5/P 1429557304 Original-Received: from archeee (unknown [209.147.100.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 61AF9680103 for ; Mon, 20 Apr 2015 15:15:04 -0400 (EDT) User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:101770 Archived-At: Within html-mode, calling sgml-tag (C-c C-o) and entering a tag that prompts for attributes (e.g., "h3") results in the error/backtrace included below. A similar error occurs when calling sgml-attributes within an existing tag (e.g., "

"). As far as I can tell, this error began with commit 84e0b7dad6f1a8e53261f9b96f5a9080fea681a4. Debugger entered--Lisp error: (void-variable alist) (completing-read "Attribute: " alist) eval((completing-read "Attribute: " alist)) skeleton-read((completing-read "Attribute: " alist)) sgml-attributes("h3" t) (setq v2 (sgml-attributes "h3" t)) eval((setq v2 (sgml-attributes "h3" t))) skeleton-internal-1((quote (setq v2 (sgml-attributes "h3" t))) nil nil) skeleton-internal-list((("") (quote (setq v2 (sgml-attributes "h3" t))) 62 (cond ((string= "![" "h3") (backward-char) (quote (("") " [ " _ " ]]"))) ((and (eq v2 t) sgml-xml-mode (member "h3" sgml-empty-tags)) (quote (("") -1 " />"))) ((or (and (eq v2 t) (not sgml-xml-mode)) (string-match "^[/!?]" "h3")) nil) ((symbolp v2) (if (eq v2 t) (setq v2 nil)) (quote (("") v2 _ v2 "))) ((eq (car v2) t) (cons (quote ("")) (cdr v2))) (t (append (quote (("") (car v2))) (cdr v2) (quote (resume: (car v2) _ ")))))) "") skeleton-internal-1((("") (quote (setq v2 (sgml-attributes "h3" t))) 62 (cond ((string= "![" "h3") (backward-char) (quote (("") " [ " _ " ]]"))) ((and (eq v2 t) sgml-xml-mode (member "h3" sgml-empty-tags)) (quote (("") -1 " />"))) ((or (and (eq v2 t) (not sgml-xml-mode)) (string-match "^[/!?]" "h3")) nil) ((symbolp v2) (if (eq v2 t) (setq v2 nil)) (quote (("") v2 _ v2 "))) ((eq (car v2) t) (cons (quote ("")) (cdr v2))) (t (append (quote (("") (car v2))) (cdr v2) (quote (resume: (car v2) _ ")))))) t nil) skeleton-internal-1((\` (("") (quote (setq v2 (sgml-attributes (\, str) t))) 62 (cond ((string= "![" (\, str)) (backward-char) (quote (("") " [ " _ " ]]"))) ((and (eq v2 t) sgml-xml-mode (member (\, str) sgml-empty-tags)) (quote (("") -1 " />"))) ((or (and (eq v2 t) (not sgml-xml-mode)) (string-match "^[/!?]" (\, str))) nil) ((symbolp v2) (if (eq v2 t) (setq v2 nil)) (quote (("") v2 _ v2 "))) ((eq (car v2) t) (cons (quote ("")) (cdr v2))) (t (append (quote (("") (car v2))) (cdr v2) (quote (resume: (car v2) _ "))))))) nil nil) skeleton-internal-list(((funcall (or skeleton-transformation-function (quote identity)) (setq sgml-tag-last (completing-read (if (> (length sgml-tag-last) 0) (format "Tag (default %s): " sgml-tag-last) "Tag: ") sgml-tag-alist nil nil nil (quote sgml-tag-history) sgml-tag-last))) 60 str | (("") -1 (quote (undo-boundary)) (identity "<")) | (\` (("") (quote (setq v2 (sgml-attributes (\, str) t))) 62 (cond ((string= "![" (\, str)) (backward-char) (quote (("") " [ " _ " ]]"))) ((and (eq v2 t) sgml-xml-mode (member (\, str) sgml-empty-tags)) (quote (("") -1 " />"))) ((or (and (eq v2 t) (not sgml-xml-mode)) (string-match "^[/!?]" (\, str))) nil) ((symbolp v2) (if (eq v2 t) (setq v2 nil)) (quote (("") v2 _ v2 "))) ((eq (car v2) t) (cons (quote ("")) (cdr v2))) (t (appen d (quote (... ...)) (cdr v2) (quote (resume: ... _ ")))))))) nil) #[nil "\302 \"\207" [skeleton str skeleton-internal-list] 3]() funcall(#[nil "\302 \"\207" [skeleton str skeleton-internal-list] 3]) (let ((completion-ignore-case (quote t))) (funcall (quote #[nil "\302 \"\207" [skeleton str skeleton-internal-list] 3]))) eval((let ((completion-ignore-case (quote t))) (funcall (quote #[nil "\302 \"\207" [skeleton str skeleton-internal-list] 3])))) skeleton-insert(((funcall (or skeleton-transformation-function (quote identity)) (setq sgml-tag-last (completing-read (if (> (length sgml-tag-last) 0) (format "Tag (default %s): " sgml-tag-last) "Tag: ") sgml-tag-alist nil nil nil (quote sgml-tag-history) sgml-tag-last))) 60 str | (("") -1 (quote (undo-boundary)) (identity "<")) | (\` (("") (quote (setq v2 (sgml-attributes (\, str) t))) 62 (cond ((string= "![" (\, str)) (backward-char) (quote (("") " [ " _ " ]]"))) ((and (eq v2 t) sgml-xml-mode (member (\, str) sgml-empty-tags)) (quote (("") -1 " />"))) ((or (and (eq v2 t) (not sgml-xml-mode)) (string-match "^[/!?]" (\, str))) nil) ((symbolp v2) (if (eq v2 t) (setq v2 nil)) (quote (("") v2 _ v2 "))) ((eq (car v2) t) (cons (quote ("")) (cdr v2))) (t (append (quot e (... ...)) (cdr v2) (quote (resume: ... _ ")))))))) nil nil) skeleton-proxy-new(((funcall (or skeleton-transformation-function (quote identity)) (setq sgml-tag-last (completing-read (if (> (length sgml-tag-last) 0) (format "Tag (default %s): " sgml-tag-last) "Tag: ") sgml-tag-alist nil nil nil (quote sgml-tag-history) sgml-tag-last))) 60 str | (("") -1 (quote (undo-boundary)) (identity "<")) | (\` (("") (quote (setq v2 (sgml-attributes (\, str) t))) 62 (cond ((string= "![" (\, str)) (backward-char) (quote (("") " [ " _ " ]]"))) ((and (eq v2 t) sgml-xml-mode (member (\, str) sgml-empty-tags)) (quote (("") -1 " />"))) ((or (and (eq v2 t) (not sgml-xml-mode)) (string-match "^[/!?]" (\, str))) nil) ((symbolp v2) (if (eq v2 t) (setq v2 nil)) (quote (("") v2 _ v2 "))) ((eq (car v2) t) (cons (quote ("")) (cdr v2))) (t (append (q uote (... ...)) (cdr v2) (quote (resume: ... _ ")))))))) nil nil) sgml-tag(nil nil) funcall-interactively(sgml-tag nil nil) call-interactively(sgml-tag nil nil) command-execute(sgml-tag) In GNU Emacs 25.0.50.2 (i686-pc-linux-gnu, GTK+ Version 3.16.2) of 2015-04-19 on archeee Repository revision: 62e170072e6000b30c37792227dc34e71a31d797 Windowing system distributor `The X.Org Foundation', version 11.0.11701000 Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --pdfdir=/usr/share/doc/emacs/pdf --with-sound=alsa --without-gconf --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro CPPFLAGS=-D_FORTIFY_SOURCE=2' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Messages 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 Recent messages: /home/matt/test.html locked by matt@archeee (pid 3893): (s, q, p, ?)? Please type q, s, or p; or ? for help /home/matt/test.html locked by matt@archeee (pid 3893): (s, q, p, ?)? Please type q, s, or p; or ? for help Quit next-line: End of buffer Entering debugger... Making completion list... Quit Type "q" in help window to restore its previous buffer, C-M-v to scroll help. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired 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 help-fns mail-prsvr mail-utils help-mode easymenu debug skeleton cus-start cus-load sgml-mode mule-util time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd 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 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 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 8 90059 9879) (symbols 24 19527 0) (miscs 20 73 257) (strings 16 14655 4308) (string-bytes 1 364073) (vectors 8 10754) (vector-slots 4 408319 9084) (floats 8 96 170) (intervals 28 428 20) (buffers 520 16) (heap 1024 24434 747))