Andreas Schwab
bc3122541b
* lisp/emacs-lisp/smie.el (smie-bnf->prec2): Fix last change.
...
(Bug#8934)
2011-06-26 10:43:52 +02:00
Stefan Monnier
273d2baf9b
* lisp/emacs-lisp/smie.el (smie-bnf->prec2): Give more understandable error
...
messages for adjacent non-terminals.
2011-06-23 12:55:59 -04:00
Stefan Monnier
0ac306045f
* src/eval.c (Fdefvaralias): Also mark the target as variable-special-p.
2011-06-15 14:36:00 -04:00
Stefan Monnier
ba83908c4b
Misc fixes, and use lexical-binding in more files.
...
* lisp/subr.el (letrec): New macro.
(with-wrapper-hook): Move from lisp/simple.el and don't use CL.
* simple.el (with-wrapper-hook): Move with-wrapper-hook to subr.el.
* lisp/help-fns.el (help-function-arglist): Handle subroutines as well.
(describe-variable): Use special-variable-p to filter completions.
* lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Don't expand `declare'
in defmacros.
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form):
Handle `declare'.
* lisp/emacs-lisp/cl.el (pushnew): Silence unfixable warning.
* lisp/emacs-lisp/cl-macs.el (defstruct, define-compiler-macro):
Mark unused arg as unused.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-lapcode): Use memq.
* lisp/emacs-lisp/autoload.el (make-autoload): Don't assume the macro's
first sexp is a list.
(autoload-generate-file-autoloads): Improve error message.
* lisp/emacs-lisp/advice.el (ad-arglist): Use help-function-arglist
to understand the new byte-code arg format.
* lisp/vc/smerge-mode.el:
* lisp/vc/log-view.el:
* lisp/vc/log-edit.el:
* lisp/vc/cvs-status.el:
* lisp/uniquify.el:
* lisp/textmodes/css-mode.el:
* lisp/textmodes/bibtex-style.el:
* lisp/reveal.el:
* lisp/newcomment.el:
* lisp/emacs-lisp/smie.el:
* lisp/abbrev.el: Use lexical-binding.
* src/eval.c (Fprog1, Fprog2): Simplify and use XCDR/XCAR.
(Fdefvar): Remove redundant SYMBOLP check.
(Ffunctionp): Don't signal an error for undefined aliases.
* doc/lispref/variables.texi (Converting to Lexical Binding): New node.
2011-03-11 15:04:22 -05:00
Stefan Monnier
9517f8af14
* lisp/emacs-lisp/smie.el (smie-blink-matching-open): Don't use `pos' in two
...
conflicting ways.
(smie-indent--parent): Extend to "parent of arg".
(smie-indent-inside-string): New function.
(smie-indent-functions): Use it.
2011-02-10 14:40:17 -05:00
Glenn Morris
73b0cd5003
Convert consecutive FSF copyright years to ranges.
2011-01-24 20:08:28 -08:00
Glenn Morris
5df4f04cd3
Add 2011 to FSF/AIST copyright years.
2011-01-02 15:50:46 -08:00
Stefan Monnier
09ffa822f8
* emacs-lisp/smie.el (smie-prec2->grammar): Simplify handling
...
of :smie-open/close-alist.
(smie-next-sexp): Make it accept a "start token" as argument.
(smie-indent-keyword): Be careful not to misidentify tokens that span
more than one line, as empty lines. Add argument `token'.
2010-11-26 16:33:21 -05:00
Stefan Monnier
e2f454c4be
* emacs-lisp/smie.el (smie-bnf-classify): Signal errors for tokens
...
that are both openers (resp. closers) and something else.
(smie-grammar): Loosen definition of valid values.
(smie-next-sexp, smie-down-list, smie-blink-matching-open)
(smie-indent--parent, smie-rule-parent, smie-indent-keyword)
(smie-indent-after-keyword): Adjust users.
(smie-indent-keyword): Don't indent empty lines.
2010-11-17 14:59:16 -05:00
Stefan Monnier
10b40d2ef6
* lisp/emacs-lisp/smie.el (smie-prec2->grammar): Obey equality constraints
...
when filling the remaining "unconstrained" values.
2010-11-11 20:33:28 -05:00
Stefan Monnier
7bea8c7a92
* lisp/emacs-lisp/smie.el (smie-rule-parent, smie-indent--rule):
...
Use smie-indent-virtual when indenting relative to an opener.
(smie-rule-separator): Use smie-rule-parent.
(smie-indent-keyword): Consult rules, even for openers at bol.
(smie-indent-comment-close): Try to align closer's content.
2010-11-11 00:08:25 -05:00
Stefan Monnier
7f925a67c1
* lisp/emacs-lisp/smie.el: New package.
2010-11-07 10:52:33 -05:00