Commit graph

3141 commits

Author SHA1 Message Date
Chong Yidong
cb8759ca5a * emacs-lisp/package.el (list-packages): Alias for package-list-packages. 2010-08-24 17:36:33 -04:00
Chong Yidong
b0126eac41 Merge changes from emacs-23 branch. 2010-08-22 16:02:16 -04:00
Chong Yidong
bc7d7ea63b Doc fix for define-minor-mode (Bug#6880).
* doc/lispref/modes.texi (Defining Minor Modes): Doc fix (Bug#6880).

* emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix (Bug#6880).
2010-08-22 15:30:26 -04:00
Stefan Monnier
710a7f464c Reindent smie.el 2010-08-18 14:10:30 +02:00
Stefan Monnier
b3a8fe90e7 * smie.el (smie-forward-sexp-command): Fix typo. 2010-08-18 14:03:57 +02:00
Stefan Monnier
8723cfa464 Try and remove some of SMIE's black magic by generalizing some rules.
* lisp/emacs-lisp/smie.el (smie-default-backward-token)
(smie-default-forward-token): Strip properties.
(smie-next-sexp): Be more careful with associative operators.
(smie-forward-sexp-command): Generalize.
(smie-backward-sexp-command): Simplify.
(smie-closer-alist): New var.
(smie-close-block): New command.
(smie-indent-debug-log): New var.
(smie-indent-offset-rule): Add a few more cases.
(smie-indent-column): New function.
(smie-indent-after-keyword): Use it.
(smie-indent-keyword): Use it.
Fix up the opener code's point position.
(smie-indent-comment): Only applies at BOL.
(smie-indent-debug): New command.
2010-08-18 12:57:48 +02:00
Stefan Monnier
0193499fe1 * lisp/emacs-lisp/autoload.el (make-autoload): Preload the macros's
declarations that are useful before running the macro.
* src/eval.c (Fdefmacro): Only obey one declaration.
2010-08-18 12:21:43 +02:00
Stefan Monnier
afa22f7ce7 * lisp/emacs-lisp/lisp.el (up-list): Obey forward-sexp-function if set. 2010-08-17 22:18:40 +02:00
Kevin Ryde
c22e18f561 Save window excursion before prompting in copyright-update-* (Bug#5394).
* emacs-lisp/copyright.el (copyright-update-year)
(copyright-update): Use save-window-excursion (Bug#5394).
2010-08-14 19:30:51 -04:00
Stefan Monnier
c5683ceb2c Introduce a new comment style "c" flag.
* src/syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
(SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
(SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
(syntax_prefix_flag_p): New function.
(Fstring_to_syntax): Understand new "c" flag.
(Finternal_describe_syntax_value): Recognize new flag; use the
SYNTAX_FLAGS_* macros.
(scan_sexps_forward, Fparse_partial_sexp): Change representation of
comment style to accomodate the new styles.
(back_comment, forw_comment, Fforward_comment, scan_lists)
(scan_sexps_forward): Update code to obey the new comment style flag.
* src/syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
* src/casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
* lisp/progmodes/octave-mod.el (octave-mode-syntax-table): Use the new "c"
comment style.
* lisp/progmodes/scheme.el (scheme-mode-syntax-table):
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-syntax-table): Remove spurious
"b" flag in "14b" syntax.

Fixes: debbugs:6834
2010-08-12 16:44:16 +02:00
Stefan Monnier
c566235d98 Merge from trunk 2010-08-11 07:42:48 +02:00
Glenn Morris
97eedd1b1f * lisp/emacs-lisp/pcase.el: Fix copyright header. 2010-08-10 19:14:53 -07:00
Stefan Monnier
d02c9bcd09 * lisp/emacs-lisp/pcase.el: New file. 2010-08-10 15:18:14 +02:00
Chong Yidong
148cef8e7a Use version-list-* functions in package.el.
* emacs-lisp/package-x.el (package-upload-buffer-internal): Use
version-to-list.
(package-upload-buffer-internal): Use version-list-<=.

* emacs-lisp/package.el (package-version-split)
(package--version-first-nonzero, package-version-compare):
Functions removed.
(package-directory-list, package-load-all-descriptors)
(package--built-in, package-activate, define-package)
(package-installed-p, package-compute-transaction)
(package-read-all-archive-contents)
(package--add-to-archive-contents, package-buffer-info)
(package-tar-file-info, package-list-packages-internal): Use
version-to-list and version-list-*.
2010-08-09 14:05:56 -04:00
Chong Yidong
7815fe1985 Merge changes from emacs-23 branch 2010-08-08 17:12:29 -04:00
Eli Zaretskii
29cf3e2076 Rename src/unexec.c => src/unexcoff.c.
src/unexcoff.c: Renamed from unexec.c.
 src/deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
 configure.in (UNEXEC_OBJ): Rename unexec.o => unexcoff.o.
 admin/MAINTAINERS: Rename src/unexec.c => src/unexcoff.c.
 etc/AUTHORS: Rename unexec.o => unexcoff.o.
 etc/PROBLEMS: Rename unexec.o => unex*.o.
 lisp/emacs-lisp/find-gc.el (find-gc-source-files): Rename
 unexec.c => unexcoff.c.
 lisp/emacs-lisp/authors.el (authors-fixed-entries): Rename
 unexec.c => unexcoff.c.
 msdos/sed1v2.inp (UNEXEC_OBJ): Edit to unexcoff.o, due to renaming of
 unexec.c => unexcoff.c.
2010-08-05 20:11:32 +03:00
Stefan Monnier
0798a8d85c * lisp/emacs-lisp/timer.el (timer-event-handler): Protect against timers
that change current buffer.
2010-08-02 11:00:46 +02:00
Chong Yidong
376c2b6b21 Package listing tweaks.
* emacs-lisp/package.el (package--list-packages): Fix column
alignment.
(package--builtins): Tweak descriptions.
(package-print-package): Upcase descriptions if necessary.  Show
all built-in packages in font-lock-builtin-face.
(package-list-packages-internal): Omit "emacs" package.  Show
status of built-in packages as "built-in".
2010-07-31 20:38:19 -04:00
MON KEY
9aea20c9f8 * lisp/emacs-lisp/syntax.el (syntax-ppss-toplevel-pos): Fix typo in docstring.
Fixes: debbugs:6747
2010-08-01 02:24:55 +02:00
Chong Yidong
063e52940d Update package-x to latest package.el changes.
* emacs-lisp/package-x.el (package--make-rss-entry):
(package-maint-add-news-item, package--update-news)
(package-upload-buffer-internal): New arg ARCHIVE-URL.

* emacs-lisp/package.el (package-archive-url): Rename from
package-archive-id.
(package-install): Doc fix.
(package-download-single, package-download-tar, package-install)
(package-menu-view-commentary): Callers changed.
2010-07-29 12:01:14 -04:00
Phil Hagelberg
bc44bef767 Add support for non-default package repositories.
* lisp/emacs-lisp/package.el (package-archive-base): Var deleted.
(package-archives): New variable.
(package-archive-contents): Doc fix.
(package-load-descriptor): Do nothing if descriptor file is
missing.
(package--write-file-no-coding): New function.
(package-unpack-single): Use it.
(package-archive-id): New function.
(package-download-single, package-download-tar)
(package-menu-view-commentary): Use it.
(package-installed-p): Make second argument optional.
(package-read-all-archive-contents): New function.
(package-initialize): Use it.
(package-read-archive-contents): Add ARCHIVE argument.
(package--add-to-archive-contents): New function.
(package-install): Don't call package-read-archive-contents.
(package--download-one-archive): Store archive file in a
subdirectory of package-user-dir.
(package-menu-execute): Remove spurious line movement.

* lisp/emacs-lisp/package.el (package-load-list, package-archives)
(package-archive-contents, package-user-dir)
(package-directory-list, package--builtins, package-alist)
(package-activated-list, package-obsolete-alist): Mark as risky.
2010-07-28 14:54:42 -04:00
Aaron S. Hawley
128440c97f * emacs-lisp/re-builder.el: Remove references to package `lisp-re' (bug#4369). 2010-07-28 01:38:46 +02:00
Stefan Monnier
0ee81a0ce0 Merge from trunk 2010-07-23 17:23:09 +02:00
Aleksei Gusev
dce3463576 Add compilation regexps for cucumber and ruby.
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add
regexps for cucumber and ruby.
2010-07-10 15:47:59 -04:00
Chong Yidong
2ec1b5ee34 Merge changes from emacs-23 branch. 2010-07-10 14:52:53 -04:00
Leo Liu
a354ac6a0c emacs-lisp/rx.el (rx): Doc fix. (Bug#6537) 2010-06-29 14:09:07 +02:00
Andreas Schwab
15b72850c1 Update cl-loaddefs.el 2010-06-26 20:49:18 +02:00
Chong Yidong
8adb4c33da Tweaks to package list UI.
* help-mode.el (help-package): New button type.

* emacs-lisp/package.el (package-print-package): Add link to
package description via describe-package.
(describe-package-1): List package requirements.  Add button to
perform installation.
(package-menu-describe-package): New command.
2010-06-20 00:55:14 -04:00
Chong Yidong
cced75847f Add preliminary describe-package functionality, and some cleanup.
* help-mode.el (help-package-def): New button type.

* menu-bar.el: Move package-list-packages binding here from
package.el.

* emacs-lisp/package.el: Move package-list-packages binding to
menu-bar.el.
(describe-package, describe-package-1, package--dir): New funs.
(package-activate-1): Use package--dir.

* emacs-lisp/package-x.el (gnus-article-buffer): Require package.
2010-06-19 18:36:51 -04:00
Stefan Monnier
894e369ddf Merge from trunk 2010-06-18 10:13:59 -04:00
Stefan Monnier
b1a03ef6bf * lisp/emacs-lisp/edebug.el (edebug-read-list): Phase out old-style backquotes. 2010-06-18 10:05:43 -04:00
Stefan Monnier
4a330052b4 * src/eval.c (Fspecial_variable_p): Rename from `specialp'.
* lisp/emacs-lisp/byte-lexbind.el (byte-compile-compute-lforminfo):
specialp -> special-variable-p.
2010-06-18 09:11:47 -04:00
Dan Nicolaescu
64eba874f5 * lisp/emacs-lisp/package.el (package-menu-mode-map): Add a menu. 2010-06-17 09:41:13 -07:00
Juanma Barranquero
54ea2a0d41 emacs-lisp/package.el (package-menu-mode-map): Move initialization into declaration. 2010-06-17 13:02:42 +02:00
Chong Yidong
44198b6ee9 Merge package.el, written by Tom Tromey <tromey@redhat.com>.
Changes relative to version 0.9 of package.el are listed below:

* emacs-lisp/package-x.el: New file.  Package uploading
functionality split out from package.el.

* emacs-lisp/package.el (package-archive-base): Point to
elpa.gnu.org.
(package-enable, package-load-list): New defcustoms.
(package-user-dir, package-directory-list): Turn into defcustoms.
Don't include package-user-dir in package-directory-list.
(package--builtins-base): Don't include Emacs as a "package".
(package-subdirectory-regexp): New var.
(package-load-all-descriptors, package-compute-transaction)
(package-download-transaction): Obey package-load-list.
(package-activate-1): Rename from package-do-activate.
(package-list-packages-internal): Check package-load-list.
(package-load-descriptor, package-generate-autoloads)
(package-unpack, package-unpack-single)
(package--read-archive-file, package-delete): Use
expand-file-name.

* startup.el (command-line): Load packages after reading init
file.
2010-06-16 22:08:10 -04:00
Stefan Monnier
e20f04215a * lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Put back special
handling for `lambda' (misunderstanding).
2010-06-16 20:17:22 -04:00
Stefan Monnier
49b2e83db4 * lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Don't handle `lambda'
specially, since it's a macro.  Fix up wrong hint passed to maybe-cons.
2010-06-16 17:11:06 -04:00
Stefan Monnier
2a64315a11 Merge from emacs-23 2010-06-16 16:08:41 -04:00
Stefan Monnier
3c3ddb9833 * lisp/emacs-lisp/bytecomp.el (byte-compile-initial-macro-environment):
Don't macroexpand before evaluating in eval-and-compile, in case
`body's macro expansion uses macros and functions defined in itself.

* src/bytecode.c (exec_byte_code):
* src/eval.c (Ffunctionp): Fix up int/Lisp_Object confusions.
2010-06-14 22:51:25 -04:00
Stefan Monnier
f43cb64908 * lisp/Makefile.in (.el.elc): Increase max-lisp-eval-depth.
* lisp/emacs-lisp/bytecomp.el (byte-compile-check-variable):
Update byte-compile-not-obsolete-var to byte-compile-not-obsolete-vars.
2010-06-13 23:27:16 -04:00
Stefan Monnier
b9598260f9 New branch for lexbind, losing all history.
This initial patch is based on 2002-06-27T22:39:10Z!storm@cua.dk of the original
lexbind branch.
2010-06-13 16:36:17 -04:00
Helmut Eller
37a7e764e8 Close bug#6408.
* lisp/emacs-lisp/cl-macs.el (destructuring-bind): Bind `bind-enquote',
used by cl-do-arglist.
2010-06-12 00:06:15 -07:00
Glenn Morris
46e6650e09 Minor authors.el update.
* lisp/emacs-lisp/authors.el (authors-ignored-files)
(authors-valid-file-names): Add some files.
2010-06-09 22:39:03 -07:00
Andreas Schwab
639b2760f1 Merge from emacs-23 2010-06-10 00:08:50 +02:00
Juanma Barranquero
ee8359ba5a * emacs-lisp/smie.el (comment-string-strip): Declare function.
(smie-precs-precedence-table): Fix typo in docstring.
2010-06-09 13:40:50 +02:00
Stefan Monnier
e7d67e73b2 * lisp/emacs-lisp/smie.el (smie-indent-keyword): Remove special case that
can be handled with a ((:before "fn") (:prev "=>" parent)) rule.
2010-06-08 22:58:26 -04:00
Stefan Monnier
989bc97f04 * lisp/emacs-lisp/advice.el (ad-compile-function):
Define warning-suppress-types before we let-bind it.

Fixes: debbugs:6275
2010-06-08 21:18:31 -04:00
Stefan Monnier
83156c183f * lisp/emacs-lisp/smie.el (smie-indent-offset-rule): Rename from
smie-indent-offset-after.  Add :prev case.  Make a bit more generic.
(smie-indent-virtual): Remove `virtual' arg.  Update callers.
(smie-indent-keyword): Add handling of open-paren keywords.
(smie-indent-comment-continue): Don't assume comment-continue.
2010-06-07 15:37:50 -04:00
Stefan Monnier
c2ea581076 Make (after keyword) indent-rules more flexible.
* lisp/emacs-lisp/smie.el (smie-indent-offset-after)
(smie-indent-forward-token, smie-indent-backward-token): New functions.
(smie-indent-after-keyword): Use them.
(smie-indent-fixindent): Only applies to the indentation of the BOL.
(smie-indent-keyword): Tweak the black magic.
(smie-indent-comment-continue): Strip comment-continue before use.
(smie-indent-functions): Indent comments before keywords.
2010-06-06 22:10:19 -04:00
Juanma Barranquero
e2d2a205a5 * emacs-lisp/smie.el (comment-continue): Declare for byte-compiler. 2010-06-03 18:59:29 +02:00