1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00
Commit Graph

56859 Commits

Author SHA1 Message Date
Juri Linkov
826b323577 * lisp/replace.el (replace-lax-whitespace): New defcustom.
(query-replace, query-replace-regexp, query-replace-regexp-eval)
(replace-string, replace-regexp): Mention it in docstrings.
(perform-replace, replace-highlight): Let-bind
isearch-lax-whitespace and isearch-regexp-lax-whitespace according
to the values of replace-lax-whitespace and regexp-flag.
Don't let-bind search-whitespace-regexp. 

* lisp/isearch.el (isearch-query-replace): Let-bind
replace-lax-whitespace instead of let-binding
replace-search-function and replace-re-search-function.
(isearch-lazy-highlight-search): Let-bind isearch-lax-whitespace
and isearch-regexp-lax-whitespace to lazy-highlight variables.
(isearch-toggle-symbol): Set isearch-regexp to nil
in isearch-word mode (like in isearch-toggle-word).

Fixes: debbugs:10885
2012-09-06 11:49:40 +03:00
Juri Linkov
1ec5e41d0e Use isearch-search-fun' in perform-replace' (bug#10885, bug#10887).
* lisp/replace.el (replace-search-function)
(replace-re-search-function): Set default values to nil.
(perform-replace): Let-bind isearch-related variables based on
replace-related values, call `isearch-search-fun' and let-bind
the result to `search-function'.  Remove code that sets
`search-function' and `search-string' separately for
`delimited-flag'.
(replace-highlight): Add new argument `delimited-flag' and
rename other arguments to the names used in `perform-replace'.
Let-bind `isearch-word' to the argument `delimited-flag'.
2012-09-06 11:33:17 +03:00
Katsumi Yamaoka
4fd78b62d1 [Gnus] XEmacs 21.5 compilation fix
* gnus-score.el (gnus-score-decode-text-parts): Use #' for
  mm-text-parts used in labels macro to make it work with XEmacs 21.5.
* gnus-util.el (gnus-string-prefix-p): New function, an alias to
  string-prefix-p in Emacs >=23.2.
* nnmaildir.el (nnmaildir--ensure-suffix, nnmaildir--add-flag)
  (nnmaildir--remove-flag, nnmaildir--scan): Use gnus-string-match-p
  instead of string-match-p.
  (nnmaildir--scan): Use gnus-string-prefix-p instead of string-prefix-p.
2012-09-06 02:20:21 +00:00
Kenichi Handa
fca81a8d40 merge trunk 2012-09-06 10:49:15 +09:00
Kenichi Handa
f41d6f9db6 qp.el (quoted-printable-decode-region): Fix previous change; handle lowercase a..f. 2012-09-06 10:45:33 +09:00
Gnus developers
067b39d429 Merge changes made in Gnus master
2012-09-05  Magnus Henoch  <magnus.henoch@gmail.com>
* nnmaildir.el (nnmaildir--article-set-flags): Fix compilation error.

2012-09-05  Martin Stjernholm  <mast@lysator.liu.se>
* gnus-demon.el (gnus-demon-init): Fixed regression when IDLE is t and
  TIME is set.

2012-09-05  Juri Linkov  <juri@jurta.org>
* gnus-group.el (gnus-read-ephemeral-bug-group): Allow opening more
  than one group at a time (bug#11961).
2012-09-05 22:45:43 +00:00
Gnus developers
350a188850 Merge changes made in Gnus master
2012-09-05 Julien Danjou <julien@danjou.info>
* gnus-srvr.el (gnus-server-open-server): Don't message on failure:
  this hide the real reason with a message giving absolutely no hint.

2012-09-05 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-group.el (gnus-group-mark-article-read): Propagate the read mark
  to the backend (bug#11804).
* message.el (message-insert-newsgroups): Don't insert newsgroup
  duplicates (bug#12275).

2012-09-05 John Wiegley <johnw@newartisans.com>
* gnus.el (gnus-expand-group-parameters): Allow regexp substitutions in
  sieve rules.

2012-09-05 Jan Tatarik <jan.tatarik@gmail.com>
* gnus-score.el (gnus-score-decode-text-parts): Use #' for the local
  function.
* gnus-logic.el (gnus-advanced-body): Allow scoring on decoded bodies.
* gnus-score.el (gnus-score-decode-text-parts): Ditto.

2012-09-05 Magnus Henoch <magnus.henoch@gmail.com>
* nnmaildir.el: Make nnmaildir understand and write maildir flags.
  That is, rename files from "unique:2," to "unique:2,S" for "seen", etc.
  This should make nnmaildir more usable with offlineimap.
2012-09-05 22:35:32 +00:00
Martin Rudalics
ef6544601a Provide support for fitting frames to buffers.
* help.el (temp-buffer-max-height): New default value.
(temp-buffer-resize-frames): New option.
(resize-temp-buffer-window): Optionally resize frame.

* window.el (fit-frame-to-buffer-bottom-margin): New option.
(fit-frame-to-buffer): New function.
2012-09-05 11:22:20 +02:00
Glenn Morris
7e570fbf3e Merge from emacs-24; up to 2012-05-05T02:50:20Z!monnier@iro.umontreal.ca 2012-09-05 00:05:56 -07:00
Glenn Morris
1a1ecd2b14 ChangeLog fixes 2012-09-04 23:56:55 -07:00
Stefan Monnier
972debf2e7 Macro-expand interpreted code during load.
* src/lread.c (readevalloop): Call internal-macroexpand-for-load to perform
eager (load-time) macro-expansion.
* src/lisp.mk (lisp): Add macroexp.
* lisp/loadup.el: Load macroexp.  Remove hack.
* lisp/emacs-lisp/macroexp.el (macroexp--eval-if-compile): New function.
(macroexp--expand-all): Use it to get better warnings.
(macroexp--backtrace, macroexp--trim-backtrace-frame)
(internal-macroexpand-for-load): New functions.
(macroexp--pending-eager-loads): New var.
(emacs-startup-hook): New hack to replace one in loadup.el.
* lisp/emacs-lisp/cl-macs.el (cl--compiler-macro-list*)
(cl--compiler-macro-cXXr): Move to top, before they can be used.
(cl-psetf): Simplify.
(cl-defstruct): Add indent rule.
2012-09-04 13:40:25 -04:00
Lars Ingebrigtsen
8ce192e317 Have smtpmail.el prefer the From: header for the MAIL FROM envelope
* mail/smtpmail.el (smtpmail-send-it): Prefer the From: header
over `user-mail-address' for the SMTP MAIL FROM envelope.
(smtpmail-via-smtp): Ditto.
2012-09-04 18:00:10 +02:00
Dmitry Gutov
6578b4d842 * progmodes/ruby-mode.el: Clean up keybindings (ChangeLog entry). 2012-09-04 08:44:43 +04:00
Dmitry Gutov
4489104fe8 * ruby-mode.el: Clean up keybindings.
(ruby-mode-map): Don't bind ruby-electric-brace,
ruby-beginning-of-defun, ruby-end-of-defun, ruby-mark-defun,
backward-kill-word, reindent-then-newline-and-indent.
(ruby-mark-defun): Remove.
(ruby-electric-brace): Remove.  Obsoleted by electric-indent-chars.
(ruby-mode): Set local beginning-of-defun-function and
end-of-defun-function values.
2012-09-04 08:42:47 +04:00
Lars Ingebrigtsen
8a8507e9b7 [Gnus] Silence XEmacs compilation warnings 2012-09-03 22:12:02 +00:00
Martin Rudalics
c5e28e3927 New macro with-temp-buffer-window and related fixes.
* buffer.c (Fdelete_all_overlays): New function.

* window.el (temp-buffer-window-setup-hook)
(temp-buffer-window-show-hook): New hooks.
(temp-buffer-window-setup, temp-buffer-window-show)
(with-temp-buffer-window): New functions.
(fit-window-to-buffer): Remove unused optional argument
OVERRIDE.
(special-display-popup-frame): Make sure the window used shows
BUFFER.

* help.el (temp-buffer-resize-mode): Fix doc-string.
(resize-temp-buffer-window): New optional argument WINDOW.

* files.el (recover-file, save-buffers-kill-emacs):
* dired.el (dired-mark-pop-up): Use with-temp-buffer-window.
2012-09-03 10:54:25 +02:00
Michael Albinus
7340619402 * eshell/em-unix.el (eshell/sudo): When we have an ad-hoc
remote definition of `default-directory', ensure we can connect.
2012-09-02 11:57:19 +02:00
Juri Linkov
63dd1c6fa4 Toggle whitespace matching mode with M-s SPC.
http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00008.html

* lisp/isearch.el (search-whitespace-regexp): Doc fix.
Remove cons cell customization.
(isearch-mode-map): Bind "\M-s " to isearch-toggle-lax-whitespace.
(isearch-lax-whitespace, isearch-regexp-lax-whitespace):
New variables.
(isearch-forward, isearch-forward-regexp): Doc fix.
(isearch-toggle-lax-whitespace): New command.
(search-forward-lax-whitespace, search-backward-lax-whitespace)
(re-search-forward-lax-whitespace)
(re-search-backward-lax-whitespace): New functions.
(isearch-whitespace-regexp): Remove function.
(isearch-query-replace): Let-bind replace-search-function and
replace-re-search-function.
(isearch-occur): Let-bind search-spaces-regexp according to the
value of isearch-lax-whitespace and isearch-regexp-lax-whitespace.
(isearch-quote-char): Check isearch-regexp-lax-whitespace in the
condition for C-q SPC.
(isearch-search-fun-default): Use new functions mentioned above.
(isearch-search-forward, isearch-search-backward): Remove functions.
(isearch-search): Don't let-bind search-spaces-regexp.
(isearch-lazy-highlight-space-regexp): Remove variable.
(isearch-lazy-highlight-lax-whitespace)
(isearch-lazy-highlight-regexp-lax-whitespace): New variables.
(isearch-lazy-highlight-new-loop): Use them.
(isearch-lazy-highlight-search): Don't let-bind search-spaces-regexp.
2012-09-02 12:31:45 +03:00
Chong Yidong
af7dda05cc * dired.el (dired-mode-map): Menu string fixes.
Fixes: debbugs:11616
2012-09-02 10:47:02 +08:00
Glenn Morris
d67d3afd3a * lisp/simple.el (undo): Tweak message in undo-only case.
Fixes: debbugs:12283
2012-09-01 17:56:03 -07:00
Glenn Morris
69678719ec Tidy up term.el menu handling
* lisp/term.el: (term-mode-map): Use easymenu for In/Out, Complete menus.
(term-pager-break-map): Initialize in the defvar.
(term-terminal-menu, term-signals-menu): Define with easymenu.
(term-terminal-menu): Also show it in line-mode. 
(term-pager-menu): New, extracted from term-process-pager.
(term-mode, term-char-mode, term-process-pager): Use easymenu-add.
(term-update-mode-line): Propertize line/char and page items.
(term-process-pager): Move keymap initialization elsewhere.

Fixes: debbugs:11957
2012-09-01 15:03:06 -07:00
Martin Rudalics
78dd6ab198 Rewrite switch-to-prev-/next-buffer and quit-window; add display-buffer-below-selected.
* window.el (switch-to-prev-buffer): Handle additional values of
BURY-OR-KILL argument.  Don't switch in minibuffer window.
(switch-to-next-buffer): Don't switch in minibuffer window.
(quit-restore-window): New function based on quit-window.
Handle additional values of former KILL argument.
(quit-window): Call quit-restore-window with appropriate
interpretation of KILL argument.
(display-buffer-below-selected): New buffer display action
function.
2012-09-01 18:47:09 +02:00
Glenn Morris
f1220388bc Auto-commit of loaddefs files. 2012-09-01 07:17:44 -04:00
Glenn Morris
25eac50084 Auto-commit of loaddefs files. 2012-09-01 06:20:47 -04:00
Stefan Monnier
3d10e1343d * lisp/minibuffer.el (completion-at-point-functions): Complete docstring.
Fixes: debbugs:12254
2012-09-01 00:28:24 -04:00
Paul Eggert
0e23ef9dde Better seed support for (random).
* doc/lispref/numbers.texi (Random Numbers): Document new behavior of
the calls (random) and (random STRING).
* etc/NEWS: Document new behavior of (random), (random "string").
* lisp/play/5x5.el, lisp/play/animate.el, lisp/play/cookie1.el:
* lisp/play/dissociate.el, lisp/play/doctor.el, lisp/play/dunnet.el:
* lisp/play/gomoku.el, lisp/play/landmark.el, lisp/play/mpuz.el:
* lisp/play/tetris.el, lisp/play/zone.el:
* lisp/calc/calc-comb.el (math-init-random-base):
* lisp/play/blackbox.el (bb-init-board):
* lisp/play/life.el (life):
* lisp/server.el (server-use-tcp):
* lisp/type-break.el (type-break):
Remove unnecessary call to (random t).
* lisp/net/sasl.el (sasl-unique-id-function):
Change (random t) to (random), now that the latter is more random.
* lisp/play/life.el (life-initialized): Remove no-longer-needed var.
* lisp/gnus/gnus-sync.el (gnus-sync-lesync-setup):
* lisp/gnus/message.el (message-canlock-generate, message-unique-id):
Change (random t) to (random), now that the latter is more random.
* lisp/org/org-id.el (org-id-uuid):
Change (random t) to (random), now that the latter is more random.
* src/emacs.c (main): Call init_random.
* src/fns.c (Frandom): Set the seed from a string argument, if given.
Remove long-obsolete Gentzel cruft.
* src/lisp.h, src/sysdep.c (seed_random): Now takes address and size, not long.
(init_random): New function.
2012-08-31 18:04:26 -07:00
Glenn Morris
723088480d Fix right and left key remapping issue (bug#12317)
* lisp/emulation/cua-rect.el (cua--init-rectangles):
* lisp/textmodes/picture.el (picture-mode-map):
* lisp/play/blackbox.el (blackbox-mode-map):
Remap right-char and left-char like forward-char and backward-char.
2012-08-31 13:38:50 -04:00
Martin Rudalics
862382df3d Consider frame's buffer predicate in switch-to-prev-/next-buffer.
* window.el (switch-to-prev-buffer, switch-to-next-buffer):
Consider frame's buffer predicate when choosing the buffer.
(Bug#12081)
2012-08-31 18:51:49 +02:00
Michael Albinus
7b2fbe3b46 * eshell/esh-ext.el: Explain, why we suppress the check in
`eshell-external-command'.
2012-08-31 13:11:06 +02:00
Dave Abrahams
c20643e210 [Gnus] Miscellaneous fixes by Dave Abrahams 2012-08-31 04:39:30 +00:00
Stefan Monnier
e1991423c6 * lisp/gnus/gnus-notifications.el (gnus-notifications-action): Avoid CL-ism. 2012-08-30 20:46:01 -04:00
Julien Danjou
ba7ac1f6e5 gnus-notifications.el: Add defcustom for timeout and actions support 2012-08-30 22:14:27 +00:00
Richard M. Stallman
262a66e138 Delete `z' in special-mode-map. 2012-08-30 13:09:11 -04:00
Kenichi Handa
8b0c72d319 qp.el (quoted-printable-decode-region): Decode multiple bytes at once. 2012-08-30 21:16:38 +09:00
Kenichi Handa
31e7d6e090 merge trunk 2012-08-30 21:07:42 +09:00
Leo Liu
3aca1291d0 Extract "^[wW]arning" into a new var flymake-warning-re 2012-08-30 19:41:40 +08:00
Andreas Schwab
f17e1d00e0 * progmodes/compile.el (compilation-always-kill): Doc fix. 2012-08-30 10:22:24 +02:00
Chong Yidong
247778328b Improve obsolescence message of display-buffer-reuse-frames.
* lisp/window.el (display-buffer-reuse-frames): Make the obsolescence
message more informative.
2012-08-30 11:45:51 +08:00
Glenn Morris
69ba1f0420 * lisp/paren.el (show-paren-delay): Add a :set function. Doc fix. (Bug#12297) 2012-08-29 21:44:11 -04:00
Glenn Morris
b66833534f * holidays.el (holiday-christian-holidays): Rename an entry (bug#12289)
(Not worth a :version bump.)
2012-08-29 21:18:41 -04:00
Julien Danjou
966560123e Add gnus-notifications.el 2012-08-29 22:04:05 +00:00
Stefan Monnier
64f8c4bd61 * lisp/progmodes/sh-script.el (sh-font-lock-paren): Don't burp at BOB.
Fixes: debbugs:12222
2012-08-29 14:33:35 -04:00
Martin Blais
f0019ede63 * lisp/progmodes/compile.el (compilation-always-kill): New var.
(compilation-start): Use it.
2012-08-29 14:15:12 -04:00
Stefan Monnier
af070a1c6a * lisp/simple.el (read-only-mode): Move from lisp/files.el for bootstrapping.
* files.el (read-only-mode): Move to simple.el.
2012-08-29 13:36:49 -04:00
Stefan Monnier
35e62fc984 * lisp/files.el (read-only-mode): New minor mode.
(toggle-read-only): Use it and mark obsolete.
(find-file--read-only):
* lisp/vc/vc.el (vc-next-action, vc-checkout):
* lisp/vc/vc-cvs.el (vc-cvs-checkout):
* lisp/obsolete/vc-mcvs.el (vc-mcvs-update):
* lisp/ffap.el (ffap--toggle-read-only): Update callers.
2012-08-29 11:11:51 -04:00
Michael Albinus
c2c43c2382 * eshell/esh-ext.el (eshell-external-command): Do not examine
remote shell scripts.  See
<https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/1035790>.

* net/tramp-sh.el (tramp-remote-path): Add "/sbin" and
"/usr/local/sbin".
2012-08-29 14:49:44 +02:00
Stefan Monnier
d5e2bcd351 * cl-lib.el (buffer-string): Simplify last change.
Fixes: debbugs:12293
2012-08-28 16:14:21 -04:00
Stefan Monnier
9fba804b9e * lisp/emacs-lisp/cl-lib.el (buffer-string): Fix setter macro.
Fixes: debbugs:12293
2012-08-28 15:35:35 -04:00
Glenn Morris
eada086196 Merge from emacs-24; up to 2012-05-04T19:17:01Z!monnier@iro.umontreal.ca 2012-08-28 09:01:59 -07:00
Kenichi Handa
4eb4de01df merge trunk 2012-08-28 22:44:20 +09:00