1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00
Commit Graph

57710 Commits

Author SHA1 Message Date
Stefan Monnier
ed6f2cd47f * lisp/hi-lock.el (hi-lock--regexps-at-point): Fix boundary case for
font-lock as well as when there's no text-property.
2012-12-10 16:26:13 -05:00
Jambunathan K
c868b91923 * lisp/hi-lock.el: Refine the choice of default face.
(hi-lock-keyword->face): New function.  Use it wherever we used
cadadadr instead.
(hi-lock--regexps-at-point): Ignore faces that can't come from hi-lock.
(hi-lock--last-face): Remove var.
(hi-lock--unused-faces): New var to replace it.
(hi-lock-read-face-name): Use/maintain it.
(hi-lock-unface-buffer): Maintain it.  Fix error for the C-u case.
(hi-lock-set-pattern): Ignore new rule if it has the same regexp even
if it has another face.

Fixes: debbugs:11095
2012-12-10 13:33:59 -05:00
Eli Zaretskii
2b8c906403 Final cleanups and updated ChangeLog entries. 2012-12-10 15:25:17 +02:00
Eli Zaretskii
3907e630a7 Merge from trunk + rename the event. Not tested yet. 2012-12-10 14:08:02 +02:00
Rüdiger Sonderfeld
81606b1050 Support filesystem notification through inotify on GNU/Linux.
configure.ac (inotify): New option.
 (HAVE_INOTIFY): Test for inotify.

 src/termhooks.h (enum event_kind) [HAVE_INOTIFY]: Add
 FILE_NOTIFY_EVENT.
 src/lisp.h (syms_of_inotify) [HAVE_INOTIFY]: Add prototype.
 src/keyboard.c (Qfile_inotify) [HAVE_INOTIFY]: New variable.
 (syms_of_keyboard): DEFSYM it.
 (kbd_buffer_get_event) [HAVE_INOTIFY]: Generate FILE_NOTIFY_EVENT.
 (make_lispy_event): Support FILE_NOTIFY_EVENT by generating
 Qfile_inotify events.
 (keys_of_keyboard) [HAVE_INOTIFY]: Bind file-inotify events in
 special-event-map to inotify-handle-event.
 src/emacs.c (main) [HAVE_INOTIFY]: Call syms_of_inotify.
 src/Makefile.in (base_obj): Add inotify.o.
 src/inotify.c: New file.

 lisp/subr.el (inotify-event-p, inotify-handle-event): New functions.

 test/automated/inotify-test.el: New test.
2012-12-10 06:17:21 -05:00
Glenn Morris
265c2fbf11 Merge from emacs-24; up to 2012-11-26T19:56:14Z!monnier@iro.umontreal.ca 2012-12-09 18:00:42 -08:00
Stefan Monnier
bad162fd1b * lisp/emacs-lisp/cl-lib.el (cl-declaim): Paren typo. 2012-12-09 20:32:36 -05:00
Eli Zaretskii
ca065258cc Parallelize byte compilation on MS-Windows.
lisp/makefile.w32-in (WINS_BASIC1, WINS_BASIC2, WINS_BASIC3)
 (WINS_BASIC4): New variables, subdivide subdirectories into 4
 parts.
 (WINS_BASIC): Define as concatenation of the above.
 (compile): Subdivide into 4 separate and independent jobs that can
 be run in parallel.
 (compile0-CMD, compile0-SH): New targets for compiling
 COMPILE_FIRST files, which are prerequisites for the rest of the
 byte-compilation.
 (compile1-CMD, compile2-CMD, compile3-CMD, compile4-CMD): New
 targets for parallel compilation with cmd.exe.
 (compile1-SH, compile2-SH, compile3-SH, compile4-SH): Ditto for
 compiling under a Unixy shell.
2012-12-09 23:32:12 +02:00
Chong Yidong
2c066ad3ae * simple.el (set-mark-default-inactive): Mark for removal after 24.3. 2012-12-09 11:44:59 +08:00
Chong Yidong
5dea55d2fa * simple.el (set-mark-default-inactive): Delete accidentally-introduced option.
(set-mark-command, exchange-point-and-mark): Remove calls.
2012-12-09 11:40:09 +08:00
Glenn Morris
c6c08d3f8f Make eval-defun on a pre-defined defcustom call any :set function
* lisp/emacs-lisp/lisp-mode.el (eval-defun-1): Doc fix.
Respect a defcustom's :set function, if appropriate. 
(eval-defun): Doc fix.

* doc/lispref/customize.texi (Variable Definitions): Mention eval-defun
on a defcustom calls the :set function when appropriate.

* etc/NEWS: Mention this.

Fixes: debbugs:109
2012-12-08 17:04:43 -08:00
Juri Linkov
858aab4c02 * lisp/info.el (Info-copy-current-node-name, Info-breadcrumbs)
(Info-fontify-node, Info-bookmark-make-record): Remove the
file extension from Info-current-file.

Fixes: debbugs:13016
2012-12-09 01:12:08 +02:00
Dani Moncayo
6ce49f2459 * lisp/simple.el (just-one-space): Doc fix.
* doc/emacs/killing.texi (Deletion): Doc fix.

Fixes: debbugs:12748
2012-12-08 11:25:28 +08:00
Stefan Monnier
2e4ad7e5a4 * lisp/hi-lock.el (hi-lock-unface-buffer): If there's no matching regexp at
point, still provide some default.
(hi-lock--regexps-at-point): Don't enforce a "hi-lock-" prefix on face
names, since we don't use it right now.  Actually return the list.
(hi-lock-file-patterns, hi-lock-interactive-patterns): Use defvar-local.
2012-12-07 11:48:42 -05:00
Chong Yidong
ffe7ba8f15 * novice.el (disabled-command-function): Remove a spurious help xref.
Suggested by Kelly Dean.

Fixes: debbugs:13043
2012-12-08 00:34:01 +08:00
Chong Yidong
454eb09524 * subr.el (text-clone-maintain): Fix clone overlay deletion
when a syntax is specified.

Fixes: debbugs:13025
2012-12-08 00:25:28 +08:00
Eli Zaretskii
8d43bd3023 Fix insertion of " inside @smallexample.
lisp/textmodes/texinfo.el (texinfo-enable-quote-envs): Add "smallexample".
2012-12-07 17:52:40 +02:00
Chong Yidong
75498db059 * info.el (Info-set-mode-line): Remove file extension from Info-current-file
if there is one.

Fixes: debbugs:13016
2012-12-07 23:31:43 +08:00
Glenn Morris
3f1071c747 Auto-commit of loaddefs files. 2012-12-07 06:19:45 -05:00
Glenn Morris
54c8b5baf1 rmail-cease-edit fixes related to "^From " escaping
* mail/rmail.el (rmail-mime-decoded): New permanent local.
(rmail-show-message-1): Set rmail-mime-decoded when appropriate.
* mail/rmailedit.el (rmail-cease-edit): Respect rmail-mbox-format
and rmail-mime-decoded.

Fixes: debbugs:9841
2012-12-07 00:59:14 -08:00
Le Wang
3a21537c13 * lisp/hilit-chg.el (hilit-chg-set-face-on-change): Don't burp in
narrowed buffer.

Fixes: debbugs:12361
2012-12-07 00:00:04 -05:00
Glenn Morris
8e0762cade Fix :type in previous (un)rmail change, use a better :group 2012-12-06 20:57:43 -08:00
Glenn Morris
13a40633cf Default to mboxrd in Rmail, allow mboxo as an option
* lisp/mail/unrmail.el (unrmail-mbox-format): New option. 
(batch-unrmail, unrmail): Doc fixes.
(unrmail): Respect unrmail-mbox-format.
* lisp/mail/rmail.el (rmail-mbox-format): New option.
(rmail-show-message-1): Respect rmail-mbox-format.

* etc/NEWS: Related edits.

Fixes: debbugs:6574
2012-12-06 20:37:14 -08:00
Michael Heerdegen
610251116c * lisp/emacs-lisp/debug.el (debug): Fix hard-coded frame counts.
Virtually backported from trunk.

Fixes: debbugs:10025
2012-12-06 23:31:24 -05:00
Stefan Monnier
4611a3cce7 * lisp/emacs-lisp/cl-macs.el (cl-tagbody): New macro. 2012-12-06 22:56:57 -05:00
Juanma Barranquero
bf741d337c lisp/vc/vc-hooks.el (vc-state): Doc fix. 2012-12-07 04:55:40 +01:00
Paul Eggert
f24f2e22aa Spelling fixes. 2012-12-06 18:37:20 -08:00
Glenn Morris
0702616647 Further rmail.el fix for bug#13066
* lisp/mail/rmail.el (rmail-maybe-display-summary):
Preserve buffer, in case select-window changes it.
2012-12-06 16:41:32 -05:00
Stefan Monnier
338bfefacb Further cleanup of the "cl-" namespace. Fit CL in 80 columns.
* lisp/emacs-lisp/cl-macs.el (cl--pop2, cl--optimize-safety)
(cl--optimize-speed, cl--not-toplevel, cl--parse-loop-clause)
(cl--expand-do-loop, cl--proclaim-history, cl--declare-stack)
(cl--do-proclaim, cl--proclaims-deferred): Rename from the "cl-" prefix.
(cl-progv): Don't rely on dynamic scoping to find the body.
* lisp/emacs-lisp/cl-lib.el (cl--optimize-speed, cl--optimize-safety)
(cl--proclaims-deferred): Rename from the "cl-" prefix.
(cl-declaim): Use backquotes.
* lisp/emacs-lisp/cl-extra.el (cl-make-random-state, cl-random-state-p):
Use "cl--" prefix for the object's tag.
2012-12-06 16:29:29 -05:00
Stefan Monnier
82e1f390ab * lisp/emacs-lisp/cl.el, lisp/emacs-lisp/cl-lib.el: Move cl-unload-function and
cl-load-hook where they belong.
2012-12-06 16:08:50 -05:00
Stefan Monnier
1812c7246e * lisp/ses.el: Use advice-add/remove.
(ses--advice-copy-region-as-kill, ses--advice-yank): New functions.
(copy-region-as-kill, yank): Use advice-add.
(ses-unload-function): Use advice-remove.
2012-12-06 15:16:38 -05:00
Jonas Bernoulli
24fc948039 * lisp/button.el: Make them work in header-lines.
(button-map): Add bindings for header-line and mode-line use.
(button-get, button-put, button-label): `button' may now be a string.
(button-activate): Don't make it a defsubst.
(button--area-button-p, button--area-button-string): New functions.
(make-text-button): Fix the return value when `beg' was a string.
(push-button): Handle the mode-line case.

Fixes: debbugs:12817
2012-12-06 15:10:36 -05:00
Sam Steingold
5b4d7e523f * lisp/gnus/gnus-start.el (gnus-before-resume-hook): Add.
(gnus-1): Run it when Gnus is alive.
2012-12-06 13:30:38 -05:00
Stefan Monnier
93852cb0cf * lisp/progmodes/sql.el: Use cl-lib and lexical-binding; various cleanup.
(sql-signum): Remove.  Use `cl-signum' instead.
(sql-read-passwd): Remove; use read-passwd instread.
(sql-get-login-ext): Use read-string.
(sql-get-login): Use dolist and pcase.
(sql--completion-table): Rename from sql-try-completion.
Use complete-with-action.
(sql-mode): Don't change abbrev-all-caps globally.
(sql-connect): Don't rely on dynamic scoping for `new-name'.
(sql-postgres-completion-object): Initialize vars in their `let'.
(sql-comint-sybase, sql-comint-sqlite, sql-comint-mysql)
(sql-comint-solid, sql-comint-ms, sql-comint-postgres)
(sql-comint-interbase): Use a single append, without setq.
(sql-comint-linter): Same, and unwind-protect the LINTER_MBX var.
2012-12-06 12:29:30 -05:00
Stefan Monnier
853c1ffc03 * lisp/hi-lock.el: Rework the default face and the serialize regexp code.
(hi-lock--auto-select-face-defaults): Remove.
(hi-lock-string-serialize-serial): Remove.
(hi-lock--hashcons-hash): Rename from hi-lock-string-serialize-hash;
make weak.
(hi-lock--hashcons): Rename from hi-lock-string-serialize, return an
equal string.
(hi-lock-set-pattern): Adjust accordingly.
(hi-lock--regexps-at-point): Simplify accordingly.
(hi-lock--auto-select-face-defaults): Remove.
(hi-lock--last-face): New var to replace it.
(hi-lock-read-face-name): Rewrite.
(hi-lock-unface-buffer): Arrange for the face to be the next default.

Fixes: debbugs:11095
2012-12-06 11:17:11 -05:00
Glenn Morris
347966bf30 Auto-commit of loaddefs files. 2012-12-06 06:21:08 -05:00
Michael Albinus
5504e2c7ec * net/tramp.el (tramp-replace-environment-variables): Hide
compiler warning.
(tramp-file-name-for-operation): Remove `executable-find',
`start-process', `call-process' and `call-process-region'.

* net/tramp-compat.el (top): Don't require 'tramp-util and 'tramp-vc.

* net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Ensure backward
compatibility.

* net/tramp-sh.el (top): Remove `tramp-sh-handle-call-process-region'.
2012-12-06 10:15:27 +01:00
Glenn Morris
7fc5e83f7f Convert consecutive copyright years to range 2012-12-05 23:33:20 -08:00
Glenn Morris
d8ad4d3ff9 Merge from emacs-24; up to 2012-11-24T16:58:43Z!cyd@gnu.org 2012-12-05 22:17:10 -08:00
Katsumi Yamaoka
b7f3003fdd spam.el: Fix last change 2012-12-06 04:37:54 +00:00
Katsumi Yamaoka
da9462398a gmm-utils.el (gmm-called-interactively-p): Restore as a macro.
gnus-art.el (article-unsplit-urls)
gnus-bookmark.el (gnus-bookmark-bmenu-list)
gnus-registry.el (gnus-registry-get-article-marks)
message.el (message-goto-body): Use it.
  (message-called-interactively-p): Remove.

spam-stat.el (spam-stat-called-interactively-p): New macro.
  (spam-stat-score-buffer): Use it.

spam.el: Silence the warnings against BBDB functions when compiling.

gnus-score.el (gnus-score-decode-text-parts):
  Use append+mapcar instead of the cl function mapcan.
2012-12-06 04:28:00 +00:00
Katsumi Yamaoka
9ad948e2fd Avoid letf macro use from Gnus
gnus/gmm-utils.el (gmm-flet): Remove.
gnus/gnus-sync.el (gnus-sync-lesync-call): Avoid overriding json-alist-p.
gnus/message.el (message-read-from-minibuffer): Avoid overriding mail-abbrev-in-expansion-header-p.
mail/mailabbrev.el (mail-abbrev-expand-wrapper): Work in minibuffer so as to enable message-read-from-minibuffer to expand mail aliases.
2012-12-06 03:30:23 +00:00
Chong Yidong
e1d51545ce * ffap.el (ffap-replace-file-component): Fix typo. 2012-12-06 11:04:21 +08:00
Stefan Monnier
4b5c89eefe * lisp/minibuf-eldef.el (minibuf-eldef-update-minibuffer): Don't mess with
the `intangible' property.
Suggested by Christopher Schmidt <christopher@ch.ristopher.com>
2012-12-05 20:39:03 -05:00
Sam Steingold
ffcee8d7c4 * lisp/gnus/gnus.el (gnus-delete-gnus-frame): Extract from `gnus-other-frame'.
(gnus-other-frame): Add `gnus-delete-gnus-frame' to
`gnus-suspend-gnus-hook' in addition to `gnus-exit-gnus-hook'.
2012-12-05 13:13:38 -05:00
Deniz Dogan
5602a53a2c * lisp/net/rcirc.el (rcirc-urls): Update documentation.
(rcirc-condition-filter): New function.
(rcirc-browse-url, rcirc-markup-urls): Use only URLs before point
and exclude consecutive duplicate URLs.

Fixes: debbugs:6082
2012-12-05 17:45:37 +01:00
Michael Albinus
82176fcdeb * tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Check error
code also on MS-Windows machines.
2012-12-05 16:50:32 +01:00
Michael Albinus
d5f97f6295 * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Check return code of copy command.
2012-12-05 15:06:06 +01:00
Glenn Morris
4038c7a2fd Auto-commit of loaddefs files. 2012-12-05 07:20:55 -05:00
Katsumi Yamaoka
aa7e16fc84 lisp/gnus/ChangeLog: Fix typo 2012-12-05 10:29:31 +00:00