1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
Commit graph

56467 commits

Author SHA1 Message Date
Eli Zaretskii
56bc1586ea Fix byte-recompile-directory.
lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Use cl-incf,
 not incf.
2012-07-12 14:33:55 +03:00
Glenn Morris
222fbb8bc9 Auto-commit of loaddefs files. 2012-07-12 06:20:34 -04:00
Stefan Monnier
a464a6c73a More CL cleanups and reduction of use of cl.el.
* woman.el, winner.el, vc/vc-rcs.el, vc/vc-hooks.el, vc/vc-hg.el:
* vc/vc-git.el, vc/vc-dir.el, vc/vc-bzr.el, vc/vc-annotate.el:
* textmodes/tex-mode.el, textmodes/sgml-mode.el, tar-mode.el:
* strokes.el, ses.el, server.el, progmodes/js.el, progmodes/gdb-mi.el:
* progmodes/flymake.el, progmodes/ebrowse.el, progmodes/compile.el:
* play/tetris.el, play/snake.el, play/pong.el, play/landmark.el:
* play/hanoi.el, play/decipher.el, play/5x5.el, nxml/nxml-mode.el:
* net/secrets.el, net/quickurl.el, midnight.el, mail/footnote.el:
* image-dired.el, ibuffer.el, ibuf-macs.el, ibuf-ext.el, hexl.el:
* eshell/eshell.el, eshell/esh-io.el, eshell/esh-ext.el:
* eshell/esh-cmd.el, eshell/em-ls.el, eshell/em-hist.el:
* eshell/em-cmpl.el, eshell/em-banner.el:
* url/url.el, url/url-queue.el, url/url-parse.el, url/url-http.el:
* url/url-future.el, url/url-dav.el, url/url-cookie.el:
* calendar/parse-time.el, test/eshell.el: Use cl-lib.
* wid-browse.el, wdired.el, vc/vc.el, vc/vc-mtn.el, vc/vc-cvs.el:
* vc/vc-arch.el, tree-widget.el, textmodes/texinfo.el:
* textmodes/refill.el, textmodes/css-mode.el, term/tvi970.el:
* term/ns-win.el, term.el, shell.el, ps-samp.el:
* progmodes/perl-mode.el, progmodes/pascal.el, progmodes/gud.el:
* progmodes/glasses.el, progmodes/etags.el, progmodes/cwarn.el:
* play/gamegrid.el, play/bubbles.el, novice.el, notifications.el:
* net/zeroconf.el, net/xesam.el, net/snmp-mode.el, net/mairix.el:
* net/ldap.el, net/eudc.el, net/browse-url.el, man.el:
* mail/mailheader.el, mail/feedmail.el:
* url/url-util.el, url/url-privacy.el, url/url-nfs.el, url/url-misc.el:
* url/url-methods.el, url/url-gw.el, url/url-file.el, url/url-expand.el:
Dont use CL.
* ibuf-ext.el (ibuffer-mark-old-buffers): Use float-time.
* eshell/esh-opt.el (eshell-eval-using-options): Quote code with
`lambda' rather than with `quote'.
(eshell-do-opt): Adjust accordingly.
(eshell-process-option): Simplify.
* eshell/esh-var.el:
* eshell/em-script.el: Require `esh-opt' for eshell-eval-using-options.
* emacs-pcase.el (pcase--dontcare-upats, pcase--let*)
(pcase--expand, pcase--u1): Rename pcase's internal `dontcare' pattern
to `pcase--dontcare'.
* emacs-cl.el (labels): Mark obsolete.
(cl--letf, letf): Move to cl-lib.
(cl--letf*, letf*): Remove.
* emacs-cl-lib.el (cl-nth-value): Use defalias.
* emacs-cl-macs.el (cl-dolist, cl-dotimes): Add indent rule.
(cl-progv): Rewrite.
(cl--letf, cl-letf): Move from cl.el.
(cl-letf*): New macro.
* emacs-cl-extra.el (cl--progv-before, cl--progv-after): Remove.
2012-07-11 19:13:41 -04:00
Michael Albinus
7ad4afe1f5 * net/ange-ftp.el (ange-ftp-cf1): Update the files cache. 2012-07-11 14:03:19 +02:00
Chong Yidong
9af577566a Allow use of vc-root-* commands in *vc-log* buffers.
* lisp/vc/log-edit.el (log-edit-vc-backend): New variable.
(log-edit): Doc fix.

* lisp/vc/log-view.el (log-view-vc-fileset, log-view-vc-backend): Doc fix.

* lisp/vc/vc-dispatcher.el (vc-log-edit): New args.  Use PARAMS
argument of log-edit to set up all local variables.
(vc-start-logentry): New optional arg specifying VC backend.

* lisp/vc/vc.el (vc-checkin): Use it.
(vc-deduce-fileset): Handle Log Edit buffers.
(vc-diff): Make first argument optional too.
2012-07-11 12:35:13 +08:00
Michael Albinus
8477cc7a0a * eshell/esh-ext.el (eshell-remote-command): Remove remote part of
command, just in case.  The function is not needed anymore.
(eshell-external-command): Do not call `eshell-remote-command'
2012-07-10 14:16:40 +02:00
Stefan Monnier
f58e0fd503 Reduce use of (require 'cl).
* admin/bzrmerge.el: Use cl-lib.
* leim/quail/hangul.el: Don't require CL.
* leim/quail/ipa.el: Use cl-lib.
* vc/smerge-mode.el, vc/pcvs.el, vc/pcvs-util.el, vc/pcvs-info.el:
* vc/diff-mode.el, vc/cvs-status.el, uniquify.el, scroll-bar.el:
* register.el, progmodes/sh-script.el, net/gnutls.el, net/dbus.el:
* msb.el, mpc.el, minibuffer.el, international/ucs-normalize.el:
* international/quail.el, info-xref.el, imenu.el, image-mode.el:
* font-lock.el, filesets.el, edmacro.el, doc-view.el, bookmark.el:
* battery.el, avoid.el, abbrev.el: Use cl-lib.
* vc/pcvs-parse.el, vc/pcvs-defs.el, vc/log-view.el, vc/log-edit.el:
* vc/diff.el, simple.el, pcomplete.el, lpr.el, comint.el, loadhist.el:
* jit-lock.el, international/iso-ascii.el, info.el, frame.el, bs.el:
* emulation/crisp.el, electric.el, dired.el, cus-dep.el, composite.el:
* calculator.el, autorevert.el, apropos.el: Don't require CL.
* emacs-bytecomp.el (byte-recompile-directory, display-call-tree)
(byte-compile-unfold-bcf, byte-compile-check-variable):
* emacs-byte-opt.el (byte-compile-trueconstp)
(byte-compile-nilconstp):
* emacs-autoload.el (make-autoload): Use pcase.
* face-remap.el (text-scale-adjust): Simplify pcase patterns.
2012-07-10 07:51:54 -04:00
Stefan Monnier
2519d43af2 * lisp/emacs-lisp/gv.el (cond): Make it a valid place.
(if): Simplify slightly.
2012-07-10 07:27:27 -04:00
Stefan Monnier
19faa8e853 * lisp/emacs-lisp/pcase.el (pcase): Accept self-quoting exps as "upatterns".
(pcase--self-quoting-p): New function.
(pcase--u1): Use it.
2012-07-10 05:26:04 -04:00
Glenn Morris
c4907a5e00 authors.el update for configure.ac renaming
* lisp/emacs-lisp/authors.el (authors-fixed-entries):
(authors-renamed-files-alist): Update for configure.in -> configure.ac.
2012-07-09 21:11:08 -04:00
Andreas Schwab
b33da87cd1 * ede/project-am.el: Fix typo. 2012-07-10 00:30:01 +02:00
Gnus developers
59aadc36c3 gnus-sum.el: Merge changes made in Gnus master
2012-07-09 Tassilo Horn <tassilo@member.fsf.org>
* gnus-sum.el (gnus-summary-limit-to-author): Use default value instead
  of initial input when reading the author to restrict the summary to.
2012-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-sum.el (gnus-select-newsgroup): Don't assume that the group
  buffer exists, which it doesn't if we haven't started Gnus.
2012-07-09 22:12:19 +00:00
Paul Eggert
c4444d16dc Rename configure.in to configure.ac.
Fixes: debbugs:11603
2012-07-08 21:52:49 -07:00
Katsumi Yamaoka
b50e511206 mm-decode.el (mm-shr): Allow overriding charset by mm-charset-override-alist 2012-07-09 02:13:07 +00:00
Chong Yidong
01ac65bd7c Fix interaction of line-dragging with mouse-1-click-follows-link.
* lisp/mouse.el (mouse-drag-line): Rewrite the track-mouse loop.
Implement the mouse-1-click-follows-link handling properly.

* lisp/info.el (Info-link-keymap): Use follow-link mechanism for
header-line links.

Fixes: debbugs:374
2012-07-08 16:26:21 +08:00
Chong Yidong
d75be97d54 Do not steal primary selection on mark deactivation.
* lisp/simple.el (deactivate-mark): Do not set the primary selection
if another program has acquired it.

Fixes: debbugs:11772
2012-07-08 14:09:21 +08:00
Juanma Barranquero
090bd7cb34 Fix ChangeLog typos. 2012-07-08 01:16:19 +02:00
Kevin Ryde
87a92845e7 * woman.el (woman2-process-escapes): Handle nofill regions.
Fixes: debbugs:11591
2012-07-07 18:10:47 +08:00
Kevin Ryde
f0ecdfeaae * woman.el (woman-strings): Fix double-quote handling.
(woman-decode-region): Replace escaped-escapes without destroying
bold or underline.

Fixes: debbugs:1151
2012-07-07 18:06:38 +08:00
Chong Yidong
621b9d6c7e * lisp/simple.el (yank-pop-change-selection): Doc fix.
(interprogram-cut-function, interprogram-paste-function): Mention
that we typically mean the clipboard.

Fixes: debbugs:11361
2012-07-07 17:33:28 +08:00
Glenn Morris
0d27a45e58 * lisp/kmacro.el (kmacro-call-macro): Restore repeat message. (Bug#11817) 2012-07-06 17:34:49 -04:00
Glenn Morris
133a11fc59 * lisp/files.el (toggle-read-only): Restrict message to interactive use. 2012-07-06 15:06:54 -04:00
Michael Albinus
07b151f1bc * net/tramp.el (tramp-restricted-shell-hosts-alist): New defcustom.
* net/tramp-sh.el (tramp-maybe-open-connection): Handle it.
2012-07-06 15:16:13 +02:00
Glenn Morris
97671cbb3c Comment tweak 2012-07-06 00:45:23 -07:00
Glenn Morris
a358bac20f * lisp/Makefile.in: Comment 2012-07-06 00:29:43 -07:00
Glenn Morris
938d1f57c3 Move a comment from lisp/Makefile.in to lisp/loadup.el.
The comment in Makefile.in has been orphaned ever since
the bootstrap-prepare rule was removed in 2008.
2012-07-06 00:23:25 -07:00
Glenn Morris
50394322c5 * lisp/Makefile.in (compile-one-process): Rename from "recompile". 2012-07-06 00:08:10 -07:00
Glenn Morris
211b896bb0 * lisp/Makefile.in (bzr-update): Use "compile".
It is the same as "recompile autoloads", but parallelizable.
2012-07-06 00:06:13 -07:00
Dmitry Gutov
4737eec9d7 In quit-window always restore window height when it's saved in
quit-restore parameter.

* window.el (quit-window): Always restore window height when
it's saved in quit-restore parameter.
2012-07-06 08:22:56 +02:00
Chong Yidong
226c3633fd Merge from emacs-24; up to 2012-05-01T00:16:02Z!rgm@gnu.org 2012-07-06 12:31:46 +08:00
Glenn Morris
60198fc979 * lisp/Makefile.in (cvs-update): Remove old alias. 2012-07-05 21:31:54 -04:00
Michael Albinus
957b3189e6 Sync with Tramp 2.2.6-pre.
* net/tramp.el (tramp-drop-volume-letter): Provide an XEmacs
compatible declaration.

* net/tramp-cmds.el (tramp-append-tramp-buffers): Protect
`list-load-path-shadows' call.

* net/tramp-compat.el (top): Require packages, which aren't
autoloaded anymore for XEmacs.  Protect call of
`tramp-file-name-handler' by `tramp-compat-funcall', pacifying the
compiler.  Do not require tramp-util.el and tramp-vc.el anymore,
it hurts at least for SXEmacs.
(tramp-compat-temporary-file-directory): In XEmacs, there is no
standard-value for `temporary-file-directory'.

* net/tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat):
Redirect stderr to /dev/null.
(tramp-sh-handle-write-region): uid and gid can be floats.
Reported by Russell Sim <russell.sim@gmail.com>.
(tramp-sh-handle-vc-registered): Hide errors.
(tramp-vc-file-name-handler): Use dummy results for `process-file'
and `start-file-process'.
(tramp-maybe-open-connection): Check also whether `non-essential'
is bound.
2012-07-05 08:57:57 +02:00
Juanma Barranquero
d209e2fb19 Fix ChangeLog typos. 2012-07-04 18:32:54 +02:00
Chong Yidong
566df3fcac Clean up syntax-table usage in xml.el
* xml.el (xml--parse-buffer): Use xml-syntax-table.
(xml-parse-tag): Likewise, and avoid changing entity tables.
(xml-syntax-table): Define from scratch, making sure not to give
x2000 and other Unicode spaces whitespace syntax, since those are
not spaces in XML.
(xml-parse-fragment): Delete unused function.
(xml-name-start-char-re, xml-name-char-re, xml-name-re)
(xml-names-re, xml-nmtoken-re, xml-nmtokens-re, xml-char-ref-re)
(xml-entity-ref, xml-pe-reference-re)
(xml-reference-re,xml-att-value-re, xml-tokenized-type-re)
(xml-notation-type-re, xml-enumeration-re, xml-enumerated-type-re)
(xml-att-type-re, xml-default-decl-re, xml-att-def-re)
(xml-entity-value-re): Use syntax references in regexps where
possible; no need to define inside a let-binding.
(xml-parse-dtd): Use xml-pe-reference-re.
(xml-entity-or-char-ref-re): New defconst.
(xml-parse-string, xml-substitute-special): Use it.
2012-07-05 00:14:05 +08:00
Stefan Monnier
0781098af7 * lisp/files.el (locate-dominating-file): Allow `name' to be a predicate.
(find-file--read-only): New function.
(find-file-read-only, find-file-read-only-other-window)
(find-file-read-only-other-frame): Use it.
(insert-file-contents-literally): Don't `fset'.
(get-free-disk-space): Use locate-dominating-file.
2012-07-04 11:59:12 -04:00
Stefan Monnier
b5771c0d82 * lisp/emacs-lisp/bytecomp.el (byte-compile): Don't signal an error if the
function is already compiled.
2012-07-04 10:42:59 -04:00
Stefan Monnier
30eabd7ad8 * lisp/xml.el (xml-name-regexp): Remove, redundant. Use xml-name-re. 2012-07-03 23:31:34 -04:00
Michael Albinus
b4886f6ece * vc/ediff-diff.el (ediff-same-file-contents): Fix it for remote
files on the same host.
2012-07-03 09:42:31 +02:00
Andreas Schwab
b9d8233998 Fixes: debbugs:11848
* help-fns.el (describe-function-1): Only call
help-fns--autoloaded-p when we have a file name.
2012-07-03 09:12:22 +02:00
Chong Yidong
a76e6535dc * xml.el: Protect parser against XML bombs.
(xml-entity-expansion-limit): New variable.
(xml-parse-string, xml-substitute-special): Use it.
(xml-parse-dtd): Avoid infloop if the DTD is not terminated.

* test/automated/xml-parse-tests.el: Update testcases.
2012-07-03 13:28:42 +08:00
Glenn Morris
b544fef2ac Tweak bug-reference-bug-regexp setting
* lisp/progmodes/bug-reference.el (bug-reference-bug-regexp):
Allow linking to specific messages in debbugs reports (eg 123#5).
2012-07-02 22:16:11 -04:00
Katsumi Yamaoka
71f56da268 gnus-art.el (gnus-article-view-part): Toggle subparts of multipart/alternative part 2012-07-03 00:25:57 +00:00
Glenn Morris
cb4429739a * lisp/simple.el (kill-whole-line): Doc tweak. 2012-07-02 18:42:45 -04:00
Chong Yidong
a7aef6f5c6 * lisp/xml.el: Handle entity and character reference expansion correctly.
(xml-default-ns): New variable.
(xml-entity-alist): Use XML spec definitions for lt and amp.
(xml-parse-region): Make first two arguments optional.  Discard
text properties.
(xml-parse-tag-1): New function, spun off from xml-parse-tag.  All
callers changed.
(xml-parse-tag): Call xml-parse-tag-1.  For backward
compatibility, this function should not modify buffer contents.
(xml-parse-tag-1): Fix opening-tag regexp.
(xml-parse-string): Rewrite, handling entity and character
references properly.
(xml--entity-replacement-text): Signal an error if a parameter
entity is undefined.

* test/automated/xml-parse-tests.el (xml-parse-tests--data): More
testcases.
2012-07-03 00:21:54 +08:00
Stefan Monnier
2b5208f181 * lisp/comint.el (comint-output-filter): Filter out repeated prompts. 2012-07-02 12:18:02 -04:00
Stefan Monnier
3df31c9f8b * lisp/net/ange-ftp.el (ange-ftp-expand-file-name): Use ange-ftp-ftp-name
and file-name-absolute-p.
(ange-ftp-file-exists-p): Use ange-ftp-file-exists-p for
internal calls.
2012-07-02 09:31:15 -04:00
Paul Eggert
e3ac128172 Spelling fixes. 2012-07-02 01:00:05 -07:00
Katsumi Yamaoka
6651c01506 gnus-sync.el: Simply require json
registry.el: Simply require eieio and eieio-base
2012-07-02 00:48:41 +00:00
Eli Zaretskii
93842198fc Fix bug #11827 with file-relative-name on MS-Windows.
lisp/files.el (file-relative-name): Compare file names
 case-insensitively if on MS-Windows or MS-DOS, or if
 read-file-name-completion-ignore-case is non-nil.  Don't use
 case-fold-search for this purpose.
2012-07-01 19:38:53 +03:00
Chong Yidong
6fe566a752 * xml.el (xml-parse-dtd): Use proper regexps for ELEMENT declarations.
* test/automated/xml-parse-tests.el: Update testcase.

Fixes: debbugs:7172
2012-07-01 19:05:17 +08:00