summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Avoid corrupting archive-contents file.Chong Yidong2010-09-041-28/+25
| | | | | | | | | | | | | | * emacs-lisp/package.el (package--download-one-archive): Ensure that archive-contents is valid before saving it. (package-activate-1, package-mark-obsolete, define-package) (package-compute-transaction, package-list-maybe-add): Use push.
* | Provide blink-matching support to SMIE.Stefan Monnier2010-09-031-1/+177
| | | | | | | | | | | | * lisp/emacs-lisp/smie.el (smie-bnf-closer-alist): New function. (smie-blink-matching-triggers, smie-blink-matching-inners): New vars. (smie-blink-matching-check, smie-blink-matching-open): New functions.
* | Set revert-buffer-function in Package Menu.Chong Yidong2010-09-021-4/+7
| | | | | | | | | | | | | | * emacs-lisp/package.el (package-menu-mode-map): Change package-menu-revert bindings to revert-buffer. (package-menu-mode): Set revert-buffer-function. (package-menu-revert): Doc fix.
* | Removed cut-buffer code.Jan Djärv2010-09-021-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mouse-sel.el (mouse-sel-get-selection-function): x-cut-buffer-or-selection-value renamed to x-selection-value. (x-select-text): Optional push removed. * lisp/select.el (x-get-cut-buffer, x-set-cut-buffer): Remove. * lisp/simple.el (interprogram-cut-function): Remove mention of PUSH. * lisp/w32-fns.el (x-last-selected-text): x-cut-buffer-or-selection-value renamed to x-selection-value. (x-cut-buffer-max): Remove. (x-select-text): Remove argument PUSH, update documentation. * lisp/emacs-lisp/cl-macs.el (x-get-cutbuffer, x-get-cut-buffer): Remove. * lisp/term/ns-win.el (x-setup-function-keys, ns-last-selected-text): x-cut-buffer-or-selection-value renamed to x-selection-value (x-selection-value): Renamed from x-cut-buffer-or-selection-value. (x-select-text): Remove argument PUSH, update documentation. * lisp/term/pc-win.el (x-last-selected-text): x-cut-buffer-or-selection-value renamed to x-selection-value (x-select-text): Remove argument PUSH, update documentation. * lisp/term/x-win.el: Update documentation for x-last-selected-text-*. (x-last-selected-text-cut, x-last-selected-text-cut-encoded) (x-last-cut-buffer-coding, x-cut-buffer-max): Remove. (x-select-text): Remove argument PUSH, update documentation. Remove cut-buffer code. (x-selection-value-internal): Was previously x-selection-value. (x-selection-value): Renamed from x-cut-buffer-or-selection-value. Update documentation, remove cut-buffer code. Call x-selection-value-internal. (x-clipboard-yank): Call x-selection-value-internal. (x-initialize-window-system): Remove setting of x-cut-buffer-max. * src/xselect.c: Remove declaration of cut-buffer objects and functions. (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn. (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn. (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal) (Fx_rotate_cut_buffers_internal): Remove. (syms_of_xselect): Remove defsubr of above. Remove intern of QCUT_BUFFERn. * src/xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized. * src/xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
* | * lisp/emacs-lisp/pcase.el (pcase-split-memq): Overenthusiastic optimisation.Stefan Monnier2010-09-011-14/+20
| | | | | | | | (pcase-u1): Handle the case of a lambda pred.
* | * lisp/emacs-lisp/smie.el (smie-down-list): New command.Stefan Monnier2010-08-311-0/+36
| |
* | Fix several Package Menu and Finder bugs.Chong Yidong2010-08-302-232/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * finder.el: Load finder-inf using `require'. (finder-list-matches): Sorting by status is now the default. (finder-compile-keywords): Simpify printing. * emacs-lisp/package.el (package--read-archive-file): Just use `read', to avoid copying an additional string. (package-menu-mode): Set header-line-format here. (package-menu-refresh, package-menu-revert): Signal an error if not in the Package Menu. (package-menu-package-list): New var. (package--generate-package-list): Operate on the current buffer; don't assume that it is *Packages*, since the user may rename it. Allow persistent package listings and sort keys using package-menu-package-list and package-menu-package-sort-key. (package-menu--version-predicate): Fix version calculation. (package-menu-sort-by-column): Don't select the window. (package--list-packages): Create the *Packages* buffer. Set package-menu-package-list-key. (list-packages): Sorting by status is now the default. (package-buffer-info): Use match-string-no-properties. (define-package): Add a &rest argument for future proofing, but don't use it yet. (package-install-from-buffer, package-install-buffer-internal): Merged into a single function, package-install-from-buffer. (package-install-file): Caller changed. Also, fix headers for hfy-cmap.el and ps-print.el.
* | * lisp/emacs-lisp/smie.el (smie-indent-offset-rule): Let :parent takeStefan Monnier2010-08-301-5/+10
| | | | | | | | | | a list of parents. (smie-indent-column): Allow indirection through variables.
* | Use `declare' in defmacros.Stefan Monnier2010-08-309-37/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/window.el (save-selected-window): * lisp/subr.el (with-temp-file, with-temp-message, with-syntax-table): * lisp/progmodes/python.el (def-python-skeleton): * lisp/net/dbus.el (dbus-ignore-errors): * lisp/jka-cmpr-hook.el (with-auto-compression-mode): * lisp/international/mule.el (with-category-table): * lisp/emacs-lisp/timer.el (with-timeout): * lisp/emacs-lisp/lisp-mnt.el (lm-with-file): * lisp/emacs-lisp/eieio.el (with-slots): * lisp/emacs-lisp/easymenu.el (easy-menu-define): * lisp/emacs-lisp/debug.el (debugger-env-macro): * lisp/emacs-lisp/cl-compat.el (Multiple-value-bind, Multiple-value-setq) (Multiple-value-call, Multiple-value-prog1): * lisp/emacs-lisp/cl-seq.el (cl-parsing-keywords, cl-check-key) (cl-check-test-nokey, cl-check-test, cl-check-match): Move indent and edebug rule to definition. * lisp/emacs-lisp/lisp-mode.el (save-selected-window) (with-current-buffer, combine-after-change-calls) (with-output-to-string, with-temp-file, with-temp-buffer) (with-temp-message, with-syntax-table, read-if, eval-after-load) (dolist, dotimes, when, unless): * lisp/emacs-lisp/byte-run.el (inline): Remove indent rule, redundant.
* | Merge Finder and package-menu functionality.Chong Yidong2010-08-291-149/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/finder.el: Require `package'. (finder-known-keywords): Tweak descriptions. Retire `oop' keyword. (finder-package-info): Var deleted. (finder-keywords-hash, finder--builtins-alist): New vars. (finder-compile-keywords): Compute package--builtins and finder-keywords-hash instead of finder-keywords-hash, respecting the "Package" header. (finder-unknown-keywords, finder-list-matches): Use finder-keywords-hash and package--list-packages. (finder-mode): Don't set font-lock-defaults. (finder-exit): We don't use "*Finder-package*" and "*Finder Category*" buffers anymore. * lisp/info.el (Info-finder-find-node): Search package-alist instead of finder-package-info. * lisp/emacs-lisp/package.el (package--builtins-base): Var deleted. (package--builtins): Set default value to nil. (package-initialize): Load precomputed value of package--builtins from finder-inf.el. (package-alist, package-compute-transaction) (package-download-transaction): Improve docstring. (package-read-all-archive-contents): Do not change package--builtins here. (list-packages): Make package-list-packages an alias for this. Sort by status by default. (package--list-packages): Add optional PACKAGES arg. (describe-package-1): Use font-lock-face property. For built-in packages, insert file commentary. (package--generate-package-list): Rename from package-list-packages-internal; all callers changed. Add optional PACKAGES arg. Add alphabetical sort fallbacks. (package-menu--version-predicate, package-menu--status-predicate) (package-menu--description-predicate) (package-menu--name-predicate): New functions.
* | Add "Version:" and "Package:" Lisp file headers.Chong Yidong2010-08-291-0/+1
| |
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-2931-14/+39
| |
* | * lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Use pcase.Stefan Monnier2010-08-281-75/+64
| | | | | | | | (macroexp-accumulate): Use `declare'.
* | Improvements to describe-package buffer.Chong Yidong2010-08-251-80/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/help.el (help-map): Bind `C-h P' to describe-package. * lisp/menu-bar.el (menu-bar-describe-menu): Add describe-package. * lisp/emacs-lisp/package.el (package-refresh-contents): Catch errors when downloading archives. (describe-package-1): Add package commentary. (package-install-button-action): New function. (package-menu-mode-map): Bind ? to package-menu-describe-package. (package-menu-view-commentary): Function removed. (package-list-packages-internal): Hide the `package' package too.
* | * emacs-lisp/package.el (list-packages): Alias for package-list-packages.Chong Yidong2010-08-241-0/+3
| |
* | Merge changes from emacs-23 branch.Chong Yidong2010-08-221-16/+14
|\|
| * Doc fix for define-minor-mode (Bug#6880).Chong Yidong2010-08-221-16/+14
| | | | | | | | | | | | * doc/lispref/modes.texi (Defining Minor Modes): Doc fix (Bug#6880). * emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix (Bug#6880).
* | Reindent smie.elStefan Monnier2010-08-181-57/+57
| |
* | * smie.el (smie-forward-sexp-command): Fix typo.Stefan Monnier2010-08-181-1/+1
| |
* | Try and remove some of SMIE's black magic by generalizing some rules.Stefan Monnier2010-08-181-128/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | * lisp/emacs-lisp/autoload.el (make-autoload): Preload the macros'sStefan Monnier2010-08-181-17/+36
| | | | | | | | | | declarations that are useful before running the macro. * src/eval.c (Fdefmacro): Only obey one declaration.
* | * lisp/emacs-lisp/lisp.el (up-list): Obey forward-sexp-function if set.Stefan Monnier2010-08-171-1/+7
| |
* | Save window excursion before prompting in copyright-update-* (Bug#5394).Kevin Ryde2010-08-141-9/+13
| | | | | | | | | | * emacs-lisp/copyright.el (copyright-update-year) (copyright-update): Use save-window-excursion (Bug#5394).
* | Introduce a new comment style "c" flag.Stefan Monnier2010-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | * lisp/emacs-lisp/pcase.el: Fix copyright header.Glenn Morris2010-08-101-2/+2
| |
* | * lisp/emacs-lisp/pcase.el: New file.Stefan Monnier2010-08-101-0/+489
| |
* | Use version-list-* functions in package.el.Chong Yidong2010-08-092-67/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-*.
* | Merge changes from emacs-23 branchChong Yidong2010-08-081-1/+1
|\|
| * * lisp/emacs-lisp/syntax.el (syntax-ppss-toplevel-pos): Fix typo in docstring.MON KEY2010-08-011-1/+1
| | | | | | | | Fixes: debbugs:6747
* | Rename src/unexec.c => src/unexcoff.c.Eli Zaretskii2010-08-052-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | * lisp/emacs-lisp/timer.el (timer-event-handler): Protect against timersStefan Monnier2010-08-021-1/+5
| | | | | | | | that change current buffer.
* | Package listing tweaks.Chong Yidong2010-07-311-28/+29
| | | | | | | | | | | | | | | | | | | | * 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".
* | Update package-x to latest package.el changes.Chong Yidong2010-07-292-15/+22
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Add support for non-default package repositories.Phil Hagelberg2010-07-281-74/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | * emacs-lisp/re-builder.el: Remove references to package `lisp-re' (bug#4369).Aaron S. Hawley2010-07-281-16/+9
| |
* | Add compilation regexps for cucumber and ruby.Aleksei Gusev2010-07-101-1/+1
| | | | | | | | | | * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add regexps for cucumber and ruby.
* | Merge changes from emacs-23 branch.Chong Yidong2010-07-102-4/+1
|\|
| * emacs-lisp/rx.el (rx): Doc fix. (Bug#6537)Leo Liu2010-06-291-3/+0
| |
| * Update cl-loaddefs.elAndreas Schwab2010-06-261-1/+1
| |
* | Tweaks to package list UI.Chong Yidong2010-06-201-11/+63
| | | | | | | | | | | | | | | | | | | | * 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.
* | Add preliminary describe-package functionality, and some cleanup.Chong Yidong2010-06-192-23/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | * lisp/emacs-lisp/edebug.el (edebug-read-list): Phase out old-style backquotes.Stefan Monnier2010-06-181-26/+8
| |
* | * lisp/emacs-lisp/package.el (package-menu-mode-map): Add a menu.Dan Nicolaescu2010-06-171-1/+47
| |
* | emacs-lisp/package.el (package-menu-mode-map): Move initialization into ↵Juanma Barranquero2010-06-171-19/+17
| | | | | | | | declaration.
* | Merge package.el, written by Tom Tromey <tromey@redhat.com>.Chong Yidong2010-06-162-0/+1626
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | * lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Put back specialStefan Monnier2010-06-161-0/+5
| | | | | | | | handling for `lambda' (misunderstanding).
* | * lisp/emacs-lisp/macroexp.el (macroexpand-all-1): Don't handle `lambda'Stefan Monnier2010-06-162-7/+2
| | | | | | | | specially, since it's a macro. Fix up wrong hint passed to maybe-cons.
* | Merge from emacs-23Stefan Monnier2010-06-161-1/+1
|\|
| * Close bug#6408.Helmut Eller2010-06-121-1/+1
| | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (destructuring-bind): Bind `bind-enquote', used by cl-do-arglist.
* | Minor authors.el update.Glenn Morris2010-06-091-1/+2
| | | | | | | | | | * lisp/emacs-lisp/authors.el (authors-ignored-files) (authors-valid-file-names): Add some files.