bpt/emacs.git
11 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 1 Jun 2013 10:17:59 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.

11 years agoFix compilation error on MinGW64 due to nt/inc/sys/time.h.
Eli Zaretskii [Sat, 1 Jun 2013 07:07:22 +0000 (10:07 +0300)]
Fix compilation error on MinGW64 due to nt/inc/sys/time.h.

 nt/inc/sys/time.h [!_TIMEZONE_DEFINED]: Define _TIMEZONE_DEFINED to
 avoid multiple definition errors on MinGW64.

11 years ago* progmodes/octave.el (octave-mode-syntax-table): Give `.'
Leo Liu [Sat, 1 Jun 2013 03:38:36 +0000 (11:38 +0800)]
* progmodes/octave.el (octave-mode-syntax-table): Give `.'
punctuation syntax.
(inferior-octave-minimal-columns)
(inferior-octave-last-column-width): New variables.
(inferior-octave-track-window-width-change): New function.
(inferior-octave-mode): Adjust column width so that Octave output,
for example from 'ls', can fit into the window nicely.

11 years ago* process.c (handle_child_signal): Also use WCONTINUED.
Paul Eggert [Sat, 1 Jun 2013 00:54:34 +0000 (17:54 -0700)]
* process.c (handle_child_signal): Also use WCONTINUED.

This is so that list-processes doesn't mistakenly list the process
as stopped, when the process has actually been continued and is
now running.

11 years agoDocument changes in the installation tree on MS-Windows.
Eli Zaretskii [Fri, 31 May 2013 19:22:23 +0000 (22:22 +0300)]
Document changes in the installation tree on MS-Windows.

11 years agoSpelling fixes.
Paul Eggert [Fri, 31 May 2013 17:10:10 +0000 (10:10 -0700)]
Spelling fixes.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p):
Dmitry Gutov [Fri, 31 May 2013 16:55:03 +0000 (20:55 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p):
Highlight expansions inside regexp literals.

11 years agoFix compile errors in nt/inc/sys/time.h when using nt/configure.bat.
Eli Zaretskii [Fri, 31 May 2013 08:47:18 +0000 (11:47 +0300)]
Fix compile errors in nt/inc/sys/time.h when using nt/configure.bat.

 nt/inc/sys/time.h (gettimeofday): Use '__restrict' instead of
 'restrict', which is a C99 extension.  See
 http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00588.html
 and the following discussion for the problem this caused in the
 old nt/configure.bat build.

11 years ago* sym-comp.el (symbol-complete): Replace obsolete completion-annotate-function.
Glenn Morris [Fri, 31 May 2013 07:34:56 +0000 (00:34 -0700)]
* sym-comp.el (symbol-complete): Replace obsolete completion-annotate-function.

11 years ago* themes/tsdh-dark-theme.el (tsdh-dark): Refine mode-line faces.
Tassilo Horn [Fri, 31 May 2013 07:15:51 +0000 (09:15 +0200)]
* themes/tsdh-dark-theme.el (tsdh-dark): Refine mode-line faces.

11 years ago* progmodes/cc-vars.el (c-make-macro-with-semi-re): Silence compiler.
Glenn Morris [Fri, 31 May 2013 07:05:55 +0000 (00:05 -0700)]
* progmodes/cc-vars.el (c-make-macro-with-semi-re): Silence compiler.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): New
Dmitry Gutov [Fri, 31 May 2013 06:04:33 +0000 (10:04 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-expansion-allowed-p): New
function, checks if expression expansion is allowed in given parse
state.
(ruby-syntax-propertize-expansion): Use it.
(ruby-syntax-propertize-function): Bind `case-fold-search' to nil
around the body.

* test/automated/ruby-mode-tests.el: New tests, for percent literals
and expression expansion.

11 years agoDon't let D-bus autolaunch mess up SIGCHLD handling.
Paul Eggert [Fri, 31 May 2013 01:41:52 +0000 (18:41 -0700)]
Don't let D-bus autolaunch mess up SIGCHLD handling.

* xterm.c (x_term_init): Inhibit D-Bus autolaunch if D-Bus is
not already configured.

Fixes: debbugs:14474

11 years ago* fileio.c (Finsert_file_contents): Remove unused local.
Paul Eggert [Fri, 31 May 2013 01:31:10 +0000 (18:31 -0700)]
* fileio.c (Finsert_file_contents): Remove unused local.

Fixes: debbugs:8447

11 years ago* lisp/isearch.el (isearch-mode-map): Bind `isearch-toggle-invisible' to "\M-si".
Juri Linkov [Thu, 30 May 2013 23:45:41 +0000 (02:45 +0300)]
* lisp/isearch.el (isearch-mode-map): Bind `isearch-toggle-invisible' to "\M-si".
(isearch-invisible): New variable.
(isearch-forward): Doc fix.
(isearch-mode): Set `isearch-invisible'
to the value of `search-invisible'.
(isearch-toggle-case-fold): Doc fix.
(isearch-toggle-invisible): New command.
(isearch-query-replace): Let-bind `search-invisible'
to the value of `isearch-invisible'.
(isearch-search): Use `isearch-invisible' instead of
`search-invisible'.  Let-bind `search-invisible'
to the value of `isearch-invisible'.

Fixes: debbugs:11378

11 years ago* lisp/progmodes/gdb-mi.el (gdb-wait-for-pending): Fix typo.
Glenn Morris [Thu, 30 May 2013 23:33:08 +0000 (19:33 -0400)]
* lisp/progmodes/gdb-mi.el (gdb-wait-for-pending): Fix typo.

11 years ago* lisp/replace.el (perform-replace): Avoid `isearch-range-invisible'
Juri Linkov [Thu, 30 May 2013 23:29:42 +0000 (02:29 +0300)]
* lisp/replace.el (perform-replace): Avoid `isearch-range-invisible'
call when `query-flag' is nil and `search-invisible' is non-nil.

Fixes: debbugs:11746

11 years agocc-bytecomp tweaks for sake of byte-compiler
Glenn Morris [Thu, 30 May 2013 23:20:05 +0000 (19:20 -0400)]
cc-bytecomp tweaks for sake of byte-compiler

* lisp/progmodes/cc-bytecomp.el (cc-bytecomp-noruntime-functions): New.
(cc-require): Suppress spurious "noruntime" warnings.
(cc-require-when-compile): Use fboundp, for sake of compiler.

11 years ago* lisp/progmodes/cc-mode.el: Move load of cc-vars before that of cc-langs
Glenn Morris [Thu, 30 May 2013 23:18:39 +0000 (19:18 -0400)]
* lisp/progmodes/cc-mode.el: Move load of cc-vars before that of cc-langs
(which in turn loads cc-vars), to quieten compiler.

11 years ago* lisp/paren.el: Simplify the code.
Stefan Monnier [Thu, 30 May 2013 15:44:54 +0000 (11:44 -0400)]
* lisp/paren.el: Simplify the code.
(show-paren-mode): Always start the timer.
(show-paren--idle-timer): Rename from show-paren-idle-timer.
(show-paren--overlay, show-paren--overlay-1): Rename from
show-paren-overlay and show-paren-overlay-1, and initialize to an
overlay rather than to nil.
(show-paren-function): Misc cleanup and simplifications.

11 years ago* lisp/paren.el (show-paren-data-function): New hook.
Stefan Monnier [Thu, 30 May 2013 14:20:52 +0000 (10:20 -0400)]
* lisp/paren.el (show-paren-data-function): New hook.
(show-paren--default): New function, extracted from show-paren-function.
(show-paren-function): Use show-paren-data-function.

11 years ago* syntax.el (syntax-propertize-function): Fix docstring.
Stefan Monnier [Thu, 30 May 2013 13:57:44 +0000 (09:57 -0400)]
* syntax.el (syntax-propertize-function): Fix docstring.

11 years agoRefine maintaining.texi.
Xue Fuqiao [Thu, 30 May 2013 09:27:55 +0000 (17:27 +0800)]
Refine maintaining.texi.

* maintaining.texi (Types of Log File): Supplement some information of
change log files.

11 years agoSilence ielm compilation
Glenn Morris [Thu, 30 May 2013 03:30:34 +0000 (20:30 -0700)]
Silence ielm compilation

* lisp/ielm.el (ielm-map, ielm-complete-symbol):
Use completion-at-point rather than obsolete functions.
(inferior-emacs-lisp-mode): Doc fix.
Set completion-at-point-functions, rather than
comint-dynamic-complete-functions.

11 years agoIn Eshell, replace obsolete lisp-complete-symbol
Glenn Morris [Thu, 30 May 2013 03:27:46 +0000 (20:27 -0700)]
In Eshell, replace obsolete lisp-complete-symbol

* eshell/em-cmpl.el (eshell-complete-lisp-symbol): New function.
(eshell-cmpl-initialize, eshell-complete-parse-arguments):
Replace obsolete lisp-complete-symbol with eshell-complete-lisp-symbol.

11 years ago* gnus/nnmail.el (nnmail-fancy-expiry-target): Also bind mail-dont-reply-to-names
Glenn Morris [Thu, 30 May 2013 03:26:13 +0000 (20:26 -0700)]
* gnus/nnmail.el (nnmail-fancy-expiry-target): Also bind mail-dont-reply-to-names

11 years ago* gnus/spam-stat.el (spam-stat-save): No need to tweak font-lock in temp buffers
Glenn Morris [Thu, 30 May 2013 03:25:29 +0000 (20:25 -0700)]
* gnus/spam-stat.el (spam-stat-save): No need to tweak font-lock in temp buffers

11 years ago* image.el (image-animated-p): Tweak definition.
Glenn Morris [Thu, 30 May 2013 03:24:30 +0000 (20:24 -0700)]
* image.el (image-animated-p): Tweak definition.
* gnus/shr.el (shr-put-image): Silence compiler.

11 years agorlogin.el tiny cleanup
Glenn Morris [Thu, 30 May 2013 03:22:45 +0000 (20:22 -0700)]
rlogin.el tiny cleanup

* net/rlogin.el (rlogin-program, rlogin-explicit-args): Default to ssh.
(rlogin-process-connection-type): Tweak default.  Add set-after.
(rlogin-host): Doc fix.
(rlogin): Tweak prompt.
(rlogin-tab-or-complete): Use completion-at-point rather than alias.

11 years agoUse completion-at-point rather than obsolete alias.
Glenn Morris [Thu, 30 May 2013 03:20:56 +0000 (20:20 -0700)]
Use completion-at-point rather than obsolete alias.

* net/net-utils.el (nslookup-mode-map, ftp-mode-map):
* progmodes/tcl.el (inferior-tcl-mode-map):
Use completion-at-point rather than obsolete alias.

11 years ago* lisp/emacs-lisp/eieio.el (eieio-eval-default-p): Move before use.
Glenn Morris [Thu, 30 May 2013 03:19:37 +0000 (20:19 -0700)]
* lisp/emacs-lisp/eieio.el (eieio-eval-default-p): Move before use.

11 years ago* erc/erc-backend.el: Require erc at run-time too (silences compilation)
Glenn Morris [Thu, 30 May 2013 03:19:04 +0000 (20:19 -0700)]
* erc/erc-backend.el: Require erc at run-time too (silences compilation)

11 years ago* minibuffer.el (read-file-name-completion-ignore-case):
Glenn Morris [Thu, 30 May 2013 03:18:06 +0000 (20:18 -0700)]
* minibuffer.el (read-file-name-completion-ignore-case):
Move before completion--in-region, for eager macro expansion.

Somehow, this avoids an eager macro expansion failure present during
bootstrap since ~ 2013-04-17.

11 years ago* lisp/replace.el (occur-engine): Rename `globalcount' to `global-lines'
Juri Linkov [Wed, 29 May 2013 23:43:39 +0000 (02:43 +0300)]
* lisp/replace.el (occur-engine): Rename `globalcount' to `global-lines'
for total count of matching lines.  Add `global-matches' for total
count of matches.  Rename `matches' to `lines' for count of
matching lines.  Add `matches' for count of matches.
Rename `lines' to `curr-line' for line count.  Rename `prev-lines'
to `prev-line' for line number of prev match endpt.
Increment `matches' for every match.  Print the number of
matching lines in the header.
(occur-context-lines): Rename `lines' to `curr-line'.
Rename `prev-lines' to `prev-line'.

Fixes: debbugs:14017

11 years ago* lisp/replace.el (perform-replace): Add `skip-read-only-count',
Juri Linkov [Wed, 29 May 2013 23:11:41 +0000 (02:11 +0300)]
* lisp/replace.el (perform-replace): Add `skip-read-only-count',
`skip-filtered-count', `skip-invisible-count' let-bound to 0.
Increment them for corresponding conditions and report the number
of skipped occurrences in the final message.
(query-replace, query-replace-regexp, query-replace-regexp-eval)
(replace-string, replace-regexp): Doc fix.

Fixes: debbugs:11746

11 years agoRemove *.res files in mostlyclean, to avoid problems with out-of-tree builds.
Eli Zaretskii [Wed, 29 May 2013 16:48:42 +0000 (19:48 +0300)]
Remove *.res files in mostlyclean, to avoid problems with out-of-tree builds.

 src/Makefile.in (mostlyclean): Remove *.res files.

 lib-src/Makefile.in (mostlyclean): Remove *.res files.

 nt/Makefile.in (emacs.res): Include srcdir when preprocessing
 resources, for out-of-tree builds.
 (mostlyclean): Remove *.res files.

11 years ago* lisp/emacs-lisp/trace.el (trace--read-args): Provide a default.
Stefan Monnier [Wed, 29 May 2013 15:17:12 +0000 (11:17 -0400)]
* lisp/emacs-lisp/trace.el (trace--read-args): Provide a default.

11 years ago* lisp/emacs-lisp/lisp-mode.el (lisp-mode-shared-map): Inherit from
Stefan Monnier [Wed, 29 May 2013 14:14:16 +0000 (10:14 -0400)]
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-shared-map): Inherit from
prog-mode-map.

11 years ago* INSTALL: Fix description.
Xue Fuqiao [Wed, 29 May 2013 13:21:17 +0000 (21:21 +0800)]
* INSTALL: Fix description.

11 years agoidlwave-concatenate-rinfo-lists fix
Glenn Morris [Wed, 29 May 2013 07:18:09 +0000 (00:18 -0700)]
idlwave-concatenate-rinfo-lists fix

* progmodes/idlwave.el (idlwave-concatenate-rinfo-lists):
Handle idlwave-last-system-routine-info-cons-cell being nil.

This seems to prevent an error on typing `C-c TAB',
idlwave-update-routine-info, in an idlwave buffer.

11 years ago* lisp/emacs-lisp/smie.el (smie-highlight-matching-block): Always turn
Leo Liu [Wed, 29 May 2013 06:50:48 +0000 (14:50 +0800)]
* lisp/emacs-lisp/smie.el (smie-highlight-matching-block): Always turn
off the highlight first.

* lisp/progmodes/octave.el (octave-indent-comment): Tweak regexps.
(octave-help): Small simplification.

* test/indent/octave.m: Tweak.

11 years ago* idlwave.el (idlwave-scan-user-lib-files, idlwave-write-paths): Simplify
Glenn Morris [Wed, 29 May 2013 06:44:19 +0000 (23:44 -0700)]
* idlwave.el (idlwave-scan-user-lib-files, idlwave-write-paths): Simplify
via with-temp-buffer.

11 years agoSilence cua-mode compilation
Glenn Morris [Wed, 29 May 2013 02:48:16 +0000 (19:48 -0700)]
Silence cua-mode compilation

* emulation/cua-gmrk.el: Also load cua-base, cua-rect at run time.
* emulation/cua-rect.el: Also load cua-base at run time.

11 years agoSilence cperl-mode compilation
Glenn Morris [Wed, 29 May 2013 02:46:35 +0000 (19:46 -0700)]
Silence cperl-mode compilation

* progmodes/cperl-mode.el (imenu-choose-buffer-index)
(file-of-tag, etags-snarf-tag, etags-goto-tag-location): Declare.
(cperl-imenu-on-info): Require imenu.

11 years agoSilence some gnus compilation warnings
Glenn Morris [Wed, 29 May 2013 02:40:43 +0000 (19:40 -0700)]
Silence some gnus compilation warnings

* gnus/gnus-ems.el (set-process-plist): Every supported Emacs has this.

* gnus/gnus-group.el (gnus-sequence-of-unread-articles)
(gnus-summary-add-mark, gnus-mark-article-as-read)
(gnus-group-make-articles-read): Declare.

* gnus/gnus-sum.el (gnus-parameter-list-identifier)
(gnus-article-stop-animations, gnus-stop-downloads)
(gnus-article-only-boring-p, article-goto-body)
(gnus-flush-original-article-buffer, article-narrow-to-head)
(gnus-article-hidden-text-p, gnus-delete-wash-type)
(gnus-summary-save-in-pipe, gnus-article-show-summary): Declare.

* gnus/gnus.el: No need to eval-and-compile autoloads.

* gnus/gravatar.el (help-function-arglist): Autoload.

* gnus/nnimap.el (gnus-refer-thread-use-nnir): Declare.

* gnus/nnmail.el (nnmail-fancy-expiry-target): Maybe use mail-dont-reply-to.

* gnus/spam.el: No need to load spam-report when compiling.
No need to eval-and-compile autoloads.
(spam-report-resend-to): Declare.
(spam-report-resend-register-routine): Require 'spam-report.

11 years ago* src/fileio.c (Finsert_file_contents): Preserve undo info when reverting
Stefan Monnier [Wed, 29 May 2013 01:07:53 +0000 (21:07 -0400)]
* src/fileio.c (Finsert_file_contents): Preserve undo info when reverting
a buffer.

Fixes: debbugs:8447

11 years ago* doc/lispref/functions.texi (Lambda Expressions): Lambda expressions don't
Stefan Monnier [Wed, 29 May 2013 00:24:50 +0000 (20:24 -0400)]
* doc/lispref/functions.texi (Lambda Expressions): Lambda expressions don't
evaluate to themselves in general.

Fixes: debbugs:11782

11 years agoHandle "capitalised keywords" correctly.
Alan Mackenzie [Tue, 28 May 2013 15:42:56 +0000 (15:42 +0000)]
Handle "capitalised keywords" correctly.
        * progmodes/cc-mode.el (c-after-change): bind case-fold-search to
        nil.

11 years agoAdded -r option to eshell/cp
Aidan Gauland [Tue, 28 May 2013 10:22:03 +0000 (22:22 +1200)]
Added -r option to eshell/cp

11 years agoSilence the rest of vc compilation
Glenn Morris [Tue, 28 May 2013 07:47:11 +0000 (00:47 -0700)]
Silence the rest of vc compilation

* vc/vc-cvs.el (vc-exec-after, vc-coding-system-for-diff, vc-resynch-buffer):
Declare.
(vc-switches, vc-default-revert, vc-version-backup-file): Autoload.

* vc/vc-git.el (vc-exec-after, vc-set-async-update, grep-read-regexp)
(grep-read-files, grep-expand-template, vc-dir-refresh): Declare.
(vc-setup-buffer, vc-switches, vc-resynch-buffer): Autoload.

* vc/vc-hg.el (vc-exec-after, vc-set-async-update): Declare.
(vc-setup-buffer, vc-switches, vc-do-async-command): Autoload.

* vc/vc-sccs.el (vc-file-tree-walk): Declare.
(vc-expand-dirs, vc-switches, vc-setup-buffer, vc-delistify)
(vc-tag-precondition, vc-rename-master): Autoload.

11 years agoCommit file missing from previous change
Glenn Morris [Tue, 28 May 2013 07:03:00 +0000 (00:03 -0700)]
Commit file missing from previous change

* obsolete/vc-mcvs.el (vc-checkout, vc-switches, vc-default-revert): Autoload.
(vc-resynch-buffer): Declare.

11 years agoSilence some vc compilation warnings
Glenn Morris [Tue, 28 May 2013 07:01:59 +0000 (00:01 -0700)]
Silence some vc compilation warnings

* lisp/vc/vc-arch.el (vc-exec-after): Declare.
(vc-switches): Autoload.

* lisp/vc/vc-bzr.el: No need to require vc when compiling.
(vc-exec-after, vc-set-async-update, vc-default-dir-printer)
(vc-resynch-buffer, vc-dir-refresh): Declare.
(vc-setup-buffer, vc-switches): Autoload.

* lisp/vc/vc-dir.el (desktop-missing-file-warning): Declare.

* lisp/vc/vc-mtn.el (vc-exec-after): Declare.
(vc-switches): Autoload.

* lisp/vc/vc-rcs.el (vc-expand-dirs, vc-switches)
(vc-tag-precondition, vc-buffer-sync, vc-rename-master): Autoload.
(vc-file-tree-walk): Declare.

* lisp/vc/vc-svn.el (vc-exec-after): Declare.
(vc-switches, vc-setup-buffer): Autoload.

* lisp/obsolete/vc-mcvs.el (vc-checkout, vc-switches, vc-default-revert):
Autoload.
(vc-resynch-buffer): Declare.

11 years ago* obsolete/fast-lock.el (byte-compile-warnings):
Glenn Morris [Tue, 28 May 2013 06:56:55 +0000 (23:56 -0700)]
* obsolete/fast-lock.el (byte-compile-warnings):
Don't warn about obsolete features in this obsolete file.

11 years ago* cc-vars.el (c-macro-names-with-semicolon): Move definition before use.
Glenn Morris [Tue, 28 May 2013 06:55:48 +0000 (23:55 -0700)]
* cc-vars.el (c-macro-names-with-semicolon): Move definition before use.

11 years agodunnet.el trivia
Glenn Morris [Tue, 28 May 2013 06:54:23 +0000 (23:54 -0700)]
dunnet.el trivia

* play/dunnet.el (byte-compile-warnings): Don't disable them all.
(dun-unix-verbs): Remove dun-zippy.
(dun-zippy): Remove function.

11 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Doc fix.
Glenn Morris [Tue, 28 May 2013 06:52:51 +0000 (23:52 -0700)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-warnings): Doc fix.

11 years agoAdd comment for last change.
Michael Albinus [Tue, 28 May 2013 06:49:19 +0000 (08:49 +0200)]
Add comment for last change.

11 years ago* erc.texi (Special Features): ERC is being maintained within Emacs
Xue Fuqiao [Tue, 28 May 2013 01:05:41 +0000 (09:05 +0800)]
* erc.texi (Special Features): ERC is being maintained within Emacs
now.  (See
http://lists.gnu.org/archive/html/erc-discuss/2012-10/msg00000.html)

11 years ago* lisp/replace.el (replace-search): New function with code moved out
Juri Linkov [Mon, 27 May 2013 23:38:56 +0000 (02:38 +0300)]
* lisp/replace.el (replace-search): New function with code moved out
from `perform-replace'.
(replace-highlight, replace-dehighlight): Move function definitions
up closer to `replace-search'.

Fixes: debbugs:11746

11 years ago* lisp/vc/vc-git.el (vc-git-working-revision): When in detached mode,
Dmitry Gutov [Mon, 27 May 2013 23:11:21 +0000 (03:11 +0400)]
* lisp/vc/vc-git.el (vc-git-working-revision): When in detached mode,
return the commit hash.  Also set the `vc-git-detached' property.
(vc-git--rev-parse): Extract from `vc-git-previous-revision'.
(vc-git-mode-line-string): Use the same help-echo format whether in
detached mode or not, because we know the actual revision now.  When
in detached mode, shorten the revision to 7 chars.

Fixes: debbugs:14459

11 years ago* lisp/replace.el (perform-replace): Ignore invisible matches.
Juri Linkov [Mon, 27 May 2013 23:02:37 +0000 (02:02 +0300)]
* lisp/replace.el (perform-replace): Ignore invisible matches.
In addition to checking `query-replace-skip-read-only', also
filter out matches by calling `run-hook-with-args-until-failure'
on `isearch-filter-predicates', and also check `search-invisible'
for t or call `isearch-range-invisible'.
(replace-dehighlight): Call `isearch-clean-overlays'.

Fixes: debbugs:11746

11 years ago* lisp/isearch.el (isearch-filter-predicates): Rename from `isearch-filter-predicate'.
Juri Linkov [Mon, 27 May 2013 22:42:11 +0000 (01:42 +0300)]
* lisp/isearch.el (isearch-filter-predicates): Rename from `isearch-filter-predicate'.
Doc fix.
(isearch-message-prefix): Display text from the property
`isearch-message-prefix' of the currently active filters.
(isearch-search): Don't compare `isearch-filter-predicate' with
`isearch-filter-visible'.  Call `run-hook-with-args-until-failure'
on `isearch-filter-predicates'.  Also check `search-invisible' for t
or call `isearch-range-invisible'.
(isearch-filter-visible): Make obsolete.
(isearch-lazy-highlight-search):
Call `run-hook-with-args-until-failure' on
`isearch-filter-predicates' and use `isearch-range-invisible'.

* lisp/info.el (Info-search): Call `run-hook-with-args-until-failure' on
`isearch-filter-predicates' instead of `funcall'ing
`isearch-filter-predicate'.
(Info-mode): Set `Info-isearch-filter' to
`isearch-filter-predicates' instead of `isearch-filter-predicate'.

* lisp/dired-aux.el (dired-isearch-filter-predicate-orig): Remove variable.
(dired-isearch-filenames-toggle, dired-isearch-filenames-setup)
(dired-isearch-filenames-end): Add and remove
`dired-isearch-filter-filenames' in `isearch-filter-predicates'
instead of changing the value of `isearch-filter-predicate'.
Rebind `dired-isearch-filenames-toggle' from "\M-sf" to "\M-sff".
(dired-isearch-filter-filenames): Don't use `isearch-filter-visible'.
Put property `isearch-message-prefix' to "filename " on
`dired-isearch-filter-filenames'.

* lisp/wdired.el (wdired-change-to-wdired-mode):
Add `isearch-filter-predicates' to `wdired-isearch-filter-read-only'
locally instead of changing `isearch-filter-predicate'.
(wdired-isearch-filter-read-only): Don't use `isearch-filter-visible'.

Fixes: debbugs:11378

11 years agoFix bug #14476 with posn-at-point and glyphs from display vector.
Eli Zaretskii [Mon, 27 May 2013 16:54:33 +0000 (19:54 +0300)]
Fix bug #14476 with posn-at-point and glyphs from display vector.

 src/xdisp.c (pos_visible_p): When CHARPOS is displayed frrom a
 display vector, and we backtrack, handle the case that the
 previous character position is also displayed from a display
 vector or covered by a display string or image.

11 years agoRestore an omitted bug reference.
Eli Zaretskii [Mon, 27 May 2013 16:41:32 +0000 (19:41 +0300)]
Restore an omitted bug reference.

11 years agoAlways defvar a mode's hook and provide a docstring.
Stefan Monnier [Mon, 27 May 2013 16:12:52 +0000 (12:12 -0400)]
Always defvar a mode's hook and provide a docstring.
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
* lisp/emacs-lisp/derived.el (define-derived-mode): Always defvar the
mode hook and provide a docstring.

11 years agoRemove spurious syntax-table text properties inserted by C-y.
Alan Mackenzie [Mon, 27 May 2013 13:30:21 +0000 (13:30 +0000)]
Remove spurious syntax-table text properties inserted by C-y.
        * progmodes/cc-mode.el (c-after-change): Also clear hard
        syntax-table property with value nil.

11 years ago* net/dbus.el (dbus-call-method): Let-bind `inhibit-redisplay'
Michael Albinus [Mon, 27 May 2013 12:41:17 +0000 (14:41 +0200)]
* net/dbus.el (dbus-call-method): Let-bind `inhibit-redisplay'
when reading the events; the buffer layout shall not be changed.

11 years agoAuto-commit of generated files.
Glenn Morris [Mon, 27 May 2013 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* progmodes/octave.el (inferior-octave-directory-tracker-resync):
Leo Liu [Mon, 27 May 2013 05:08:04 +0000 (13:08 +0800)]
* progmodes/octave.el (inferior-octave-directory-tracker-resync):
New variable.
(inferior-octave-directory-tracker): Automatically re-sync
default-directory.
(octave-help): Improve handling of 'See also'.

11 years ago* configure.ac (HAVE_XRANDR): Check availability of XRRGetScreenResources rather...
YAMAMOTO Mitsuharu [Mon, 27 May 2013 02:03:18 +0000 (11:03 +0900)]
* configure.ac (HAVE_XRANDR): Check availability of XRRGetScreenResources rather than that of XRRQueryExtension.

11 years ago* lisp/doc-view.el: Minor naming convention tweaks.
Stefan Monnier [Mon, 27 May 2013 01:08:43 +0000 (21:08 -0400)]
* lisp/doc-view.el: Minor naming convention tweaks.
(desktop-buffer-mode-handlers): Don't add to it repeatedly.

11 years ago* lisp/image-mode.el (image-mode-reapply-winprops): Call image-mode-winprops
Stefan Monnier [Mon, 27 May 2013 00:59:33 +0000 (20:59 -0400)]
* lisp/image-mode.el (image-mode-reapply-winprops): Call image-mode-winprops
even if there's no `display' property yet.

Fixes: debbugs:14435

11 years agoRewrite Eshell tests using ERT
Aidan Gauland [Sun, 26 May 2013 07:54:01 +0000 (19:54 +1200)]
Rewrite Eshell tests using ERT

11 years agoRename unmsys--filename to unmsys--file-name.
Eli Zaretskii [Sat, 25 May 2013 16:05:19 +0000 (19:05 +0300)]
Rename unmsys--filename to unmsys--file-name.

11 years agoFactor out common code for multimonitors, for Gtk+, non-Gtk+ X11 and NS.
Jan Djärv [Sat, 25 May 2013 11:14:38 +0000 (13:14 +0200)]
Factor out common code for multimonitors, for Gtk+, non-Gtk+ X11 and NS.

* frame.c (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): New
Lisp_Object:s.
(free_monitors, make_monitor_attribute_list): New functions.
(syms_of_frame): DEFSYM Qgeometry, Qworkarea, Qmm_size, Qframes,
Qsource.

* frame.h (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Declare.
(struct MonitorInfo): New struct.
(free_monitors, make_monitor_attribute_list): Declare.

* nsfns.m (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Remove.
(struct MonitorInfo, free_monitors): Remove.
(ns_screen_name): Make static.
(ns_make_monitor_attribute_list): Call make_monitor_attribute_list.
(syms_of_nsfns): Remove DEFSYM for Qgeometry, Qworkarea, Qmm_size,
Qframes, Qsource.

* xfns.c (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Remove.
(struct MonitorInfo, free_monitors): Remove.
(x_make_monitor_attribute_list): Call make_monitor_attribute_list.
(Fx_display_monitor_attributes_list): Call make_monitor_attribute_list.
(syms_of_xfns): Remove DEFSYM for Qgeometry, Qworkarea, Qmm_size,
Qframes, Qsource.

11 years agoFix a typo in the last commit.
Eli Zaretskii [Sat, 25 May 2013 09:26:53 +0000 (12:26 +0300)]
Fix a typo in the last commit.

11 years agoExplain in nt/INSTALL.MSYS why --prefix should be used with Windows builds.
Eli Zaretskii [Sat, 25 May 2013 07:34:34 +0000 (10:34 +0300)]
Explain in nt/INSTALL.MSYS why --prefix should be used with Windows builds.

11 years agoRename reveal-filename into unmsys--filename.
Eli Zaretskii [Sat, 25 May 2013 07:19:50 +0000 (10:19 +0300)]
Rename reveal-filename into unmsys--filename.

 lisp/subr.el (unmsys--filename): Renamed from reveal-filename.
 lisp/Makefile.in (custom-deps, finder-data, autoloads)
 ($(MH_E_DIR)/mh-loaddefs.el, $(TRAMP_DIR)/tramp-loaddefs.el)
 ($(CAL_DIR)/cal-loaddefs.el, $(CAL_DIR)/diary-loaddefs.el)
 ($(CAL_DIR)/hol-loaddefs.el): All users changed.

 leim/Makefile.in (leim-list.el, check-declare): Replace
 reveal-filename with unmsys--filename.

11 years ago* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't burp at EOB.
Stefan Monnier [Sat, 25 May 2013 03:08:04 +0000 (23:08 -0400)]
* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't burp at EOB.

Fixes: debbugs:14446

11 years ago* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't use
Stefan Monnier [Sat, 25 May 2013 03:00:13 +0000 (23:00 -0400)]
* lisp/emacs-lisp/lisp.el (lisp-completion-at-point): Don't use
error-completion on the first 2 args of condition-case.

Fixes: debbugs:14446

11 years ago* comint.el (comint-previous-matching-input): Do not flood the
Leo Liu [Sat, 25 May 2013 02:40:33 +0000 (10:40 +0800)]
* comint.el (comint-previous-matching-input): Do not flood the
*Messages* buffer with trivial messages.

11 years ago* lisp/simple.el (read--expression): New function, extracted from
Stefan Monnier [Sat, 25 May 2013 02:21:49 +0000 (22:21 -0400)]
* lisp/simple.el (read--expression): New function, extracted from
eval-expression.  Set completion-at-point-functions.
(eval-expression, eval-minibuffer): Use it.

* lisp/progmodes/flymake.el (flymake-nop): Don't return a string.
(flymake-set-at): Fix typo.

Fixes: debbugs:14465

11 years ago* refcards/refcard.tex: Refine some entries. (Bug#14087)
Xue Fuqiao [Sat, 25 May 2013 02:17:54 +0000 (10:17 +0800)]
* refcards/refcard.tex: Refine some entries.  (Bug#14087)

11 years ago* indent/octave.m: Add tests for %!, # and ### comments
Leo Liu [Sat, 25 May 2013 02:03:03 +0000 (10:03 +0800)]
* indent/octave.m: Add tests for %!, # and ### comments

11 years ago* callproc.c (call_process): Refine the doc string. (Bug#14045)
Xue Fuqiao [Sat, 25 May 2013 01:55:00 +0000 (09:55 +0800)]
* callproc.c (call_process): Refine the doc string.  (Bug#14045)

11 years agoChangeLog fix
Xue Fuqiao [Sat, 25 May 2013 01:43:02 +0000 (09:43 +0800)]
ChangeLog fix

11 years ago* refcards/dired-ref.tex: Refine some entries.
Xue Fuqiao [Sat, 25 May 2013 01:39:03 +0000 (09:39 +0800)]
* refcards/dired-ref.tex: Refine some entries.

11 years agoRefine the documentation of Flymake
Xue Fuqiao [Sat, 25 May 2013 01:26:12 +0000 (09:26 +0800)]
Refine the documentation of Flymake

* progmodes/flymake.el (flymake-save-buffer-in-file)
(flymake-makehash, flymake-posn-at-point-as-event, flymake-nop)
(flymake-selected-frame, flymake-log, flymake-ins-after)
(flymake-set-at, flymake-get-buildfile-from-cache)
(flymake-add-buildfile-to-cache, flymake-clear-buildfile-cache)
(flymake-find-possible-master-files, flymake-save-buffer-in-file):
Refine the doc string.
(flymake-get-file-name-mode-and-masks): Reformat.
(flymake-get-real-file-name-function): Fix a minor bug.

* flymake.texi: Changing from one space between sentences to two.

11 years ago* lisp/progmodes/grep.el (grep-mode-font-lock-keywords): Support =linenumber=
Juri Linkov [Fri, 24 May 2013 20:54:38 +0000 (23:54 +0300)]
* lisp/progmodes/grep.el (grep-mode-font-lock-keywords): Support =linenumber=
format used by git-grep for lines with function names.

Fixes: debbugs:13549

11 years ago* lisp/emacs-lisp/smie.el (smie-auto-fill): Rework to be more robust.
Stefan Monnier [Fri, 24 May 2013 19:37:55 +0000 (15:37 -0400)]
* lisp/emacs-lisp/smie.el (smie-auto-fill): Rework to be more robust.
(smie-setup): Use add-function to set it.

* lisp/progmodes/octave.el (octave-smie-rules): Return nil rather than
0 after a semi-colon; it works better for smie-auto-fill.
(octave--indent-new-comment-line): New function.
(octave-indent-new-comment-line): Use it (indirectly).
(octave-mode): Don't disable smie-auto-fill.  Use add-function to
modify comment-line-break-function.

11 years ago* lisp/sort.el (delete-duplicate-lines): Accept an optional `keep-blanks'
Sam Steingold [Fri, 24 May 2013 18:39:21 +0000 (14:39 -0400)]
* lisp/sort.el (delete-duplicate-lines): Accept an optional `keep-blanks'
argument (before the `interactive' argument).

11 years ago* lisp/image-mode.el (image-mode-winprops): Add winprops to
Stefan Monnier [Fri, 24 May 2013 17:42:23 +0000 (13:42 -0400)]
* lisp/image-mode.el (image-mode-winprops): Add winprops to
image-mode-winprops-alist before running image-mode-new-window-functions.
* lisp/doc-view.el (doc-view-new-window-function): Don't delay
doc-view-goto-page via timers.

Fixes: debbugs:14435

11 years agolisp/gnus/sieve.el (sieve-setup-buffer): Fix default port value in sieve buffer setup
Julien Danjou [Fri, 24 May 2013 14:36:12 +0000 (14:36 +0000)]
lisp/gnus/sieve.el (sieve-setup-buffer): Fix default port value in sieve buffer setup

11 years agoChangeLog for the previous commit
Dmitry Gutov [Fri, 24 May 2013 13:39:53 +0000 (17:39 +0400)]
ChangeLog for the previous commit

11 years ago* themes/leuven-theme.el: Update theme.
Fabrice Niessen [Fri, 24 May 2013 13:37:15 +0000 (17:37 +0400)]
* themes/leuven-theme.el: Update theme.

11 years ago* doc-view.el: Integrate with desktop.el. (Bug#14435)
Tassilo Horn [Fri, 24 May 2013 10:54:20 +0000 (12:54 +0200)]
* doc-view.el: Integrate with desktop.el.  (Bug#14435)
(doc-view-desktop-save-buffer): New function.
(doc-view-restore-desktop-buffer): New function.
(desktop-buffer-mode-handlers): Add
`doc-view-restore-desktop-buffer' as desktop.el buffer mode
handler.
(doc-view-mode): Set `doc-view-desktop-save-buffer' as custom
`desktop-save-buffer' function.

11 years agoxesam.el is obsolete.
Michael Albinus [Fri, 24 May 2013 10:43:31 +0000 (12:43 +0200)]
xesam.el is obsolete.

11 years ago* net/xesam.el: Move to obsolete/.
Michael Albinus [Fri, 24 May 2013 10:35:56 +0000 (12:35 +0200)]
* net/xesam.el: Move to obsolete/.

11 years ago* net/tramp-gvfs.el (tramp-gvfs-enabled): New defconst.
Michael Albinus [Fri, 24 May 2013 10:03:45 +0000 (12:03 +0200)]
* net/tramp-gvfs.el (tramp-gvfs-enabled): New defconst.
(tramp-gvfs-file-name-handler): Raise a user error when
`tramp-gvfs-enabled' is nil.
(top): Register signals only when `tramp-gvfs-enabled' is non-nil.
Do not raise a user error when loading package.  (Bug#14447)

11 years agoSilence some cedet compilation warnings
Glenn Morris [Fri, 24 May 2013 07:01:49 +0000 (00:01 -0700)]
Silence some cedet compilation warnings

* cedet/semantic/bovine/c-by.el (semantic-parse-region):
* cedet/semantic/wisent/javat-wy.el (semantic-parse-region):
* cedet/semantic/wisent/js-wy.el (semantic-parse-region):
* cedet/semantic/wisent/python-wy.el (semantic-parse-region): Declare.

* cedet/semantic/bovine/grammar.el (bovine-make-parsers):
Avoid free variable `copyright-end'.