Glenn Morris
1dfcc79e83
Make cl-floatp-safe just an alias for floatp
...
* lisp/emacs-lisp/cl-lib.el (cl-floatp-safe): Make it an alias for floatp.
* lisp/emacs-lisp/cl-macs.el (cl--make-type-test)
(cl--compiler-macro-assoc): Use floatp rather than cl-floatp-safe.
* doc/misc/cl.texi: Remove commented out sections about cl-floatp-safe.
2013-02-19 21:07:07 -05:00
Stefan Monnier
8ca4f1e02e
Cleanup some of EIEIO's namespace.
...
* lisp/emacs-lisp/eieio.el (eieio--define-field-accessors): New macro.
Use it to define all the class-* and object-* field accessors (renamed
to eieio--class-* and eieio--object-*). Update all uses.
(eieio--class-num-slots, eieio--object-num-slots): Rename from
class-num-slots and object-num-slots.
(eieio--check-type): New macro.
(eieio-defclass, eieio-oref, eieio-oref-default, same-class-p)
(object-of-class-p, child-of-class-p, object-slots, class-slot-initarg)
(eieio-oset, eieio-oset-default, object-assoc, object-assoc-list)
(object-assoc-list-safe): Use it.
(eieio-defclass): Tighten regexp.
(eieio--defmethod): Use `memq'. Signal an error for unknown method kind.
Remove unreachable code.
(object-class-fast): Declare obsolete.
(eieio-class-name, eieio-object-name, eieio-object-set-name-string)
(eieio-object-class, eieio-object-class-name, eieio-class-parents)
(eieio-class-children, eieio-class-precedence-list, eieio-class-parent):
Rename from class-name, object-name, object-set-name-string,
object-class, object-class-name, class-parents, class-children,
class-precedence-list, class-parent; with obsolete alias.
(class-of, class-direct-superclasses, class-direct-subclasses):
Declare obsolete.
(eieio-defmethod): Use `memq'; remove unreachable code.
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-read):
* lisp/emacs-lisp/eieio-opt.el (eieio-class-button, eieio-describe-generic)
(eieio-browse-tree, eieio-browse): Use eieio--check-type.
2013-02-18 21:57:04 -05:00
Michael Heerdegen
587feed443
* lisp/emacs-lisp/eldoc.el (eldoc-highlight-function-argument):
...
Use font-lock-keyword-face for macros and special forms.
Fixes: debbugs:8345
2013-02-17 20:30:27 -05:00
Stefan Monnier
913274cbdc
Don't use font-lock-syntax-table in lisp modes.
...
* lisp/font-lock.el (lisp-font-lock-keywords-1, lisp-font-lock-keywords-2):
Don't assume all identifier chars have syntax word.
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-variables):
Remove bar-not-symbol. Adjust callers.
(lisp-mode-variables): Don't set a font-lock-syntax-table.
2013-02-17 11:58:12 -05:00
Jonas Bernoulli
6b6d804b1e
* emacs-lisp/tabulated-list.el (tabulated-list-print-col):
...
If col-desc already has help-echo, use it.
Fixes: debbugs:13563
2013-02-15 18:50:44 -08:00
Alan Mackenzie
f852f6d8c0
emacs-lisp/easy-mmode.el (define-globalized-minor-mode): When a global
...
minor mode has been enabled, call the minor mode function for a new
buffer once only, after the major mode hook, whilst allowing that hook
explicitly to disable the minor mode.
(MODE-disable-in-buffer): new (generated) function.
(disable-MODE): new (generated) buffer local variable.
2013-02-15 20:01:51 +00:00
Paul Eggert
648e5523fb
Merge from emacs-24; up to 2012-12-19T13:01:16Z!michael.albinus@gmx.de
2013-02-14 22:35:54 -08:00
Glenn Morris
9e16c3b44b
* emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix re setf.
2013-02-14 09:16:47 -08:00
Stefan Monnier
1ead7dbd66
* lisp/emacs-lisp/package.el (package--initialized): Move before first use.
2013-02-13 11:02:35 -05:00
Glenn Morris
eeb468daa1
* emacs-lisp/package.el (package-menu-execute): Doc fix.
2013-02-12 21:00:45 -08:00
Yves Baumes
a7da01148a
* package.el (package-menu-execute): Add optional noquery argument (tiny change)
...
Fixes: debbugs:13625
2013-02-12 20:59:06 -08:00
Eli Zaretskii
8549f9e89b
Remove all references to buffer-file-type and related features.
...
src/xdisp.c (decode_mode_spec): Remove handling of %t.
lisp/net/ange-ftp.el (ange-ftp-insert-file-contents): Don't reference
buffer-file-type.
lisp/mail/feedmail.el (feedmail-force-binary-write): Doc fix.
(feedmail-run-the-queue, feedmail-dump-message-to-queue)
(feedmail-send-it-immediately): Don't bind buffer-file-type, bind
coding-system-for-write instead.
lisp/jka-compr.el (jka-compr-write-region): Don't bind
buffer-file-type.
lisp/emacs-lisp/bytecomp.el (byte-compile-file): Don't bind
buffer-file-type.
lisp/files.el (file-name-buffer-file-type-alist): Remove defvar.
(insert-file-contents-literally): Remove reference to
file-name-buffer-file-type-alist.
lisp/dos-w32.el (file-name-buffer-file-type-alist): Deprecate and
make-obsolete.
(find-buffer-file-type-match, find-buffer-file-type): Remove.
(find-buffer-file-type-coding-system): Remove references to
find-buffer-file-type-match, find-buffer-file-type, and
buffer-file-type.
Don't put find-buffer-file-type-coding-system into
file-coding-system-alist.
(find-file-binary, find-file-text): Bind coding-system-for-read
instead of file-name-buffer-file-type-alist.
lisp/erc/erc-dcc.el (erc-dcc-get-file): Don't reference buffer-file-type.
doc/emacs/msdog.texi (Text and Binary): Delete the description of
file-name-buffer-file-type-alist.
doc/lispref/modes.texi (%-Constructs): Remove the description of %t.
doc/lispref/nonascii.texi (MS-DOS File Types): Delete node.
Fixes: debbugs:12989
2013-02-09 14:52:01 +02:00
Stefan Monnier
7f526211ba
* lisp/emacs-lisp/byte-run.el (eval-when-compile, eval-and-compile):
...
Eval body right away, now that we do eager macroexpansion.
Fixes: debbugs:13605
2013-02-08 11:17:18 -05:00
Nicolas Richard
55b056bacf
* emacs-lisp/package.el (describe-package-1): Tell what archive is used to
...
install the package.
Patch by Nicolas Richard.
2013-02-06 17:10:13 +01:00
Glenn Morris
84a06b500f
ert--explain-format-atom fix for non-characters
...
* lisp/emacs-lisp/ert.el (ert--explain-format-atom):
Don't try to print non-characters as characters.
Fixes: debbugs:13543
2013-02-03 23:46:22 -08:00
Glenn Morris
94fbc90170
Merge from emacs-24; up to 2012-12-13T09:45:54Z!lekktu@gmail.com
2013-02-01 19:38:21 -08:00
David Engster
be798504fa
Sync CEDET and EIEIO version numbers with upstream.
2013-01-31 20:58:56 +01:00
Glenn Morris
3f82a88a05
Merge from emacs-24; up to 2012-12-12T22:29:54Z!yamaoka@jpl.org
2013-01-30 00:07:37 -08:00
Stefan Monnier
beb6d07d10
* lisp/emacs-lisp/cl.el (cl-set-getf): Add compatibility alias.
2013-01-26 19:17:11 -05:00
Andreas Schwab
cc17363fc3
Fixes: debbugs:13556
...
* emacs-lisp/lisp-mode.el (lisp-mode-variables): Add optional
parameter BAR-NOT-SYMBOL to control syntax of | for font-lock.
(lisp-mode): Pass t for it.
2013-01-26 16:13:09 +01:00
Glenn Morris
a576cc76c8
* lisp-mode.el (emacs-lisp-mode-map): Add native profiler menu entries.
2013-01-19 18:40:49 -08:00
Glenn Morris
795e7a5b32
Merge from emacs-24; up to 2012-12-11T09:51:12Z!dmantipov@yandex.ru
2013-01-19 12:38:13 -08:00
Stefan Monnier
e59eee439c
* lisp/emacs-lisp/trace.el (trace--read-args): Use a closure and an honest
...
call to `eval' rather than a backquoted lambda.
2013-01-16 14:06:15 -05:00
Glenn Morris
f8a42ad607
Doc fixes related to "(declare (indent symbol))" (bug#13450)
...
* doc/lispref/macros.texi (Indenting Macros):
Fix order of an indent symbol's arguments.
* lisp/emacs-lisp/lisp-mode.el (lisp-indent-function): Doc fix.
2013-01-15 21:03:06 -05:00
Stefan Monnier
cb9c0a53bc
* lisp/emacs-lisp/advice.el (ad-preactivate-advice): Adjust the cleanup to
...
the use of nadvice.el.
* lisp/emacs-lisp/nadvice.el (advice--tweak): Make it possible for `tweak'
to return an explicit nil.
(advice--remove-function): Change accordingly.
* test/automated/advice-tests.el: Split up. Add advice-test-preactivate.
2013-01-15 01:05:22 -05:00
Stefan Monnier
e5b5a34dd1
* lisp/jit-lock.el (jit-lock-debug-mode): New minor mode.
...
(jit-lock--debug-fontifying): New var.
(jit-lock--debug-fontify): New function.
* lisp/subr.el (condition-case-unless-debug): Don't prevent catching the
error, just let the debbugger run.
* lisp/emacs-lisp/timer.el (timer-event-handler): Don't prevent debugging
timer code and don't drop errors silently.
2013-01-12 20:23:48 -05:00
Aaron S. Hawley
9fc9a531a5
Disambiguate function and variable references in docstrings.
...
* lisp/comint.el (comint-history-isearch-message): Fix ambiguous doc
string cross-reference(s).
* lisp/ffap.el (ffap-string-at-point-region, ffap-next)
(ffap-string-at-point, ffap-string-around)
(ffap-copy-string-as-kill, ffap-highlight-overlay)
(ffap-literally): Fix ambiguous doc string cross-reference(s).
* lisp/font-lock.el (font-lock-keywords-alist)
(font-lock-removed-keywords-alist): Fix ambiguous doc string
cross-reference(s).
* lisp/help-mode.el (help-xref-symbol-regexp): Add "call" as a hint for
a cross-reference to a function.
* lisp/info.el (Info-find-emacs-command-nodes): Fix ambiguous doc
string cross-reference(s).
* lisp/isearch.el (isearch-message-function, isearch-fail-pos): Fix
ambiguous doc string cross-reference(s).
* lisp/misearch.el (multi-isearch-next-buffer-function): Fix ambiguous
doc string cross-reference(s).
* lisp/newcomment.el (comment-box): Fix ambiguous doc string
cross-reference(s).
* lisp/printing.el (pr-txt-printer-alist, pr-ps-printer-alist)
(pr-setting-database): Fix ambiguous doc string
cross-reference(s).
* lisp/ps-print.el (ps-even-or-odd-pages, ps-spool-buffer-with-faces)
(ps-n-up-filling-database): Fix ambiguous doc string
cross-reference(s).
* lisp/server.el (server-buffer, server-log): Fix ambiguous doc string
cross-reference(s).
* lisp/simple.el (newline, delete-backward-char, delete-forward-char)
(minibuffer-history-isearch-message, kill-line, track-eol)
(temporary-goal-column): Fix ambiguous doc string
cross-reference(s).
* lisp/whitespace.el (whitespace-point)
(whitespace-font-lock-refontify, whitespace-bob-marker)
(whitespace-eob-marker): Fix ambiguous doc string
cross-reference(s).
* lisp/calc/calc.el (calc-highlight-selections-with-faces)
(calc-dispatch): Fix ambiguous doc string cross-reference(s).
* lisp/emacs-lisp/edebug.el (edebug-read, edebug-eval-defun): Fix
ambiguous doc string cross-reference(s).
* lisp/gnus/gnus-start.el (gnus-check-new-newsgroups): Fix ambiguous doc string
cross-reference(s).
* lisp/gnus/gnus-sum.el (gnus-summary-newsgroup-prefix): Fix ambiguous doc string
cross-reference(s).
* lisp/international/mule.el (add-to-coding-system-list): Fix ambiguous
doc string cross-reference(s).
* lisp/progmodes/cc-fonts.el (c-font-lock-keywords-3)
(c++-font-lock-keywords-3, objc-font-lock-keywords-3)
(java-font-lock-keywords-3, idl-font-lock-keywords-3)
(pike-font-lock-keywords-3): Fix ambiguous doc string
cross-reference(s).
* lisp/progmodes/compile.el (compile): Fix ambiguous doc string
cross-reference(s).
* lisp/progmodes/etags.el (tags-table-files)
(tags-table-files-function, tags-included-tables-function): Fix
ambiguous doc string cross-reference(s).
* lisp/progmodes/gdb-mi.el (gdb, gdb-setup-windows)
(gdb-restore-windows): Fix ambiguous doc string
cross-reference(s).
* lisp/textmodes/flyspell.el (flyspell-mark-duplications-flag)
(flyspell-default-deplacement-commands): Fix ambiguous doc string
cross-reference(s).
* lisp/textmodes/ispell.el (ispell-accept-output): Fix ambiguous doc
string cross-reference(s).
* lisp/textmodes/sgml-mode.el (html-tag-help): Fix ambiguous doc string
cross-reference(s).
* lisp/vc/compare-w.el (compare-ignore-whitespace)
(compare-ignore-case, compare-windows-dehighlight): Fix ambiguous
doc string cross-reference(s).
* lisp/vc/diff.el (diff): Fix ambiguous doc string cross-reference(s).
* src/insdel.c (Fcombine_after_change_execute, syms_of_insdel): Fix
ambiguous doc string cross-reference(s).
* src/keyboard.c (Fcommand_execute, syms_of_keyboard): Fix ambiguous
doc string cross-reference(s).
* src/window.c (Fwindow_point, syms_of_window): Fix ambiguous doc
string cross-reference(s).
Fixes: debbugs:12686
2013-01-11 18:08:55 -05:00
Stefan Monnier
ab7c80f1b8
*** empty log message ***
2013-01-11 18:03:04 -05:00
Dmitry Antipov
30818a239e
Use point-max-marker and point-min-marker here and there.
...
* lisp/emacs-lisp/ert.el (ert-run-test): Use point-max-marker.
* lisp/erc/erc-dcc.el (erc-dcc-chat-setup): Likewise.
* lisp/gnus/gnus-async.el (gnus-async-article-callback): Likewise.
* lisp/erc/erc-dcc.el (erc-dcc-send-file): Use point-min-marker.
* lisp/gnus/gnus-art.el (gnus-mime-display-security): Use point-min-marker
and point-max-marker.
2013-01-11 14:40:54 +04:00
Stefan Monnier
3f9549e874
Merge from emacs-24
2013-01-09 22:43:02 -05:00
Roland Winkler
b14abca947
* lisp/emacs-lisp/crm.el: Allow any regexp for separators.
...
(crm-default-separator): All spaces around the default comma separator.
(crm--completion-command): New macro.
(crm-completion-help, crm-complete, crm-complete-word): Use it.
(crm-complete-and-exit): Handle non-single-char separators.
2013-01-09 21:45:31 -05:00
Glenn Morris
3c855b96ba
authors.el tiny updates
...
* lisp/emacs-lisp/authors.el (authors-ignored-files)
(authors-valid-file-names, authors-renamed-files-alist):
Add some more entries.
2013-01-09 18:30:06 -08:00
Glenn Morris
fb9f714667
Merge from emacs-24; up to 2012-12-08T12:11:29Z!eliz@gnu.org
2013-01-09 00:30:21 -08:00
Glenn Morris
9d4a179053
Remove some obsolete trace.el commentary
2013-01-08 20:01:57 -08:00
Glenn Morris
c5ad92de10
* emacs-lisp/trace.el (trace-function, trace-function-background): Doc fix.
2013-01-08 19:59:10 -08:00
Stefan Monnier
4bdc352611
* lisp/emacs-lisp/pcase.el (pcase--split-equal): Also take advantage if
...
the predicate returns nil.
2013-01-08 17:26:21 -05:00
Stefan Monnier
a731fc1bb0
* lisp/emacs-lisp/nadvice.el (advice--tweak): New function.
...
(advice--remove-function, advice--subst-main): Use it.
* lisp/emacs-lisp/advice.el: Update commentary.
2013-01-08 10:24:56 -05:00
Stefan Monnier
4986fa2175
* lisp/emacs-lisp/advice.el (ad-activate-advised-definition): Refresh the
...
advice list when the interactive-spec of ad-Advice-* changes.
2013-01-07 13:03:01 -05:00
Glenn Morris
0a8bf3afca
Merge from emacs-24; up to 2012-12-06T07:33:20Z!rgm@gnu.org
2013-01-02 18:37:57 -08:00
Glenn Morris
ad235a8b88
defun fix for cl declarations + interactive forms
...
* lisp/emacs-lisp/byte-run.el (defun):
Place cl declarations after any interactive spec.
Fixes: debbugs:13265
2013-01-02 16:43:46 -08:00
Paul Eggert
09b8afb6c8
Update copyright dates to 2013.
2013-01-02 08:30:50 -08:00
Paul Eggert
0877d0dc24
Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca
2013-01-02 08:13:04 -08:00
Glenn Morris
d8fb8cce84
Auto-commit of loaddefs files.
2013-01-01 07:22:35 -05:00
Paul Eggert
ab422c4d68
Update copyright notices for 2013.
2013-01-01 09:11:05 +00:00
Andreas Schwab
5cebef2d18
* emacs-lisp/byte-run.el (defmacro): Use same argument parsing as
...
defun. Don't check for DECL if DOCSTRING isn't a string.
(defun): Likewise.
2012-12-31 22:53:33 +01:00
Andreas Schwab
bdcad781aa
Fixes: debbugs:13316
...
* emacs-lisp/byte-run.el (defmacro): Don't lose final nil if
neither DOCSTRING nor DECL was given.
2012-12-31 20:15:32 +01:00
Glenn Morris
d5e5e7b411
Merge from emacs-24; up to 2012-12-05T00:13:56Z!yamaoka@jpl.org
2012-12-30 10:09:01 -08:00
Chong Yidong
3c94d7a636
* emacs-lisp/package.el (package-untar-buffer): Improve integrity check for tarball contents.
2012-12-29 19:06:10 +08:00
Matt Fidler
af39894ab4
* emacs-lisp/package.el (package-untar-buffer): Handle problematic tarfile content listings.
...
Fixes: debbugs:13136
2012-12-29 18:26:14 +08:00
Jonas Bernoulli
ee3c0aeca4
* lisp/emacs-lisp/lisp-mnt.el (lm-section-end): Always end before the
...
following non-comment text.
(lm-header-multiline): Continuation lines need to be indented more than
the first line.
(lm-homepage): New function.
(lm-with-file): Don't be confused if narrowing is in effect.
* doc/lispref/tips.texi (Library Headers): New header keyword `Homepage'.
Make continuation lines syntax more precise.
Fixes: debbugs:13207
2012-12-19 14:51:40 -05:00