1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 15:21:46 +00:00
Commit Graph

55973 Commits

Author SHA1 Message Date
Katsumi Yamaoka
ec9d4b084a nnspool.el (news-path): Use eval-and-compile 2012-05-25 06:43:29 +00:00
Juri Linkov
bc1b21bb4e Use the same diff color scheme as in modern VCSes (bug#10181).
* lisp/vc/diff-mode.el (diff-header, diff-file-header): Remove "green"
to avoid confusion with `diff-added' that now uses green colors.
(diff-removed): Use shades of red.
(diff-added): Use shades of green.
(diff-changed): Leave just the yellow color.
(diff-use-changed-face): New variable.
(diff-font-lock-keywords): Use `diff-use-changed-face' to decide
how to highlight context diff changes.
(diff-refine-change): Use shades of yellow.
(diff-refine-removed): New face that uses shades of red.
(diff-refine-added): New face that uses shades of green.
(diff-refine-hunk): Use `diff-refine-change', `diff-refine-added',
`diff-refine-removed' in the call to `smerge-refine-subst'
depending on the value of `diff-use-changed-face'.

* lisp/vc/ediff-init.el (ediff-current-diff-A, ediff-fine-diff-A):
Add face condition `min-colors 88' with shades of red.
(ediff-current-diff-B, ediff-fine-diff-B): Add face condition
`min-colors 88' with shades of green.
(ediff-current-diff-C, ediff-fine-diff-C): Add face condition
`min-colors 88' with shades of yellow.

* lisp/vc/smerge-mode.el (smerge-mine): Use shades of red.
(smerge-other): Use shades of green.
(smerge-base): Use shades of yellow.
(smerge-refined-change): Empty face.
(smerge-refined-removed): New face that uses shades of red.
(smerge-refined-added): New face that uses shades of green.
(smerge-refine-subst): Rename arg `props' to `props-c'.  Add new
args `props-r' and `props-a', and use them.  Doc fix.
(smerge-refine): Evaluate `smerge-use-changed-face' and depending
on its value use different faces `smerge-refined-change',
`smerge-refined-removed', `smerge-refined-added' in the call to
`smerge-refine-subst'.
2012-05-25 03:55:40 +03:00
Glenn Morris
532f361c96 Fix previous (slogin and rlogin not appropriate for remote-shell-program) 2012-05-24 17:27:22 -04:00
Glenn Morris
ead5edc086 Move prune-directory-list, remote-shell-program from paths.el to files.el
* lisp/paths.el (prune-directory-list, remote-shell-program): Move to ...
* lisp/files.el (prune-directory-list, remote-shell-program): ...here.
For the latter, delay initialization, prefer ssh, just search PATH.
2012-05-24 16:40:19 -04:00
Glenn Morris
f18b81e6d6 * lisp/paths.el (term-file-prefix): Move to lisp/faces.el (the only user).
* faces.el (term-file-prefix): Move here, make it a defcustom.
2012-05-24 00:53:21 -07:00
Glenn Morris
ee2f89a665 * paths.el (news-inews-program): Move to gnus/nnspool.el.
* gnus/nnspool.el (news-inews-program): Move here from paths.el.
Don't see a need for this to be autoloaded.  (Or even to exist; it is
only used to init another variable.)
2012-05-24 00:31:45 -07:00
Glenn Morris
61a583cade * paths.el (news-directory, news-path): Move to gnus/nnspool.el.
* gnus/nnspool.el (news-directory, news-path): Move here from paths.el.
Don't see a need for these to be autoloaded.  This file is the only
place that uses them, to init another variable.
2012-05-24 00:27:24 -07:00
Glenn Morris
98e15937be Add missing autload pieces needed for rmail-spool-directory's delayed init 2012-05-24 00:20:34 -07:00
Glenn Morris
f8815e4c9b No need to define gnus-default-nntp-server in paths.el
Don't see a need for this to be autoloaded, since it is only used in
gnus.el (in one place, as a fallback).  Maybe it should be obsolete?

* paths.el (gnus-default-nntp-server): Remove (gnus.el defines it).

* gnus/gnus.el (gnus-default-nntp-server): Make it a defcustom.
Merge in doc from paths.el version.
2012-05-24 00:11:19 -07:00
Glenn Morris
c8f3b42c71 Move some rmail variables from paths.el to rmail.el
Ref eg
http://lists.gnu.org/archive/html/emacs-devel/2004-10/msg00620.html

* paths.el (rmail-file-name, rmail-spool-directory): Move from here...
* mail/rmail.el (rmail-file-name, rmail-spool-directory): ... to here.
Make the latter a defcustom, with a delayed initialization.
2012-05-23 23:53:08 -07:00
Glenn Morris
6df9112c19 * paths.el (gnus-nntp-service, gnus-local-organization): Remove.
These were deleted from Gnus itself late 2010.
2012-05-23 23:42:26 -07:00
Glenn Morris
1d94303ab3 Do not set a local value for version-control in version.el
There's no reason to; this file isn't auto-generated or anything like
that.
2012-05-23 23:38:41 -07:00
Juanma Barranquero
bd7239f542 Fix ChangeLog typos. 2012-05-22 20:31:19 +02:00
Juanma Barranquero
9e1701c68b lisp/progmodes/which-func.el (which-func-ff-hook): Check against user-error. 2012-05-22 18:50:02 +02:00
Juanma Barranquero
5dadff364e lisp/emacs-lisp/edebug.el: Do not load cl-specs.el. 2012-05-22 18:45:44 +02:00
Glenn Morris
cb1f695c73 Missing piece of previous change 2012-05-21 20:38:10 -07:00
Glenn Morris
3290526dde Add "How to Report a Bug" to Help menu
* lisp/info.el (info-emacs-bug): New command.
* lisp/menu-bar.el (menu-bar-help-menu): Add "How to Report a Bug" to Help.
* lisp/mail/emacsbug.el (report-emacs-bug): Replace with info-emacs-bug.
2012-05-21 20:31:34 -07:00
Glenn Morris
ff0c3cfb2f * update-subdirs: Move to build-aux/.
* make-dist:
* Makefile.in (install-arch-indep):
* lisp/Makefile.in (update-subdirs):
* lisp/makefile.w32-in (update-subdirs-SH):
Update for this change.
2012-05-21 16:40:55 -04:00
Stefan Monnier
a52c0aa070 * lisp/hi-lock.el (hi-lock-face-defaults): Move obsolete before definition. 2012-05-21 00:33:54 -04:00
Stefan Monnier
5814f126ba * lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Simplify Maven regexp, and make sure the file can't start with a space.

Fixes: debbugs:11517
2012-05-21 00:28:41 -04:00
Glenn Morris
b847032c75 Command substitution already runs in a subshell
* Makefile.in (install-arch-indep, install-doc, install-info, uninstall):
* leim/Makefile.in (leim-list.el, install):
* lib-src/Makefile.in (insrcdir, $(DESTDIR)${archlibdir}):
* lisp/Makefile.in (setwins, setwins_almost, setwins_for_subdirs):
* test/automated/Makefile.in (setwins):
Scrap superfluous subshells.
2012-05-20 17:44:34 -07:00
Stefan Monnier
3858bfe7c9 * lisp/emacs-lisp/bytecomp.el (byte-compile-root-dir): New var.
(byte-compile-warning-prefix, batch-byte-compile-file): Use it.
2012-05-19 14:28:32 -04:00
Jay Belanger
76bc2ec7dc * calc/calc-units.el (math-consistent-units-p): Accept unit systems
as consistent units.
2012-05-19 09:59:47 -05:00
Jay Belanger
6b38973b8e * calc/calc-units.el (calc-quick-units): Use the proper units expression. 2012-05-18 22:11:09 -05:00
Jay Belanger
cd3466e6a5 * calc/calc-units.el (calc-ensure-consistent-units): Declare. 2012-05-18 22:03:35 -05:00
Jay Belanger
d14b00297f * calc/calc.el (calc-ensure-consistent-units): New variable.
* calc/calc-units.el (math-consistent-units-p, math-check-unit-consistency):
  New functions.
  (calc-quick-units, calc-convert-units): Use `math-check-unit-consistency' when 
  `calc-ensure-consistent-units' is non-nil. 
  (calc-extract-units): Fix typo.

* doc/misc/calc.texi
  (Basic Operations on Units, Customizing Calc):
  Mention `calc-ensure-consistent-units'.
2012-05-18 22:00:48 -05:00
Stefan Monnier
77f3b62eca * lisp/vc/vc-bzr.el (vc-bzr-state-heuristic): Save match-data around sha1. 2012-05-18 16:38:37 -04:00
Stefan Monnier
60c4db3a60 * lisp/textmodes/flyspell.el: Commenting style, plus code simplifications.
(flyspell-default-deplacement-commands): Don't spell check after
repeated window/frame switches (e.g. triggered by mouse-movement).
(flyspell-delay-commands, flyspell-deplacement-commands): Use mapc.
(flyspell-debug-signal-word-checked): Simplify and fit in 80 cols.
(flyspell-casechars-cache, flyspell-ispell-casechars-cache)
(flyspell-not-casechars-cache, flyspell-ispell-not-casechars-cache):
Remove unused vars.
(flyspell-get-casechars, flyspell-get-not-casechars):
Simplify; Don't bother removing a ] just to add it back.
* lisp/textmodes/ispell.el (ispell-program-name): Use executable-find.
2012-05-18 15:04:07 -04:00
Rüdiger Sonderfeld
b1a1071666 calc/calc-lang.el (math-C-parse-bess, math-C-parse-fma): New functions.
(math-function-table):  Add support for more C functions.
2012-05-18 10:16:23 -05:00
Agustín Martín
80a511622c textmodes/flyspell.el: Minor change over last 2012-05-18T07:04:04Z!agustin.martin@hispalinux.es change. Use ispell-otherchars variable.
Use ispell-otherchars variable rather than (ispell-get-otherchars).
2012-05-18 09:36:09 +02:00
Agustín Martín
3f1b25b580 textmodes/flyspell.el: Protect delay handling for otherchars against empty otherchars.
(flyspell-check-pre-word-p, flyspell-check-word-p,flyspell-debug-signal-word-checked)
2012-05-18 09:04:04 +02:00
Stefan Monnier
5a1ae34e60 Refresh ldefs-boot. 2012-05-17 21:48:05 -04:00
Stefan Monnier
b581bb5c8a * lisp/emacs-lisp/lisp-mode.el (doc-string-elt): Move those properties to
their respective macro declarations.
* lisp/skeleton.el (define-skeleton):
* lisp/progmodes/compile.el (define-compilation-mode):
* lisp/ibuf-macs.el (define-ibuffer-sorter, define-ibuffer-op)
(define-ibuffer-filter):
* lisp/emacs-lisp/generic.el (define-generic-mode):
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode)
(define-globalized-minor-mode):
* lisp/emacs-lisp/cl-macs.el (defun*, defmacro*, defstruct, deftype):
* lisp/emacs-lisp/byte-run.el (defsubst):
* lisp/custom.el (deftheme): Add doc-string metadata.
2012-05-17 21:46:20 -04:00
Stefan Monnier
70b8ef8f78 * lisp/emacs-lisp/cl-macs.el, lisp/emacs-lisp/cl.el: Move indent info. 2012-05-17 17:51:15 -04:00
Stefan Monnier
9abdc45d8a * lisp/emacs-lisp/pcase.el (pcase--u1): Avoid ((lambda ...) ...). 2012-05-17 17:40:47 -04:00
Stefan Monnier
b1198e177f * lisp/emacs-lisp/cl.el: Add edebug specs from cl-specs.el.
* lisp/emacs-lisp/cl-macs.el: Idem.
* lisp/emacs-lisp/cl-specs.el: Remove.
2012-05-17 17:39:36 -04:00
Stefan Monnier
4735906a03 Minor renaming of internal CL functions and variables.
* lisp/emacs-lisp/cl-seq.el (cl--adjoin): Rename from cl-adjoin.
(cl--position): Rename from cl-position.
(cl--delete-duplicates): Rename from cl-delete-duplicates.
* lisp/emacs-lisp/cl.el (cl--gensym-counter): Rename from *gensym-counter*.
(cl--random-state): Rename from *random-state*.
2012-05-17 16:04:56 -04:00
Stefan Monnier
ac348012f4 * lisp/emacs-lisp/cl-macs.el (cl-transform-lambda): Don't add spurious
parens around the arg list.

Fixes: debbugs:11499
2012-05-17 11:15:51 -04:00
Juri Linkov
a0a79cde7c Move word search functions from search.c to isearch.el (bug#10145, bug#11381).
* lisp/isearch.el (word-search-regexp, word-search-backward)
(word-search-forward, word-search-backward-lax)
(word-search-forward-lax): Move functions from search.c.

* src/search.c (Fword_search_regexp, Fword_search_backward)
(Fword_search_forward, Fword_search_backward_lax)
(Fword_search_forward_lax): Move functions to isearch.el.
2012-05-17 03:03:49 +03:00
Agustín Martín
65034a51d6 textmodes/flyspell.el: Delay for otherchars as for normal word components.
(flyspell-check-pre-word-p, 
 flyspell-check-word-p, 
 flyspell-debug-signal-word-checked): 

Use for otherchars the same delay used for other word components, so word
is not inmediately checked unless we are in a char that is neither a normal
word component nor an otherchar.
2012-05-16 10:35:11 +02:00
Stefan Monnier
1a72a195d0 * lisp/minibuffer.el (completion--sifn-requote): Fix last change.
(minibuffer-local-must-match-filename-map):
Move define-obsolete-variable-alias before its var.
2012-05-15 21:57:20 -04:00
Stefan Monnier
c41045e6f2 * lisp/emacs-lisp/pcase.el (pcase-let*, pcase-let): Fix edebug spec. 2012-05-15 14:45:27 -04:00
Stefan Monnier
036dfb8b56 * lisp/minibuffer.el (completion--sifn-requote): Handle sifn's truncation
behavior.
(completion--string-equal-p): New function.
(completion--twq-all): Use it to get better assertion failure data.
2012-05-15 14:07:36 -04:00
Stefan Monnier
2473256d7b Only handle ".." and '..' quoting in shell-mode.
* lisp/shell.el (shell--unquote&requote-argument, shell--unquote-argument)
(shell--requote-argument): New functions.
(shell-completion-vars): Use them.
(shell--parse-pcomplete-arguments): Rename from
shell-parse-pcomplete-arguments.
* lisp/comint.el (comint-word): Obey comint-file-name-quote-list.  Simplify.
(comint--unquote&requote-argument): Don't handle ".." and '..' quoting.
Obey comint-file-name-quote-list.

Fixes: debbugs:11466
2012-05-15 12:58:35 -04:00
Stefan Monnier
fdb058c228 * lisp/emacs-lisp/smie.el (smie-indent--bolp-1): New function.
(smie-indent-keyword): Use it.
2012-05-15 09:25:03 -04:00
Ted Zlatanov
4f0f72be56 mention bug#8706 in the last url-util.el ChangeLog entry 2012-05-15 04:53:49 -04:00
Ted Zlatanov
530e968e58 add url-build-query-string and improve url-parse-query-string as per bug#8706
* url/url-util.el (url-build-query-string): New function.
(url-parse-query-string): Allow that '=' is not required and split
URL parameters on ';', not just '&'.
2012-05-15 04:47:38 -04:00
Stefan Merten
3a427266b6 (rst-re-alist): Fix loading (bug#11462). 2012-05-14 22:39:14 +02:00
Glenn Morris
2f4cadd1da ChangeLog merge fixes 2012-05-14 09:11:24 -07:00
Julien Danjou
d372248073 Fix a regression in erc-dcc
* erc-dcc.el (erc-dcc-handle-ctcp-send): Fix a regression
introduced on 2011-11-28 when fixing quoted filenames matching,
the regex group was not corrected.
2012-05-14 17:42:23 +02:00