Commit graph

3234 commits

Author SHA1 Message Date
Stefan Monnier
a8406c20c4 * lisp/emacs-lisp/debug.el (debug-convert-byte-code): Don't assume the
object has more than 4 slots.

Fixes: debbugs:9613
2011-09-27 21:20:41 -04:00
Chong Yidong
502f9ebda0 * lisp/emacs-lisp/package.el (list-packages): Fix echo area message. 2011-09-27 11:58:13 -04:00
Stefan Monnier
e24e27be18 * lisp/emacs-lisp/debug.el (debugger-args): Give it a docstring.
(debugger-return-value): Signal an error if the debugging context does
not await any return value.
2011-09-19 17:14:23 -04:00
Juri Linkov
7cc6e15441 Capitalize non-function content words in menu item strings.
* lisp/buff-menu.el (Buffer-menu-mode-map):
* lisp/dired.el (dired-mode-map):
* lisp/emacs-lisp/lisp-mode.el (emacs-lisp-mode-map)
(lisp-interaction-mode-map):
* lisp/emacs-lisp/package.el (package-menu-mode-map):
* lisp/epa.el (epa-key-list-mode-map):
* lisp/menu-bar.el (menu-bar-showhide-tool-bar-menu)
(menu-bar-options-menu):
* lisp/outline.el (outline-mode-menu-bar-map):
* lisp/vc/vc-bzr.el (vc-bzr-shelve-menu-map, vc-bzr-extra-menu-map):
* lisp/vc/vc-dir.el (vc-dir-menu-map):
* lisp/vc/vc-git.el (vc-git-stash-menu-map, vc-git-extra-menu-map):
Capitalize non-function content words in menu item strings.

* lisp/dired.el (dired-mode-map): Add menu item for
`image-dired-dired-toggle-marked-thumbs'.
2011-09-18 23:43:20 +03:00
Andreas Schwab
d9bbf40098 * lisp/emacs-lisp/bytecomp.el (byte-compile-lapcode): Fix overflow
check.  (Bug#4251)
2011-09-17 11:29:01 +02:00
Chong Yidong
d770725a3d Add package-menu-mark-upgrades to the Package Menu menu bar map. 2011-09-14 22:05:17 -04:00
Chong Yidong
25322144fc Add an "mark upgradable packages" command to Package Menu mode.
* lisp/emacs-lisp/package.el (package-alist): Fix risky-local-variable
declaration.
(package--add-to-archive-contents): If there is a duplicate entry
with an older version, remove it.
(package-menu-mark-delete, package-menu-mark-install)
(package-menu-mark-unmark): Make unused args optional.
(package-menu-mark-obsolete-for-deletion): Use
package-menu-get-status instead of a regexp search.
(package-menu-get-status): Use tabulated-list-entry.
(package-menu-mark-upgrades): New command.
(package-menu-mode-map): Bind it to U.
(package-menu-execute): Do installation before deletion.
(package-menu-refresh, package-menu-execute): Use derived-mode-p
instead of checking major-mode.
(package-menu--find-upgrades): New function.
2011-09-14 21:57:54 -04:00
Glenn Morris
5f66aa05d4 Tabify previous change. 2011-09-13 17:13:10 -04:00
Glenn Morris
8e39b2e837 * lisp/emacs-lisp/debug.el (debugger-make-xrefs): Preserve point. (Bug#9462) 2011-09-13 17:02:27 -04:00
Glenn Morris
b75567193d Doc fixes related to lisp-indent-function (bug#9484)
* lisp/emacs-lisp/lisp-mode.el (lisp-indent-function): Doc fix.

* lisp/progmodes/scheme.el (scheme-indent-function): Give it a doc string.

* lisp/emacs-lisp/cl-indent.el (common-lisp-indent-function): Comment.
2011-09-12 23:55:10 -07:00
Stefan Monnier
77694924d8 * lisp/emacs-lisp/find-func.el (find-function-C-source): Only set
find-function-C-source-directory after checking that we found a source
file there.

Fixes: debbugs:9440
2011-09-06 21:06:09 -04:00
Chong Yidong
fb87e0fb94 Fix package menu bug in marking obsolete packages for deletion.
* lisp/emacs-lisp/package.el (package-menu-mark-delete): Allow marking
obsolete packages for deletion.
2011-08-28 17:32:50 -04:00
Chong Yidong
7254299e4d * package.el (package-install): Call package-initialize if called interactively. 2011-08-26 11:53:50 -04:00
Eli Zaretskii
c11821d4e1 Fix bug #9324 with unwarranted repositioning of point.
src/xdisp.c (redisplay_window): Don't force window start if point
 will be invisible in the resulting window.
2011-08-26 13:07:06 +03:00
Leo Liu
f8ccf16762 Fix format bug in defstruct
http://debbugs.gnu.org/9357
2011-08-26 17:52:07 +08:00
Glenn Morris
b2948976fc * lisp/emacs-lisp/derived.el (define-derived-mode): Doc fix. 2011-08-24 22:37:55 -07:00
Stefan Monnier
93b6b5e15d * lisp/emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric):
Add compatibility functions.

Fixes: debbugs:9313
2011-08-23 14:53:51 -04:00
Stefan Monnier
4eb613489b * lisp/emacs-lisp/debug.el (debug-arglist): New function.
(debug-convert-byte-code): Use it.  Handle lexical byte-codes.
(debug-on-entry-1): Handle interpreted closures.

Fixes: debbugs:9120
2011-08-22 17:16:46 -04:00
Chong Yidong
23a8a5ab69 Improve Edebug error for attempting to instrument built-in functions.
* lisp/emacs-lisp/edebug.el (edebug-instrument-function): Use it to
signal an error for built-in functions.

* lisp/emacs-lisp/find-func.el (find-function-noselect): New arg
lisp-only.

Fixes: debbugs:6664
2011-08-21 13:43:31 -04:00
Chong Yidong
f635daa1e0 Add L and R categories to standard category table, and use them.
* lisp/international/characters.el: Add L and R categories.

* lisp/subr.el (bidi-string-mark-left-to-right): Rename from
string-mark-left-to-right.  Use category search.

* lisp/buff-menu.el (Buffer-menu-buffer+size): Callers changed.
2011-08-18 11:53:29 -04:00
Chong Yidong
3e26a4a28c New function `string-mark-left-to-right' for handling LRMs.
* lisp/subr.el (string-mark-left-to-right): New function.

* lisp/buff-menu.el (Buffer-menu-buffer+size): Remove LRM argument.
Use string-mark-left-to-right.
(list-buffers-noselect): Caller changed.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-entry): Use
string-mark-left-to-right.
(tabulated-list-print): Recenter after moving point.
2011-08-10 15:03:56 -04:00
Stefan Monnier
673e08bbd4 * lisp/emacs-lisp/cl-macs.el (cl--make-usage-var, cl--make-usage-args):
New functions.
(cl-transform-lambda): Use them.

Fixes: debbugs:9239
2011-08-05 12:31:21 -04:00
Glenn Morris
568352e761 Auto-commit of loaddefs files. 2011-08-03 06:20:59 -04:00
Lars Magne Ingebrigtsen
ce887515f2 dolist doc fix.
(dolist): Mention that there's a nil block
2011-08-02 20:49:12 +02:00
Stefan Monnier
cca09170ad * lisp/emacs-lisp/package.el (package-generate-autoloads): Load autoloads
before binding generated-autoload-file.
2011-08-01 11:54:09 -04:00
Glenn Morris
60d847b46d Auto-commit of loaddefs files. 2011-07-17 06:26:13 -04:00
Lawrence Mitchell
0794775d0d Silence byte-compiler warning with :read-only defstruct slots
* emacs-lisp/cl-macs.el (defstruct): Ignore argument to setf
method if slot is read-only.

Fixes: debbugs:9035
2011-07-16 17:52:46 +02:00
Lars Magne Ingebrigtsen
7b41decb8e Add a variable to customize the gnutls priority 2011-07-15 19:21:57 +02:00
Lars Magne Ingebrigtsen
dbc44fcd08 * emacs-lisp/cl-macs.el (declare): Link to the "Declarations" node. 2011-07-15 18:01:18 +02:00
Lars Magne Ingebrigtsen
c39da69053 * emacs-lisp/cl-macs.el (declare): Doc string fix-up. 2011-07-15 16:59:42 +02:00
Lars Magne Ingebrigtsen
1b5eaeb36c Minor grammer fixes for syntax.el.
Fixes: debbugs:8690
2011-07-15 15:55:00 +02:00
Lars Magne Ingebrigtsen
4bf0979f4c * emacs-lisp/cl-macs.el (declare): Add a doc string (bug#8690). 2011-07-15 15:46:52 +02:00
Glenn Morris
a7c33da259 * lisp/emacs-lisp/debug.el (debug): Doc fix. (Bug#8273) 2011-07-14 22:16:55 -04:00
Juanma Barranquero
5eba16a37c Fix typos. 2011-07-14 03:09:00 +02:00
Chong Yidong
bee0fcef3d Add FORCE-SAME-WINDOW argument to switch-to-buffer.
* lisp/window.el (switch-to-buffer): New arg FORCE-SAME-WINDOW.  Use
pop-to-buffer buffer-or-name if it is nil.

* lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
Remove switch-to-buffer.
2011-07-13 18:00:48 -04:00
Lars Magne Ingebrigtsen
f4f7319875 * emacs-lisp/lisp-mode.el (eval-defun-1): Update the documentation
of faces when `M-C-x'-ing their definitions.  Also
clean up the code slightly.

Fixes: debbugs:8378
2011-07-06 18:46:27 +02:00
Stefan Monnier
450a0f0927 * lisp/emacs-lisp/lisp-mode.el (lisp-interaction-mode-abbrev-table):
Let define-derived-mode define it.
* lisp/emacs-lisp/derived.el (define-derived-mode): Try to avoid creating
cycles of abbrev-table inheritance.

Fixes: debbugs:8998
2011-07-05 14:26:33 -04:00
Stefan Monnier
c8af70e11e * lisp/files.el (find-file): Use pop-to-buffer-same-window.
* lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
Add switch-to-buffer.

Fixes: debbugs:8911
2011-07-04 12:08:16 -04:00
Paul Eggert
08235028a6 * emacs-lisp/timer.el (timer--time-less-p): Use time-less-p. 2011-07-03 23:25:23 -07:00
Paul Eggert
f34755dce2 * emacs-lisp/timer.el (timer-until): Use time-subtract and float-time. 2011-07-03 23:23:54 -07:00
Stefan Monnier
1a1e3f3207 * lisp/emacs-lisp/derived.el (define-derived-mode): Make abbrev-table
inherit from parent.
2011-07-01 12:41:02 -04:00
Paul Eggert
d0672f86c9 Merge from trunk. 2011-06-30 22:20:09 -07:00
Stefan Monnier
6a2fb14596 * lisp/emacs-lisp/find-func.el (find-library--load-name): New fun.
(find-library-name): Use it to find relative load names when provided
absolute file name.

Fixes: debbugs:8803
2011-06-30 23:15:02 -04:00
Paul Eggert
fe955043aa * emacs-lisp/timer.el (timer-relative-time): Use time-add. 2011-06-30 18:27:40 -07:00
Paul Eggert
3103f8b658 * emacs-lisp/elp.el (elp-elapsed-time): Use float-time. 2011-06-30 17:30:18 -07:00
Paul Eggert
e2bac5f625 * emacs-lisp/benchmark.el (benchmark-elapse): Use float-time. 2011-06-30 17:27:45 -07:00
Deniz Dogan
da68c4c88c * emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table): Unnest `let'. 2011-06-28 14:09:43 +02:00
Andreas Schwab
bc3122541b * lisp/emacs-lisp/smie.el (smie-bnf->prec2): Fix last change.
(Bug#8934)
2011-06-26 10:43:52 +02:00
Juanma Barranquero
74f5369749 Simplify unloading functions after 2011-06-25T17:42:18Z!lekktu@gmail.com.
* allout.el (allout-unload-function): Pass -1 to `allout-mode'.

* proced.el (proced-unload-function):
* progmodes/cperl-mode.el (cperl-mode-unload-function): Remove.

* ses.el (ses-unload-function):
* emacs-lisp/re-builder.el (re-builder-unload-function): Simplify.
2011-06-25 20:08:41 +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