Artur Malabarba
357edb4e89
* lisp/emacs-lisp/package.el: Fix initially wrong compat table
...
(package--build-compatibility-table): require finder
2015-04-12 02:33:29 +01:00
Artur Malabarba
ba273b6185
* lisp/emacs-lisp/package.el: Silence async operations
...
(package--silence): New variable.
(package--message): New function.
(package-import-keyring, package-refresh-contents)
(package-compute-transaction, package-install, package-delete)
(package-menu--perform-transaction, package-menu-execute): Use it.
2015-04-12 01:52:43 +01:00
Stefan Monnier
26f8a38497
cl-lib.el: Partial revert of "2015-04-05 Rationalize c[ad]+r"
...
* lisp/emacs-lisp/cl-lib.el: Partial revert of "2015-04-05 Rationalize
use of c[ad]+r", so as to keep the "cl-" prefix on all
cl-lib definitions.
2015-04-10 01:50:22 -04:00
Artur Malabarba
c1daad42c6
* lisp/emacs-lisp/package.el: Use mode-line-process for notification
2015-04-10 00:47:05 +01:00
Gustav Hållberg
0ae9ae36f0
(diff-hunk-file-names): Don't require a TAB after the file name
...
* lisp/vc/diff-mode.el (diff-hunk-file-names): Don't require a TAB
after the file name (bug#20276).
2015-04-08 21:46:28 -04:00
Stefan Monnier
215e5bf0cf
(eieio-copy-parents-into-subclass): Fix inheritance of initargs
...
Fixes: debbugs:20270
* lisp/emacs-lisp/eieio-core.el (eieio-copy-parents-into-subclass):
Fix inheritance of initargs.
2015-04-08 17:23:50 -04:00
Artur Malabarba
a480a51f24
* lisp/emacs-lisp/package.el (package-menu-mode): Mode-line notification
...
while dowloading information.
2015-04-08 19:27:45 +01:00
Artur Malabarba
0465c9dd42
* lisp/emacs-lisp/package.el: More conservative `ensure-init-file'
...
(package--ensure-init-file): Check file contents before visiting.
(package-initialize): Call it.
(package-install-from-buffer, package-install): Don't call it.
2015-04-08 19:18:30 +01:00
Artur Malabarba
c91fd97dfb
* emacs-lisp/package.el: Make the execute prompt less verbose.
...
(package-menu--list-to-prompt): New function.
(package-menu--prompt-transaction-p): Use "Upgrade" to make the
package-menu-execute prompt less verbose.
2015-04-06 17:09:43 +01:00
Artur Malabarba
67c152efc3
* emacs-lisp/package.el: Fix lack of "new" packages.
...
(package-menu--new-package-list)
(package-menu--old-archive-contents): No longer local.
2015-04-06 16:22:07 +01:00
Artur Malabarba
7471fc47b4
emacs-lisp/package.el (package-menu-execute): Add async support
...
Most install/delete logic is now in
`package-menu--perform-transaction', and this function is called
asynchronously if `package-menu-async' is non-nil.
2015-04-06 11:19:04 +01:00
Artur Malabarba
6701726b98
emacs-lisp/package.el (package-install): Add ASYNC and CALLBACK
2015-04-06 11:19:04 +01:00
Artur Malabarba
b6610d5547
emacs-lisp/package.el: Refactor pre-execute prompt
2015-04-06 11:19:04 +01:00
Artur Malabarba
7436b68132
emacs-lisp/package.el: Async support in download-transaction
2015-04-06 11:19:04 +01:00
Alan Mackenzie
2056db3fad
Rationalize use of c[ad]+r, expunging cl-c[ad]\{3,4\}r.
...
Also expunge eudc-c[ad]+r.
* subr.el (internal--compiler-macro-cXXr): "New" function, copied
from cl--compiler-macro-cXXr.
(caar, cadr, cdar, cddr): Change from defsubsts to defuns with
the above compiler-macro.
* net/eudc.el (eudc-cadr, eudc-cdar, eudc-caar, eudc-cdaar): Remove.
* emacs-lisp/cl.el (Top level dolist doing defaliases): Remove
caaar, etc., from list of new alias functions.
* emacs-lisp/cl-lib.el (cl-caaar, etc): Rename to caaar, etc.
(gen-cXXr--rawname, gen-cXXr-all-cl-aliases): New function/macro
which generate obsolete cl- aliases for caaar, etc. Invoke them.
* desktop.el:
* edmacro.el:
* emacs-lisp/cl-macs.el:
* frameset.el:
* ibuffer.el:
* mail/footnote.el:
* net/dbus.el:
* net/eudc-export.el:
* net/eudc.el:
* net/eudcb-ph.el:
* net/rcirc.el:
* net/secrets.el:
* play/5x5.el:
* play/decipher.el:
* play/hanoi.el:
* progmodes/hideif.el:
* ses.el: Replace cl-caaar, eudc-cadr, etc. with caaar and cadr, etc.
2015-04-05 12:49:14 +00:00
Artur Malabarba
fdc521952e
emacs-lisp/package.el: Add package-initialize to user-init-file.
2015-04-05 11:06:20 +01:00
Artur Malabarba
b47fe819f7
emacs-lisp/package.el: Prevent outdated downloads-in-progress.
2015-04-05 10:59:18 +01:00
Artur Malabarba
b32bb3f2f6
(package--with-work-buffer-async): Protect macro arguments.
2015-04-04 20:44:59 +01:00
Artur Malabarba
f674de6f08
emacs-lisp/package.el: Don't overwrite downloads-in-progress.
2015-04-04 20:22:26 +01:00
Stefan Monnier
5e41a51e5c
* lisp/emacs-lisp/lisp-mnt.el (lm-version): Don't burp in a non-file buffer.
2015-04-02 09:59:47 -04:00
Paul Eggert
bd55cd4d24
* emacs-lisp/package.el: Spelling fixes and use active voice.
2015-04-01 10:22:20 -07:00
Artur Malabarba
aa33f4a100
* emacs-lisp/package.el: Make package-menu asynchronous.
...
(package-menu-async): New variable. Controls whether
`list-packages' is asynchronous.
(list-packages): Now asynchronous by default.
(package-menu--new-package-list): Always buffer-local.
(package-menu--post-refresh)
(package-menu--find-and-notify-upgrades)
(package-menu--populate-new-package-list): New functions.
2015-04-01 11:09:00 +01:00
Artur Malabarba
ba7a1a7a4e
* emacs-lisp/package.el: Implement asynchronous refreshing.
...
(package--with-work-buffer-async)
(package--check-signature-content)
(package--update-downloads-in-progress): New functions.
(package--check-signature, package--download-one-archive)
(package--download-and-read-archives, package-refresh-contents):
Optional arguments for async usage.
(package--post-download-archives-hook): New variable. Hook run
after every refresh.
2015-04-01 11:08:03 +01:00
Stefan Monnier
bc9a6fcd29
Let jit-lock know the result of font-lock-extend-region-functions.
...
* lisp/jit-lock.el (jit-lock--run-functions): New function.
(jit-lock-fontify-now): Use it. Handle fontification bounds more
precisely in case the backend functions fontify more than requested.
Don't round up to whole lines since that shouldn't be needed
any more.
* lisp/font-lock.el (font-lock-fontify-region-function): Adjust docstring.
(font-lock-inhibit-thing-lock): Make obsolete.
(font-lock-default-fontify-region): Return the bounds actually used.
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
Fix compilation error.
2015-03-30 21:33:20 -04:00
Artur Malabarba
ce88920edb
Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs
2015-03-31 00:56:56 +01:00
Artur Malabarba
a7270fb20f
emacs-lisp/package.el: Reorganize package.el
...
Reorganize package.el and divide it with page-breaks and comments
2015-03-31 00:47:31 +01:00
Stefan Monnier
ef37e79aae
* eieio-base.el (make-instance) <eieio-named>: New instance.
2015-03-30 17:51:50 -04:00
Paul Eggert
0479a1b62c
Merge from origin/emacs-24
...
5e0314f
* smie.el (smie*ward-sexp-command): Don't pretend the arg is optional
13cf575
Don't round up scroll bar width with GTK3 (Bug#20182).
921dd0d
* doc/lispref/objects.texi (Equality Predicates): Fix typo in example.
Conflicts:
doc/lispref/ChangeLog
lisp/ChangeLog
src/ChangeLog
2015-03-29 14:14:15 -07:00
Jan D
e6127d9474
* lisp/emacs-lisp/package.el (package-refresh-contents): Fix spelling error
2015-03-28 23:05:30 +01:00
Jan D
733a9f114c
Fixes: debbugs:17879
...
* lisp/emacs-lisp/package.el (package-refresh-contents): Add a message at
the end so it does not appear to have hanged.
2015-03-28 12:15:18 +01:00
Stefan Monnier
8fd527eb00
* lisp/emacs-lisp/cl|eieio: Minor tweaks
...
* lisp/emacs-lisp/cl-macs.el (cl-dolist, cl-dotimes): Silence byte-compiler.
* lisp/emacs-lisp/eieio.el (defclass): Change internal name so as to make
sure only EIEIO files should have "eieio--" prefixes in their .elc.
2015-03-26 13:32:45 -04:00
Stefan Monnier
5e0314f6fa
* smie.el (smie*ward-sexp-command): Don't pretend the arg is optional
...
Fixes: debbugs:20205
* lisp/emacs-lisp/smie.el (smie-backward-sexp-command)
(smie-forward-sexp-command): Don't pretend the arg is optional.
2015-03-26 09:36:24 -04:00
Stefan Monnier
2b828866c2
* etc/TODO: Remove obsolete entries.
2015-03-25 14:28:25 -04:00
Artur Malabarba
eeb515715d
emacs-lisp/checkdoc.el: Don't complain about args starting with _.
2015-03-25 17:48:38 +00:00
Nicolas Petton
d46f31b4b2
* lisp/emacs-lisp/seq.el: Documentation improvements
2015-03-25 09:21:14 +01:00
Stefan Monnier
d7d72624b2
Add cl-struct specific optimizations to pcase.
...
* lisp/emacs-lisp/cl-macs.el (cl--struct-all-parents)
(cl--pcase-mutually-exclusive-p): New functions.
(pcase--mutually-exclusive-p): Advise to optimize cl-struct patterns.
* lisp/emacs-lisp/pcase.el (pcase--split-pred): Handle quoted string.
2015-03-23 23:40:06 -04:00
Stefan Monnier
ae277259b1
Add new cl-struct' and
eieio' pcase patterns.
...
* lisp/emacs-lisp/cl-macs.el (cl-struct): New pcase pattern.
* lisp/emacs-lisp/eieio.el (eieio-pcase-slot-index-table)
(eieio-pcase-slot-index-from-index-table): New functions.
(eieio): New pcase pattern.
* lisp/emacs-lisp/pcase.el (pcase--make-docstring): New function.
(pcase): Use it to build the docstring.
(pcase-defmacro): Make sure the macro is lazy-loaded.
(\`): Move its docstring from `pcase'.
2015-03-23 18:24:30 -04:00
Paul Eggert
a660037698
Merge from origin/emacs-24
...
bb7b23c
In `debug' don't try using window on inaccessible frame (Bug#17170).
Conflicts:
lisp/ChangeLog
2015-03-23 10:17:21 -07:00
Daniel Colascione
bad7308e0c
Fix previous commit (again)
2015-03-23 01:54:42 -07:00
Daniel Colascione
b8d7d7e8e6
Fix previous commit
2015-03-23 01:42:56 -07:00
Daniel Colascione
d235b1d261
Try to avoid fontifying macros in funcall position
...
* lisp/emacs-lisp/lisp-mode.el
(lisp--el-non-funcall-position-p): New function.
(lisp--el-match-keyword): Use it.
2015-03-23 01:38:20 -07:00
Glenn Morris
e7f92aa3d3
authors.el small additions
...
* lisp/emacs-lisp/authors.el (authors-aliases)
(authors-obsolete-files-regexps): Additions.
2015-03-22 17:33:49 -07:00
Martin Rudalics
bb7b23c5cb
In `debug' don't try using window on inaccessible frame (Bug#17170).
...
* emacs-lisp/debug.el (debug): Don't try using "previous"
window when its not live or on an invisible frame (Bug#17170).
2015-03-22 12:40:21 +01:00
Mario Lang
17ad6f839e
Fix problems caused by calling 'recenter' in auto-revert (Bug#20122)
...
lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Only call
`recenter' if `current-buffer' is equal to `window-buffer'.
(cherry picked from commit 4a81602043
)
2015-03-21 12:01:27 +02:00
Tassilo Horn
fa734d07ab
Handle setf methods in elisp font-locking.
...
* emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-1): Also
recognize (cl-)defmethod with (setf method) name.
2015-03-21 08:52:34 +01:00
Tassilo Horn
73b8237c19
Fix CL function name font-lock bug.
...
* emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-1): Fix
false positive in function name font-locking.
2015-03-20 23:35:22 +01:00
Tassilo Horn
c9998fcbf4
Fix elisp function name font-lock bug.
...
* emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-1): Fix
false positive in function name font-locking.
2015-03-20 23:09:06 +01:00
Stefan Monnier
4cd31cf019
(cl-defsubst): Ignore false-positive occurrences of args via &cl-defs
...
Fixes: debbugs:20149
* lisp/emacs-lisp/cl-macs.el (cl-defsubst): Ignore false-positive
occurrences of args via &cl-defs.
2015-03-20 16:29:21 -04:00
Stefan Monnier
8aa13d07fe
* lisp/emacs-lisp/pcase.el (pcase-lambda): Rewrite.
2015-03-19 13:46:36 -04:00
Stefan Monnier
29f7f98b7c
Fixes: debbugs:20141
...
* lisp/emacs-lisp/eieio.el (object-slots): Return slot names as before.
2015-03-19 10:35:52 -04:00