Glenn Morris
cee6efdef3
Auto-commit of loaddefs files.
2012-10-25 06:17:47 -04:00
Glenn Morris
a05cb6e326
More cl doc updates
...
* doc/misc/cl.texi: Don't mess with the TeX section number counter.
Use Texinfo recommended convention for quotes+punctuation.
(Overview, Sequence Functions): Rephrase for better line-breaking.
(Time of Evaluation, Type Predicates, Modify Macros, Function Bindings)
(Macro Bindings, Conditionals, Iteration, Loop Basics)
(Random Numbers, Mapping over Sequences, Structures)
(Porting Common Lisp): Further updates for cl-lib namespace.
(Modify Macros, Declarations, Macro Bindings, Structures):
Break long lines in examples.
(Dynamic Bindings): Update for changed progv behavior.
(Loop Examples, Efficiency Concerns): Markup fixes.
(Structures): Remove TeX margin change.
* lisp/emacs-lisp/cl-macs.el (cl-progv): Doc fix.
* etc/NEWS: Related markup.
2012-10-24 20:58:40 -04:00
Chong Yidong
75e8f9d2de
Improve documentation of easy-menu-define.
...
* lisp/emacs-lisp/easymenu.el (easy-menu-define): Doc fix.
* doc/lispref/keymaps.texi (Toolkit Differences): Node deleted.
(Easy Menu): New node.
Fixes: debbugs:12628
2012-10-24 11:48:50 +08:00
Stefan Monnier
76673f9c62
* checkdoc.el (checkdoc-comment-style-hooks): Typo.
2012-10-23 13:09:22 -04:00
Stefan Monnier
d106953274
Cleanup uses of "-hooks".
...
* doc/emacs/custom.texi (Hooks):
* doc/lispref/hooks.texi (Standard Hooks): Clarify that -hooks is deprecated.
* lisp/gnus/nndiary.el (nndiary-request-create-group-functions)
(nndiary-request-update-info-functions)
(nndiary-request-accept-article-functions):
* lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-functions):
* lisp/cedet/semantic/db-file.el (semanticdb-save-database-functions):
* lisp/cedet/semantic/lex.el (semantic-lex-reset-functions):
* lisp/cedet/semantic/edit.el (semantic-change-functions)
(semantic-edits-new-change-functions)
(semantic-edits-delete-change-functions)
(semantic-edits-reparse-change-functions):
* lisp/htmlfontify.el (hfy-post-html-hook):
* lisp/filesets.el (filesets-cache-fill-content-hook):
* lisp/arc-mode.el (archive-extract-hook):
* lisp/progmodes/cc-mode.el (c-prepare-bug-report-hook):
* lisp/net/rcirc.el (rcirc-sentinel-functions)
(rcirc-receive-message-functions, rcirc-activity-functions)
(rcirc-print-functions):
* lisp/net/dbus.el (dbus-event-error-functions):
* lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-functions):
* lisp/emacs-lisp/checkdoc.el (checkdoc-style-functions)
(checkdoc-comment-style-functions): Don't use "-hooks" suffix.
* lisp/term/sun.el (sun-raw-prefix-hooks):
* lisp/mail/sendmail.el (mail-yank-hooks):
* lisp/mh-e/mh-letter.el (mh-yank-hooks): Use make-obsolete-variable.
2012-10-23 11:06:07 -04:00
Martin Rudalics
fb0104dabe
In debug record height of debugger window also when debugger will be back (Bug#8789).
...
* emacs-lisp/debug.el (debug): Record height of debugger window
also when debugger will be back (Bug#8789).
2012-10-19 11:28:50 +02:00
Stefan Monnier
aaf0c30025
* lisp/emacs-lisp/advice.el: Clean up commentary a bit.
...
(ad-do-advised-functions, ad-with-originals): Use `declare'.
(byte-code-function-p): Never redefine.
2012-10-18 11:37:57 -04:00
Stefan Monnier
90eacf9920
* lisp/emacs-lisp/gv.el (cond): Same fix as before for `if'.
...
* Makefile.in ($(MAKEFILE_NAME)): Depend on src/lisp.mk as well.
2012-10-18 08:56:10 -04:00
Chong Yidong
d18a0d2460
More documentation fixes for changes to defun, defmacro, etc.
...
* doc/lispref/functions.texi (Anonymous Functions): Explicitly list the
docstring, declare, and interactive arguments to lambda.
(Defining Functions): Likewise for defun.
(Inline Functions): Likewise for defsubst.
(Declare Form): Tweak description.
* doc/lispref/macros.texi (Defining Macros): defmacro is now a macro.
Explicitly list the docstring and declare arguments.
* emacs-lisp/byte-run.el (defsubst): Doc fix.
2012-10-15 12:03:04 +08:00
Stefan Monnier
9760c73c66
* lisp/emacs-lisp/eieio.el (eieio-oset-default, eieio-oset, oset-default)
...
(oset): Move uses of object-class-fast macro after its definition.
2012-10-13 21:42:48 -04:00
Stefan Monnier
5046ef67ca
* lisp/emacs-lisp/gv.el (if): Don't use closures in non-lexical-binding code.
2012-10-13 21:39:56 -04:00
Martin Rudalics
88ded8acca
In debug restore window configuration when debugger-will-be-back is non-nil (Bug#12623).
...
* emacs-lisp/debug.el (debug): When debugger-will-be-back is
non-nil, restore window configuration (Bug#12623).
2012-10-13 09:58:53 +02:00
Stefan Monnier
bd0ffffd5a
* lisp/emacs-lisp/eieio.el (lisp-imenu-generic-expression): Fix typo.
2012-10-12 16:07:58 -04:00
Stefan Monnier
9f1a4aa505
* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Undo last change.
...
* lisp/emacs-lisp/cl-macs.el (cl--defsubst-expand): Idem.
2012-10-11 16:36:23 -04:00
Stefan Monnier
d8cc4c00ea
* lisp/help-fns.el (describe-function-1): Handle autoloads w/o docstrings.
...
* lisp/emacs-lisp/cl-lib.el (cl--defsubst-expand): Move autoload...
* lisp/emacs-lisp/cl-macs.el (cl--defsubst-expand): ...here.
2012-10-11 16:11:23 -04:00
Stefan Monnier
5253a5fd75
Fix spurious "cl--defsubst-expand might not be defined at runtime"
...
* lisp/emacs-lisp/bytecomp.el (byte-compile-eval): Adjust to long-ago
changes to the format of load-history.
* src/eval.c (Fautoload): Remember previous autoload status in load-history.
2012-10-11 16:08:38 -04:00
Stefan Monnier
94c66ce57b
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Obey the :read-only property.
2012-10-09 02:01:10 -04:00
Martin Rudalics
6a0886306e
In edebug-pop-to-buffer don't try to split the minibuffer window (Bug#10851).
...
* emacs-lisp/edebug.el (edebug-pop-to-buffer): Don't try to split
the minibuffer window (Bug#10851).
2012-10-08 08:42:29 +02:00
Stefan Monnier
13af0d109f
* lisp/emacs-lisp/autoload.el (make-autoload): Add `cl-defmacro' to the
...
forms that define macros.
Fixes: debbugs:12593
2012-10-07 11:15:16 -04:00
Stefan Monnier
685f87b00f
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Improve docstring.
2012-10-06 13:34:57 -04:00
Glenn Morris
e8757f091a
Merge from emacs-24; up to 2012-05-08T14:11:47Z!monnier@iro.umontreal.ca
2012-10-05 00:38:05 -07:00
Paul Eggert
735135f9bc
Spelling fixes.
2012-10-04 22:57:24 -07:00
Glenn Morris
8d956cef24
* lisp/emacs-lisp/timer.el (with-timeout): Add missing progn. (Bug#12577)
2012-10-04 14:27:37 -04:00
Martin Rudalics
6bab5d8b31
I edebug-pop-to-buffer select window after setting its buffer (Bug#10805).
...
* emacs-lisp/edebug.el (edebug-pop-to-buffer): Select window
after setting its buffer (Bug#10805).
2012-10-04 14:56:14 +02:00
Martin Rudalics
2e566ecb82
In debug restore current buffer when quitting debugger window (Bug#12502).
...
* emacs-lisp/debug.el (debug): When quitting the debugger window
restore current buffer (Bug#12502).
2012-10-03 09:18:50 +02:00
Chong Yidong
fd795bf4a0
Restore Version headers removed in last CEDET merge.
...
These are needed for ELPA dependencies.
* srecode.el, ede.el: Restore Version header.
* emacs-lisp/eieio.el: Restore Version header.
2012-10-02 13:02:52 +08:00
Chong Yidong
62a81506f8
Update CEDET from upstream.
2012-10-02 02:10:29 +08:00
Stefan Monnier
375e49d4d1
* lisp/emacs-lisp/bytecomp.el (byte-compiler-abbreviate-file): New function.
...
(byte-compile-warning-prefix, byte-compile-file): Use it.
Fixes: debbugs:12508
2012-10-01 00:45:32 -04:00
Stefan Monnier
e7c1b6ef85
* src/lisp.h (struct backtrace): Remove indirection for `function' field.
...
* src/xdisp.c (redisplay_internal):
* src/profiler.c (record_backtrace, sigprof_handler_1):
* src/alloc.c (Fgarbage_collect):
* src/eval.c (interactive_p, Fsignal, eval_sub, Ffuncall, Fbacktrace)
(Fbacktrace_frame): Adjust accordingly.
2012-09-28 22:02:34 -04:00
Glenn Morris
277f0cfa8b
* lisp/emacs-lisp/cl.el (flet): Fix case of obsolescence message.
2012-09-28 19:51:20 -04:00
Glenn Morris
e60b51abaa
* bytecomp.el (byte-compile-cl-file-p): Only "cl.el" counts as cl these days.
...
Remove no longer appropriate file-local suppression of CL warnings in
lisp/emacs-lisp/cl-*.el files.
2012-09-28 19:30:52 -04:00
Stefan Monnier
7f457c067d
* lisp/emacs-lisp/pcase.el (pcase--mark-used): New.
...
(pcase--u1): Use it.
* lisp/custom.el (load-theme): Set buffer-file-name so the load is recorded
in load-history with the right file name.
Fixes: debbugs:12512
2012-09-28 08:18:38 -04:00
Stefan Monnier
07b1a5fbc3
* lisp/emacs-lisp/testcover.el (testcover-after): Add gv-expander.
...
(testcover-reinstrument): Simplify with CSE.
2012-09-26 10:41:05 -04:00
Chong Yidong
59f7af816e
Use declare forms, where possible, to mark obsolete functions.
...
* lisp/allout.el (allout-passphrase-hint-string): Likewise.
(allout-init): Use a declare form to mark obsolete.
* lisp/calendar/calendar.el (calendar-version):
* lisp/calendar/icalendar.el (icalendar-extract-ical-from-buffer)
(icalendar-convert-diary-to-ical):
* lisp/cus-edit.el (custom-mode):
* lisp/ansi-color.el (ansi-color-unfontify-region):
* lisp/international/latin1-disp.el (latin1-char-displayable-p):
* lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
* lisp/progmodes/which-func.el (which-func-update-1): Use
define-obsolete-function-alias.
* lisp/bookmark.el (bookmark-jump-noselect): Use a declare form to mark
this function obsolete.
* lisp/calendar/cal-x.el (calendar-two-frame-setup)
(calendar-only-one-frame-setup, calendar-one-frame-setup):
* lisp/calendar/calendar.el (american-calendar, european-calendar)
(calendar-for-loop):
* lisp/comint.el (comint-dynamic-simple-complete)
(comint-dynamic-complete-as-filename, comint-unquote-filename):
* lisp/desktop.el (desktop-load-default):
* lisp/dired-x.el (dired-omit-here-always)
(dired-hack-local-variables, dired-default-directory):
* lisp/emacs-lisp/derived.el (derived-mode-class):
* lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
* lisp/emacs-lock.el (toggle-emacs-lock):
* lisp/epa.el (epa-display-verify-result):
* lisp/epg.el (epg-sign-keys, epg-start-sign-keys)
(epg-passphrase-callback-function):
* lisp/eshell/esh-util.el (eshell-for):
* lisp/eshell/eshell.el (eshell-remove-from-window-buffer-names)
(eshell-add-to-window-buffer-names):
* lisp/files.el (locate-file-completion):
* lisp/imenu.el (imenu-example--create-c-index)
(imenu-example--create-lisp-index)
(imenu-example--lisp-extract-index-name)
(imenu-example--name-and-position):
* lisp/international/mule-cmds.el (princ-list):
* lisp/international/mule-diag.el (decode-codepage-char):
* lisp/international/mule-util.el (detect-coding-with-priority):
* lisp/iswitchb.el (iswitchb-read-buffer):
* lisp/mail/mailalias.el (mail-complete):
* lisp/mail/sendmail.el (mail-sent-via):
* lisp/mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar)
(mouse-major-mode-menu):
* lisp/password-cache.el (password-read-and-add):
* lisp/pcomplete.el (pcomplete-parse-comint-arguments):
* lisp/progmodes/sh-script.el (sh-maybe-here-document):
* lisp/replace.el (query-replace-regexp-eval):
* lisp/savehist.el (savehist-load):
* lisp/simple.el (choose-completion-delete-max-match):
* lisp/term.el (term-dynamic-simple-complete):
* lisp/vc/ediff-init.el (ediff-check-version):
* lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically):
* lisp/vc/vc.el (vc-diff-switches-list):
* lisp/view.el (view-return-to-alist-update): Likewise.
* lisp/iswitchb.el (iswitchb-read-buffer): Move code of
iswitchb-define-mode-map here, and delete that obsolete function.
* lisp/subr.el (eval-next-after-load, makehash, insert-string)
(assoc-ignore-representation, assoc-ignore-case): Use declare to
mark obsolete.
(mode-line-inverse-video): Variable deleted.
* lisp/emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that
this applies to functions.
* lisp/erc/erc.el (erc-send-command): Use define-obsolete-function-alias.
* lisp/international/mule-util.el (string-to-sequence): Remove.
* lisp/net/newst-backend.el (newsticker-cache-filename):
* lisp/net/newst-treeview.el (newsticker-groups-filename): Fix
incorrect obsolescence declaration.
* lisp/net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete
font-lock-reference-face.
* lisp/url/url-parse.el (url-recreate-url-attributes):
* lisp/url/url-util.el (url-generate-unique-filename): Use declare to mark
obsolete.
* src/xdisp.c (mode_line_inverse_video): Delete obsolete variable.
2012-09-25 12:13:02 +08:00
Glenn Morris
267b82ff23
Standardize some more license notices
2012-09-24 09:36:42 -07:00
Glenn Morris
74bfe42a98
Standardize some license notices
2012-09-24 08:58:20 -07:00
Chong Yidong
0c765e5f57
Fix two references to deleted obsolete variables.
...
Also, fix the copyright header for lisp/emacs-lisp/gv.el.
* lisp/vc/log-edit.el (log-edit-require-final-newline)
(log-edit-changelog-full-paragraphs): Default to t.
2012-09-24 20:31:24 +08:00
Chong Yidong
c88b867fec
Misc doc fixes.
...
* searching.texi (Replacing Match): Minor clarification.
* lisp/repeat.el (repeat): Doc fix.
* lisp/simple.el (shell-command-on-region): Doc fix.
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
* cmds.c (Fforward_char, Fbackward_char): Doc fix.
* editfns.c (Fline_beginning_position): Doc fix.
(Fline_end_position): Doc fix.
* minibuf.c (Finternal_complete_buffer): Doc fix.
* search.c (Freplace_match): Doc fix.
Fixes: debbugs:12325 debbugs:12391 debbugs:12416 debbugs:12414 debbugs:10909 debbugs:12348
2012-09-22 23:24:26 +08:00
Eli Zaretskii
df9685f396
Fix bugs #12447 and #12326 with infloop causes by idle timers, update docs.
...
src/keyboard.c (timer_check_2): Move calculation of 'timers' and
'idle_timers' from here ...
(timer_check): ... to here. Use Fcopy_sequence to copy the timer
lists, to avoid infloops when the timer does something stupid,
like reinvoke itself with the same or smaller time-out.
lisp/emacs-lisp/timer.el (run-with-idle-timer)
(timer-activate-when-idle): Warn against reinvoking an idle timer
from within its own timer action.
doc/lispref/os.texi (Idle Timers): Warn against reinvoking an idle timer
from within its own timer action.
2012-09-22 16:16:03 +03:00
Chong Yidong
acfa068f4a
Merge from emacs-24; up to 2012-05-07T14:57:18Z!michael.albinus@gmx.de
2012-09-21 11:03:48 +08:00
Stefan Monnier
95b9712e9e
* lisp/emacs-lisp/macroexp.el (macroexp--obsolete-warning): New function.
...
(macroexp--expand-all): Use it.
(macroexp--funcall-and-return): Remove by folding it into its sole
caller (macroexp--warn-and-return).
* lisp/emacs-lisp/bytecomp.el (byte-compile-warn-obsolete):
Use macroexp--obsolete-warning.
2012-09-20 09:46:36 -04:00
Martin Rudalics
96e8d4114d
In debug restore assignment to debugger-old-buffer.
...
* emacs-lisp/debug.el (debug): Restore assignment to
debugger-old-buffer removed on 2012-09-08.
2012-09-20 15:35:13 +02:00
Stefan Monnier
7a04bee953
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Fix last change.
2012-09-19 23:29:41 -04:00
Stefan Monnier
ce97595bd4
* lisp/emacs-lisp/macroexp.el (macroexp--funcall-if-compiled): Rename from
...
macroexp--eval-if-compile.
(macroexp--funcall-and-return, macroexp--warn-and-return): New funs.
(macroexp--expand-all): Use them.
Fixes: debbugs:12371
2012-09-19 15:59:52 -04:00
Glenn Morris
35f5b19d7a
Partial fix for bug#12371
...
* emacs-lisp/macroexp.el (byte-compile-warn-obsolete)
(byte-compile-log-warning): Autoload.
2012-09-19 09:09:43 -07:00
Martin Rudalics
37ab5092e9
Fix some recent changes in debug.el.
...
* emacs-lisp/debug.el (debugger-bury-or-kill): Fix customization
value.
(debug): Don't remove debugger window when debugger is expected
to be back.
2012-09-18 09:07:13 +02:00
Chong Yidong
865fe16fd2
Update docstrings and comments to use "init file" terminology.
...
* bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
* comint.el (comint-prompt-read-only):
* custom.el (defcustom):
* hi-lock.el (hi-lock-mode):
* ibuffer.el (ibuffer-formats):
* ielm.el (ielm-prompt-read-only):
* novice.el (disable-command):
* saveplace.el (toggle-save-place):
* speedbar.el (speedbar-supported-extension-expressions):
* startup.el (auto-save-list-file-prefix, init-file-user)
(after-init-hook, inhibit-startup-echo-area-message):
* strokes.el (strokes-help):
* time-stamp.el (time-stamp):
* calendar/calendar.el (calendar, diary-file):
* calendar/diary-lib.el (diary-mail-entries, diary)
(diary-list-entries-hook):
* calendar/holidays.el (holidays, calendar-holidays):
* calendar/lunar.el (lunar-phases):
* calendar/solar.el (sunrise-sunset):
* emulation/edt.el (edt-load-keys):
* emulation/viper.el (viper-mode):
* eshell/em-alias.el (eshell-command-aliases-list):
* eshell/esh-util.el (eshell-convert-numeric-arguments):
* international/ogonek.el (ogonek-information):
* net/tramp-cmds.el (tramp-bug):
* net/quickurl.el (quickurl-reread-hook-postfix):
* play/decipher.el (decipher-font-lock-keywords):
* progmodes/cc-styles.el (c-set-style):
* progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
* progmodes/inf-lisp.el (inferior-lisp-prompt):
* progmodes/octave-mod.el (octave-mode):
* progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
* progmodes/verilog-mode.el (verilog-read-defines):
* textmodes/two-column.el (2C-mode): Likewise.
2012-09-17 13:41:04 +08:00
Stefan Monnier
0fb3cb7c89
* lisp/emacs-lisp/advice.el (ad-prognify): Remove, use macroexp-progn.
2012-09-14 09:44:31 -04:00
Stefan Monnier
2de39f089a
* lisp/emacs-lisp/edebug.el: Miscellaneous cleanup.
...
Remove obsolete byte-compiler hack that tried to silence some warnings.
(edebug-submit-bug-report): Remove.
(edebug-get-buffer-window, edebug-sit-for, edebug-input-pending-p):
Remove aliases, use the un-prefixed name instead.
(edebug-pop-to-buffer): Consider other frames.
(edebug-original-read):: Make it more obvious that it's always defined.
(edebug--make-form-data-entry, edebug--form-data-name)
(edebug--form-data-begin, edebug--form-data-end): Rename from the
single-dashed name, and implement with cl-defstruct.
(edebug-set-form-data-entry): Use the standard accessors.
(edebug-make-top-form-data-entry): Use push.
(edebug-no-match): Drop useless `funcall'.
(mapcar, mapconcat, mapatoms, apply, funcall): Don't add debug specs
to functions.
(defsubst, dont-compile, eval-when-compile, eval-and-compile)
(delay-mode-hooks, with-temp-file, with-temp-message, ad-dolist)
(with-syntax-table, push, pop, 1value, noreturn, defadvice)
(easy-menu-define, with-custom-print): Remove redundant specs.
(edebug-outside-overriding-local-map)
(edebug-outside-overriding-terminal-local-map): Remove, unused.
(edebug--display): Bind unread-command-events directly to nil rather
than binding it to unread-command-events and later setting it to nil.
(edebug--display): Kill edebug-eval-buffer here...
(edebug--recursive-edit): ...rather than here.
Bind standard-output and standard-input.
(edebug-eval): Check cl-macroexpand-all is fboundp.
(edebug-temp-display-freq-count): Fix last change.
* lisp/emacs-lisp/easymenu.el (easy-menu-define): Add `debug' spec.
* lisp/subr.el (noreturn, 1value): Add `debug' spec.
* lisp/emacs-lisp/advice.el: Require cl-lib.
(ad-copy-tree): Remove, use copy-tree instead.
(ad-dolist): Remove use dolist or cl-dolist instead.
(ad-do-return): Remove, use cl-return instead.
(defadvice): Add `debug' spec.
2012-09-13 23:55:16 -04:00
Paul Eggert
c18e885bdd
Use a more backwards-compatible timer format.
...
* etc/NEWS: Document it.
* lisp/emacs-lisp/timer.el (timer): PSECS is now at the end, rather than
being right after USECS, as that better supports old code that
inadvisedly looked directly at the timer vector.
* src/keyboard.c (decode_timer): Get PSECS from the 8th (origin-0)
vector element, not from the 4th, since PSECS is now at the end.
(Fcurrent_idle_time): Doc fix.
Fixes: debbugs:12430
2012-09-13 09:23:06 -07:00