]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years ago* lisp/ielm.el (ielm-indent-line): Use non-nil arg of comint-bol
Juri Linkov [Fri, 30 Oct 2015 00:04:42 +0000 (02:04 +0200)]
* lisp/ielm.el (ielm-indent-line): Use non-nil arg of comint-bol

to go to the beginning of text line instead of command line.
http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02360.html

8 years ago; * src/lread.c (syms_of_lread) <load-path>: Improve the doc string.
Eli Zaretskii [Thu, 29 Oct 2015 18:47:09 +0000 (20:47 +0200)]
; * src/lread.c (syms_of_lread) <load-path>: Improve the doc string.

8 years ago; Improve documentation of 'unhandled-file-name-directory'
Eli Zaretskii [Thu, 29 Oct 2015 17:48:18 +0000 (19:48 +0200)]
; Improve documentation of 'unhandled-file-name-directory'

* doc/lispref/files.texi (Magic File Names): Better wording for the
last change in the documentation of 'unhandled-file-name-directory'.

8 years agoFix encoding of saving *Help* buffers
Eli Zaretskii [Thu, 29 Oct 2015 17:37:24 +0000 (19:37 +0200)]
Fix encoding of saving *Help* buffers

* lisp/help-fns.el (describe-function-1): If we use curved quotes,
set help buffer's buffer-file-coding-system to UTF-8.  (Bug#21780)

8 years ago* lisp/emacs-lisp/cl-generic.el: Add (major-mode MODE) context
Stefan Monnier [Thu, 29 Oct 2015 15:06:31 +0000 (11:06 -0400)]
* lisp/emacs-lisp/cl-generic.el: Add (major-mode MODE) context

(cl--generic-derived-specializers): New function.
(cl--generic-derived-generalizer): New generalizer.
(cl-generic-generalizers): New specializer (derived-mode MODE).
(cl--generic-split-args): Apply the rewriter, if any.
(cl-generic-define-context-rewriter): New macro.
(major-mode): Use it to define a new context-rewriter, so we can write
`(major-mode MODE)' instead of `(major-mode (derived-mode MODE))'.

* lisp/frame.el (window-system): New context-rewriter so we can write
`(window-system VAL)' instead of (window-system (eql VAL)).
(cl--generic-split-args): Apply the rewriter, if any.
(frame-creation-function): Use the new syntax.

* lisp/term/x-win.el (window-system-initialization)
(handle-args-function, frame-creation-function)
(gui-backend-set-selection, gui-backend-selection-owner-p)
(gui-backend-selection-exists-p, gui-backend-get-selection):
* lisp/term/w32-win.el (window-system-initialization)
(handle-args-function, frame-creation-function)
(gui-backend-set-selection, gui-backend-get-selection)
(gui-backend-selection-owner-p, gui-backend-selection-exists-p):
* lisp/term/pc-win.el (gui-backend-get-selection)
(gui-backend-selection-exists-p, gui-backend-selection-owner-p)
(gui-backend-set-selection, window-system-initialization)
(frame-creation-function, handle-args-function):
* lisp/term/ns-win.el (window-system-initialization)
(handle-args-function, frame-creation-function)
(gui-backend-set-selection, gui-backend-selection-exists-p)
(gui-backend-get-selection):
* lisp/startup.el (handle-args-function):
* lisp/term/xterm.el (gui-backend-get-selection)
(gui-backend-set-selection): Use the new syntax.

8 years ago* test/indent/css-mode.css: Add tests for url(...) syntax.
Stefan Monnier [Thu, 29 Oct 2015 14:36:52 +0000 (10:36 -0400)]
* test/indent/css-mode.css: Add tests for url(...) syntax.

8 years ago* lisp/emacs-lisp/smie.el: Use `declare' for `pure'
Stefan Monnier [Thu, 29 Oct 2015 14:35:08 +0000 (10:35 -0400)]
* lisp/emacs-lisp/smie.el: Use `declare' for `pure'

(smie-precs->prec2, smie-merge-prec2s, smie-bnf->prec2, smie-prec2->grammar):
Use `declare'.

8 years ago* lisp/emacs-lisp/cl-generic.el: Accomodate future changes
Stefan Monnier [Thu, 29 Oct 2015 14:33:36 +0000 (10:33 -0400)]
* lisp/emacs-lisp/cl-generic.el: Accomodate future changes

(cl--generic-generalizer): Add `name' field.
(cl-generic-make-generalizer): Add corresponding `name' argument.
(cl-generic-define-generalizer): New macro.
(cl--generic-head-generalizer, cl--generic-eql-generalizer)
(cl--generic-struct-generalizer, cl--generic-typeof-generalizer)
(cl--generic-t-generalizer): Use it.
(cl-generic-ensure-function): Add `noerror' argument.
(cl-generic-define): Use it so we don't follow aliases.
(cl-generic-define-method): Preserve pre-existing ordering of methods.
(cl--generic-arg-specializer): New function.
(cl--generic-cache-miss): Use it.
(cl-generic-generalizers): Only fset a temporary definition
during bootstrap.
(cl--generic-struct-tag, cl--generic-struct-specializers):
Allow extra arguments.

* lisp/emacs-lisp/eieio-compat.el (eieio--generic-static-symbol-generalizer)
(eieio--generic-static-object-generalizer): Use cl-generic-define-generalizer.
(eieio--generic-static-symbol-specializers): Allow extra arguments.

* lisp/emacs-lisp/eieio-core.el (eieio--generic-generalizer)
(eieio--generic-subclass-generalizer): Use cl-generic-define-generalizer.
(eieio--generic-subclass-specializers): Allow extra arguments.

8 years ago* lisp/emacs-lisp/bytecomp.el (compile-defun): Add defvars in scope.
Stefan Monnier [Thu, 29 Oct 2015 13:25:18 +0000 (09:25 -0400)]
* lisp/emacs-lisp/bytecomp.el (compile-defun): Add defvars in scope.

8 years agoAdd "afp" method to Tramp
Michael Albinus [Thu, 29 Oct 2015 13:05:55 +0000 (14:05 +0100)]
Add "afp" method to Tramp

* doc/misc/tramp.texi (GVFS based methods): Describe `afp' method.

* lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "afp" method.
(tramp-gvfs-handle-expand-file-name)
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec)
(tramp-gvfs-maybe-open-connection): Support also "afp".
(tramp-gvfs-handle-file-attributes): Handle the case of empty
"owner::user" and "owner::group" entries.

8 years agoHandle negative coordinates in ‘x_calc_absolute_position’
Andy Moreton [Thu, 29 Oct 2015 07:46:43 +0000 (08:46 +0100)]
Handle negative coordinates in ‘x_calc_absolute_position’

* src/w32term.c (x_calc_absolute_position): Find display origin to
allow for negative coordinates.

8 years ago(internal--syntax-propertize): Save match-data here (bug#21766)
Stefan Monnier [Thu, 29 Oct 2015 02:18:47 +0000 (22:18 -0400)]
(internal--syntax-propertize): Save match-data here (bug#21766)

* lisp/emacs-lisp/syntax.el (internal--syntax-propertize): Save match-data.
* lisp/simple.el (delete-trailing-whitespace): Undo last change.

8 years agoDon't require default-directory to end with a slash
Dmitry Gutov [Thu, 29 Oct 2015 01:00:50 +0000 (03:00 +0200)]
Don't require default-directory to end with a slash

* doc/lispref/files.texi (Magic File Names): Document the change
in unhandled-file-name-directory.

* lisp/url/url-handlers.el
(url-handler-unhandled-file-name-directory): Update accordingly.

* src/buffer.c (default-directory): Update the docsting.

* src/fileio.c (unhandled-file-name-directory): Default to calling
`file-name-as-directory'
(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02294.html).

8 years ago* lisp/isearch.el: Delete some outdated comments
Artur Malabarba [Thu, 29 Oct 2015 00:22:50 +0000 (00:22 +0000)]
* lisp/isearch.el: Delete some outdated comments

8 years agoFix eshell/clear not working if the output has a small line count
Vibhav Pant [Wed, 28 Oct 2015 17:07:34 +0000 (22:37 +0530)]
Fix eshell/clear not working if the output has a small line count

* lisp/eshell/esh-mode.el: (eshell/clear): Use (window-size) as the
number of newlines to be inserted. This fixes the issue where
eshell/clear wouldn't work if the prompt was not at the bottom of the
window, and the output wasn't too long.

8 years ago; * etc/NEWS: Document `search-default-regexp-mode'
Artur Malabarba [Wed, 28 Oct 2015 21:12:47 +0000 (21:12 +0000)]
; * etc/NEWS: Document `search-default-regexp-mode'

8 years ago* lisp/files.el (write-file): Use vc-refresh-state.
Stefan Monnier [Wed, 28 Oct 2015 18:01:18 +0000 (14:01 -0400)]
* lisp/files.el (write-file): Use vc-refresh-state.

8 years ago* lisp/autorevert.el (auto-revert-handler): Use vc-refresh-state.
Stefan Monnier [Wed, 28 Oct 2015 18:00:59 +0000 (14:00 -0400)]
* lisp/autorevert.el (auto-revert-handler): Use vc-refresh-state.

8 years ago* lisp/vc/pcvs.el (cvs-revert-if-needed): Use vc-refresh-state.
Stefan Monnier [Wed, 28 Oct 2015 18:00:24 +0000 (14:00 -0400)]
* lisp/vc/pcvs.el (cvs-revert-if-needed): Use vc-refresh-state.

8 years ago* lisp/emacs-lisp/macroexp.el: Tweak macroexp-if optimizations
Stefan Monnier [Wed, 28 Oct 2015 17:59:42 +0000 (13:59 -0400)]
* lisp/emacs-lisp/macroexp.el: Tweak macroexp-if optimizations

(macroexp-unprogn): Make sure we never return an empty list.
(macroexp-if): Remove unused (and unsafe) optimization.
Optimize (if A T (if B T E)) into (if (or A B) T E) instead, which does
occur occasionally.

8 years agoFix bug#21766 and add test
Juanma Barranquero [Wed, 28 Oct 2015 08:55:25 +0000 (09:55 +0100)]
Fix bug#21766 and add test

* lisp/simple.el (delete-trailing-whitespace): Save match data when
calling `skip-syntax-backward'.
* test/automated/simple-test.el (simple-delete-trailing-whitespace):
New test.

8 years ago* doc/lispref/sequences.texi (Sequence Functions): Fix typo
Artur Malabarba [Wed, 28 Oct 2015 17:06:27 +0000 (17:06 +0000)]
* doc/lispref/sequences.texi (Sequence Functions): Fix typo

8 years ago* src/dispnew.c (init_display): Simplify overflow checking.
Paul Eggert [Wed, 28 Oct 2015 16:10:17 +0000 (09:10 -0700)]
* src/dispnew.c (init_display): Simplify overflow checking.

8 years ago* lisp/character-fold.el (character-fold-to-regexp): Fix case
Artur Malabarba [Wed, 28 Oct 2015 15:50:17 +0000 (15:50 +0000)]
* lisp/character-fold.el (character-fold-to-regexp): Fix case

where string ends in space

8 years ago* lisp/emacs-lisp/seq.el (seq-mapn): New function
Artur Malabarba [Wed, 28 Oct 2015 14:27:39 +0000 (14:27 +0000)]
* lisp/emacs-lisp/seq.el (seq-mapn): New function

* doc/lispref/sequences.texi (Sequence Functions): Document seq-mapn

8 years ago* lisp/character-fold.el: Make compatible with lax-whitespace
Artur Malabarba [Wed, 28 Oct 2015 15:03:47 +0000 (15:03 +0000)]
* lisp/character-fold.el: Make compatible with lax-whitespace

(character-fold-to-regexp): Rework internals to play nice with
lax-whitespacing.

When the user types a space, we want to match the table entry for
?\s, which is generally a regexp like "[ ...]".  However, the
`search-spaces-regexp' variable doesn't "see" spaces inside these
regexp constructs, so we need to use "\\( \\|[ ...]\\)" instead (to
manually expose a space).

Furthermore, the lax search engine acts on a bunch of spaces, not
on individual spaces, so if the string contains sequential spaces
like "  ", we need to keep them grouped together like this:
"\\(  \\|[ ...][ ...]\\)".

8 years ago* lisp/isearch.el: Refactor momentary messages
Artur Malabarba [Wed, 28 Oct 2015 12:01:39 +0000 (12:01 +0000)]
* lisp/isearch.el: Refactor momentary messages

(isearch--momentary-message): New function.
(isearch-toggle-lax-whitespace, isearch-toggle-case-fold)
(isearch-toggle-invisible): Use it.

8 years ago* lisp/isearch.el: Define all toggles with `isearch-define-mode-toggle'
Artur Malabarba [Wed, 28 Oct 2015 11:43:52 +0000 (11:43 +0000)]
* lisp/isearch.el: Define all toggles with `isearch-define-mode-toggle'

(isearch-define-mode-toggle): New macro.
(isearch-toggle-invisible): Renamed to
`isearch-define-mode-toggle'.
(isearch-toggle-case-fold, isearch-toggle-invisible)
(isearch-toggle-regexp, isearch-toggle-lax-whitespace): Define
with `isearch-define-mode-toggle'.

8 years agoAvoid using `add-to-list' on a let-local var in tramp-smb.el
Michael Albinus [Wed, 28 Oct 2015 14:31:40 +0000 (15:31 +0100)]
Avoid using `add-to-list' on a let-local var in tramp-smb.el

* lisp/net/tramp-compat.el (tramp-compat-delete-dups): New defun.
* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Use it.

8 years agoMerge branch 'master' of /Volumes/HD2/build/emacs-git-ssh
Anders Lindgren [Wed, 28 Oct 2015 11:22:44 +0000 (12:22 +0100)]
Merge branch 'master' of /Volumes/HD2/build/emacs-git-ssh

8 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/emacs
Anders Lindgren [Wed, 28 Oct 2015 11:17:33 +0000 (12:17 +0100)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/emacs

8 years agoMerge branch 'master' of /Volumes/HD2/build/emacs-git-ssh
Anders Lindgren [Wed, 28 Oct 2015 11:13:18 +0000 (12:13 +0100)]
Merge branch 'master' of /Volumes/HD2/build/emacs-git-ssh

8 years agoRevert 692bce5b9eccfae19ae2a5a23a9ccd8d6bf86076
Michael Albinus [Wed, 28 Oct 2015 11:12:51 +0000 (12:12 +0100)]
Revert 692bce5b9eccfae19ae2a5a23a9ccd8d6bf86076

* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files):
Revert 692bce5b9eccfae19ae2a5a23a9ccd8d6bf86076, `delete-dups'
does not exist in XEmacs 21.4.

8 years agoFixed OS X startup crash.
Anders Lindgren [Wed, 28 Oct 2015 11:11:46 +0000 (12:11 +0100)]
Fixed OS X startup crash.

Input events started to arrive before ns_term_init() was finished.
Solved by blocking input. This also seems to correct the "You
can't open the application "Emacs" because it may be damaged or
incomplete" error issued when double-clicking on the Emacs
application.

* nsterm.m (ns_constrain_all_frames, ns_init_term): Block input.
* nsterm.m (ns_send_appdefined, EmacsApp): Trace output.

8 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/emacs
Anders Lindgren [Wed, 28 Oct 2015 11:09:51 +0000 (12:09 +0100)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/emacs

8 years ago* src/process.c (Fget_buffer_process): Improve docstring
Artur Malabarba [Wed, 28 Oct 2015 11:07:41 +0000 (11:07 +0000)]
* src/process.c (Fget_buffer_process): Improve docstring

Document the fact that it doesn't return dead processes.

8 years agoFix incorrect NextStep tool-bar-mode -- wrong number of rows in frame.
Anders Lindgren [Wed, 28 Oct 2015 11:06:39 +0000 (12:06 +0100)]
Fix incorrect NextStep tool-bar-mode -- wrong number of rows in frame.

* nsterm.h (struct ns_output): New flag, in_animation.
* nsfns.m (Fx_create_frame): Initialize in_animation flag.
* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Set
in_animation flag around call to "setVisible". Set new tool bar
height before call to setVisible.
* nsterm.m (x_set_window_size): Don't call [view setRow:
andColumns:] as this fools the subsequent call to updateFrameSize
from performing the real resize.
(windowDidResize): Don't update anything when in_animation is
non-zero.

Trace output.

* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar)
(EmacsToolbar):
* nsterm.m (x_set_window_size, updateFrameSize)
([EmacsView setRows: andColumns:])

8 years ago* lisp/emacs-lisp/thunk.el (thunk-delay): Fix the macro.
Nicolas Petton [Wed, 28 Oct 2015 08:54:00 +0000 (09:54 +0100)]
* lisp/emacs-lisp/thunk.el (thunk-delay): Fix the macro.

8 years agoPrettify TeX macros not ending in a word char
Tassilo Horn [Wed, 28 Oct 2015 07:47:26 +0000 (08:47 +0100)]
Prettify TeX macros not ending in a word char

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Prettify
macros which don't end in a word character.

8 years ago; Revert "Don't declare vc-exec-after anymore"
Dmitry Gutov [Wed, 28 Oct 2015 00:43:14 +0000 (02:43 +0200)]
; Revert "Don't declare vc-exec-after anymore"

This reverts commit 5e4395544c184d9a8702cf05c7aee9329b0b9482.

(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02009.html)

8 years agoPipe Hg commit descriptions through 'tabindent'
Dmitry Gutov [Wed, 28 Oct 2015 00:42:51 +0000 (02:42 +0200)]
Pipe Hg commit descriptions through 'tabindent'

* lisp/vc/vc-hg.el (vc-hg-log-format): Pipe commit description
through 'tabindent'.
(vc-hg-log-view-mode): Set tab-width to 2 locally.
(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02259.html)

8 years ago* lisp/net/tramp-smb.el: Avoid using `add-to-list' on a let-local var
Stefan Monnier [Wed, 28 Oct 2015 00:25:55 +0000 (20:25 -0400)]
* lisp/net/tramp-smb.el: Avoid using `add-to-list' on a let-local var

* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Use `delete-dups'.
* lisp/net/tramp.el (auto-save-file-name-transforms): Declare.

8 years ago* lisp/international/ccl.el: Use lexical-binding
Stefan Monnier [Wed, 28 Oct 2015 00:23:32 +0000 (20:23 -0400)]
* lisp/international/ccl.el: Use lexical-binding

(ccl-compile-if): Remove unused var `false-ic'.
(ccl-compile-write-repeat): Remove unused var `i'.
(ccl-compile-map-single): Remove unused var `id'.
(ccl-dump, ccl-dump-binary): Use explicit let-binding to bind the
dynamic var `ccl-code'.

8 years ago* lisp/json.el (json-new-object): Optimize trivial `list' call
Stefan Monnier [Wed, 28 Oct 2015 00:19:51 +0000 (20:19 -0400)]
* lisp/json.el (json-new-object): Optimize trivial `list' call

8 years ago* lisp/help.el: Fix bug with incorrect arglist string
Stefan Monnier [Wed, 28 Oct 2015 00:18:45 +0000 (20:18 -0400)]
* lisp/help.el: Fix bug with incorrect arglist string

(help-add-fundoc-usage): Don't mistake a mis-formatted string for a list.

8 years ago* lisp/gnus/gnus-topic.el: Silence some warnings
Stefan Monnier [Wed, 28 Oct 2015 00:15:31 +0000 (20:15 -0400)]
* lisp/gnus/gnus-topic.el: Silence some warnings

(gnus-topic-prepare-topic): Remove unused var `topic'.
(gnus-topic-remove-topic): Mark unused arg `hide'.
(gnus-tmp-header): Declare.
(gnus-topic-goto-missing-group): Remove unused var `entry'.
(gnus-topic-unmark-topic): Mark unused arg `dummy'.
(gnus-topic-copy-matching): Mark unused arg `copyp'.
Move initialization of `topic' into its declaration.

8 years agoMinor CEDET fixes
Stephen Leake [Tue, 27 Oct 2015 15:35:15 +0000 (10:35 -0500)]
Minor CEDET fixes

* lisp/cedet/cedet-global.el (cedet-gnu-global-gtags-call): Handle
warnings from gtags about invalid options.
(cedet-gnu-global-create/update-database): Do incremental update
properly.

* lisp/cedet/ede/generic.el (ede-enable-generic-projects): Get monotone
root right.

8 years ago; Fix comments in file-notify-tests.el
Michael Albinus [Tue, 27 Oct 2015 15:06:33 +0000 (16:06 +0100)]
; Fix comments in file-notify-tests.el

8 years agoFall back to polling in autorevert when needed
Michael Albinus [Tue, 27 Oct 2015 15:02:26 +0000 (16:02 +0100)]
Fall back to polling in autorevert when needed

* lisp/autorevert.el (auto-revert-notify-handler): When a
`stopped' event arrives from file notification, fall back to polling.

* test/automated/file-notify-tests.el
(file-notify-test03-autorevert): Extend test for polling when file
notification ceases to work.

8 years agoShow full commit messages in 'hg log' when appropriate
Dmitry Gutov [Tue, 27 Oct 2015 12:55:06 +0000 (14:55 +0200)]
Show full commit messages in 'hg log' when appropriate

* lisp/vc/vc-hg.el (vc-hg-log-format): New variable.
(vc-hg-print-log, vc-hg-expanded-log-entry): Use it.
(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02191.html)

8 years agoUse a plain svg file for the icon
Nicolas Petton [Tue, 27 Oct 2015 12:41:32 +0000 (13:41 +0100)]
Use a plain svg file for the icon

* etc/images/icons/hicolor/scalable/apps/emacs.svg: Use a plain SVG
  format instead of the Inkscape SVG format.

8 years agoFix subtle bug in auto-revert-tests.el
Michael Albinus [Tue, 27 Oct 2015 09:01:13 +0000 (10:01 +0100)]
Fix subtle bug in auto-revert-tests.el

* test/automated/auto-revert-tests.el
(auto-revert-test02-auto-revert-mode-dired): Narrow *Messages*
buffer where it belongs to.  (Bug#21668)

8 years ago* lisp/emacs-lisp/map.el: Better docstrings.
Nicolas Petton [Mon, 26 Oct 2015 21:23:02 +0000 (22:23 +0100)]
* lisp/emacs-lisp/map.el: Better docstrings.

8 years ago* lisp/emacs-lisp/seq.el: Better docstrings.
Nicolas Petton [Mon, 26 Oct 2015 21:16:27 +0000 (22:16 +0100)]
* lisp/emacs-lisp/seq.el: Better docstrings.

8 years ago* lisp/emacs-lisp/seq.el: Rename all seq argumentss to sequence.
Nicolas Petton [Mon, 26 Oct 2015 20:51:30 +0000 (21:51 +0100)]
* lisp/emacs-lisp/seq.el: Rename all seq argumentss to sequence.

8 years ago* lisp/emacs-lisp/ert.el: Print results without newline escaping
Phillip Lord [Mon, 26 Oct 2015 20:27:16 +0000 (20:27 +0000)]
* lisp/emacs-lisp/ert.el: Print results without newline escaping

8 years agoClarify that load-path contents should be directory file names
Stephen Leake [Mon, 26 Oct 2015 19:38:59 +0000 (14:38 -0500)]
Clarify that load-path contents should be directory file names

* doc/lispref/files.texi (Directory Names): Define and use "directory
file name". Recommend `expand-file-name'.

* src/lread.c (load-path): Fix doc string; elements are directory file
names.

8 years agoFix simple-test.el test
Eli Zaretskii [Mon, 26 Oct 2015 19:25:10 +0000 (21:25 +0200)]
Fix simple-test.el test

* test/automated/simple-test.el (simple-test--dummy-buffer): Make
sure indentation doesn't use TABs, otherwise the 6th test might
fail.

8 years ago* lisp/net/eww.el (eww-bookmark-prepare): Use truncate-string-to-width.
Mark Oteiza [Sun, 11 Oct 2015 02:43:44 +0000 (22:43 -0400)]
* lisp/net/eww.el (eww-bookmark-prepare): Use truncate-string-to-width.

`substring' does not account for full width characters.

8 years agoFurther work on `stopped' events in filenotify.el
Michael Albinus [Mon, 26 Oct 2015 15:46:48 +0000 (16:46 +0100)]
Further work on `stopped' events in filenotify.el

* doc/lispref/os.texi (File Notifications): Rework examples.

* lisp/filenotify.el (file-notify--rm-descriptor): Optional parameter.
(file-notify--rm-descriptor, file-notify-callback): Improve check
for sending `stopped' event.
(file-notify-add-watch): Check for more events for `inotify'.

* test/automated/file-notify-tests.el
(file-notify--test-expected-events): New defvar.
(file-notify--test-with-events): Use it.
(file-notify--test-cleanup): Make it more robust when deleting
directories.
(file-notify--test-event-test): Check also for watched directories.
(file-notify--test-event-handler): Suppress temporary .#files.
(file-notify-test02-events, file-notify-test04-file-validity):
Rework `stopped' events.
(file-notify-test05-dir-validity): Wait for events when appropriate.

8 years ago* src/keyboard.c (post-command-hook): Shorten docstring
Artur Malabarba [Mon, 26 Oct 2015 10:05:09 +0000 (10:05 +0000)]
* src/keyboard.c (post-command-hook): Shorten docstring

8 years agoFix infinite loop in sh-script's SMIE code
Tassilo Horn [Mon, 26 Oct 2015 07:01:18 +0000 (08:01 +0100)]
Fix infinite loop in sh-script's SMIE code

* lisp/progmodes/sh-script.el (sh-smie-sh-forward-token): Fix infinite
loop (bug#21747).

8 years ago* lisp/isearch.el (search-default-regexp-mode): Revert to nil
Artur Malabarba [Mon, 26 Oct 2015 01:38:48 +0000 (01:38 +0000)]
* lisp/isearch.el (search-default-regexp-mode): Revert to nil

Character-fold search _still_ doesn't play well with
lax-whitespace.  So disable it by default (again) for now.

8 years ago* lisp/isearch.el: No visual feedback for default search mode
Artur Malabarba [Mon, 26 Oct 2015 00:51:02 +0000 (00:51 +0000)]
* lisp/isearch.el: No visual feedback for default search mode

During an isearch where character-folding is the default, we don't
want to take up minibuffer space just to tell the user that
"Char-fold " is on.  The same goes for other modes, if the user
changes the default.  In contrast, if the user toggles OFF the
default mode, they should see "Literal", to distinguish it from
the default mode.

(isearch--describe-regexp-mode): Return "" if describing the
default mode, and return "literal " if describing a plain search
and it is not default.

8 years ago* test/automated/simple-test.el: New file
Artur Malabarba [Sat, 24 Oct 2015 22:43:06 +0000 (23:43 +0100)]
* test/automated/simple-test.el: New file

Define tests for `newline' and `open-line'.

8 years ago* lisp/simple.el (open-line): Integrate with electric-indent-mode
Artur Malabarba [Sat, 24 Oct 2015 21:26:27 +0000 (22:26 +0100)]
* lisp/simple.el (open-line): Integrate with electric-indent-mode

Also run `post-self-insert-hook' when called interactively.

8 years ago* lisp/simple.el (open-line): Fix docstring
Artur Malabarba [Sat, 24 Oct 2015 21:24:09 +0000 (22:24 +0100)]
* lisp/simple.el (open-line): Fix docstring

Also explain apparently redundant line.

8 years agoSync with soap-client repository, version 3.0.1
Thomas Fitzsimmons [Sun, 25 Oct 2015 21:00:37 +0000 (17:00 -0400)]
Sync with soap-client repository, version 3.0.1

* soap-client.el, soap-inspect.el: Bump version to 3.0.1.

* soap-client.el, soap-inspect.el: Update home page.

* soap-client.el, soap-inspect.el: Bump version to 3.0.0.

* soap-inspect.el: Merge in changes from Emacs master branch.

* soap-client.el: Merge in changes from Emacs master branch.

* soap-inspect.el: Shorten first line description.

* soap-client.el: Make a small whitespace fix.

* soap-inspect.el: Update copyright years.

* soap-client.el (soap-encoded-namespaces): Move above first use
in soap-encode-xs-element.

* soap-client.el (soap-type-is-array?): new defun
(soap-encode-xs-element): handle array elements in this function
(soap-encode-xs-complex-type): flag error if asked to encode an
array type, this is handled in `soap-encode-xs-element'

* soap-inspect.el (soap-inspect-xs-attribute-group): Do not print
type for attribute group.

* soap-inspect.el (soap-sample-value-for-xs-attribute-group): New
function.
(soap-inspect-xs-attribute-group): Likewise.

* soap-inspect.el
(soap-resolve-references-for-xs-attribute-group): Resolve
references of attributes in an attribute group.

* soap-client.el (soap-decode-xs-attributes): Process attribute
type directly, not through soap-wsdl-get.

* soap-client.el (soap-xs-parse-attribute): Leave reference nil if
reference attribute is nil.

* soap-client.el (soap-resolve-references-for-xs-attribute):
Convert XML schema attributes to xsd:string.

* soap-inspect.el (soap-sample-value-for-xs-attribute): New
function.
(soap-sample-value-for-xs-simple-type): Prepend attributes to
result.
(soap-sample-value-for-xs-complex-type): Likewise.
(soap-inspect-xs-attribute): New function.
(soap-inspect-xs-simple-type): Print attributes.
(soap-inspect-xs-complex-type): Likewise.

* soap-inspect.el (soap-resolve-references-for-xs-simple-type):
Resolve references for attributes.
(soap-resolve-references-for-xs-complex-type): Likewise.

* soap-client.el (soap-xml-node-find-matching-child): Rename from
soap-xml-node-first-child.
(soap-xs-parse-attribute): Call soap-xml-node-find-matching-child.
(soap-xs-parse-simple-type): Likewise.

* soap-client.el (soap-invoke-async): Add error checking.

* soap-client.el (soap-invoke-internal): New function.
(soap-invoke-async): Call soap-invoke-internal.
(soap-invoke): Likewise.

* soap-client.el (soap-invoke-async): Ensure buffer passed to
url-retrieve callback is killed.

* soap-client.el (soap-parse-wsdl-phase-validate-node): Rename
function.
(soap-parse-wsdl-phase-fetch-imports): Likewise.
(soap-parse-wsdl-phase-parse-schema): Likewise.
(soap-parse-wsdl-phase-fetch-schema): Likewise.
(soap-parse-wsdl-phase-finish-parsing): Likewise.
(soap-parse-wsdl): Update calls.

* soap-client.el (soap-invoke-async): Fix callback invocation.

* soap-client.el (soap-invoke-async): New function.
(soap-invoke): Reimplement using soap-invoke-async.

* soap-client.el (soap-parse-server-response): Improve docstring.
(soap-invoke): Inline call to soap-parse-server-response.

* soap-client.el (soap-decode-xs-complex-type): Prevent incorrect
warning.

* soap-client.el (soap-parse-server-response): Rename
soap-process-url-response.  Destroy the mime part.
(soap-invoke): Call soap-parse-server-response.

* soap-client.el: Update copyright date.

* soap-client.el: Fix checkdoc issues.

* soap-client.el: Fix indentation and long lines.

* soap-client.el (soap-time-format): Remove variable.
(soap-encode-xs-basic-type): Simplify date-time format detection.
(soap-decode-xs-basic-type): Remove soap-time-format support.

* soap-client.el (soap-process-url-response): New function.
(soap-fetch-xml-from-url): Call soap-process-url-response.
(soap-parse-wsdl-phase-1): New function.
(soap-parse-wsdl-phase-2): Likewise.
(soap-parse-wsdl-phase-3): Likewise.
(soap-parse-wsdl-phase-4): Likewise.
(soap-parse-wsdl-phase-5): Likewise.
(soap-parse-wsdl): Call phase functions.

* soap-client.el (soap-decode-xs-basic-type): Remove one-argument
and call.

* soap-client.el (soap-decode-date-time): Improve docstring.

* soap-client.el (soap-xmlschema-imports): Remove variable.
(soap-parse-schema): Add wsdl argument.  Look up XML schema
imports from wsdl.
(soap-load-wsdl): Do not set soap-xmlschema-imports.
(soap-parse-wsdl): Get XML schema imports from wsdl.

* soap-client.el (soap-current-file): Remove variable.
(soap-wsdl): Add current-file slot.
(soap-fetch-xml-from-url): Add wsdl argument.  Look up current
file from wsdl.
(soap-fetch-xml-from-file): Likewise.
(soap-fetch-xml): Likewise.
(soap-load-wsdl): Always create wsdl object first.
(soap-parse-wsdl): Pass wsdl to soap-fetch-xml.

* soap-client.el (soap-xs-element): Add is-group slot.
(soap-xs-parse-element): Set is-group slot.
(soap-resolve-references-for-xs-element): Skip is-group elements.
(soap-xs-complex-type): Add is-group slot.
(soap-xs-parse-complex-type): Set is-group slot.
(soap-xs-parse-sequence): Parse xsd:group elements.
(soap-resolve-references-for-xs-complex-type): Inline elements
from referenced xsd:group nodes.
(soap-parse-schema): Parse xsd:group nodes.

* soap-client.el (soap-invoke): Don't set url-http-version to 1.0.

* soap-client.el (soap-decode-xs-complex-type): Allow choice nodes
to accept multiple values.

* soap-client.el (soap-encode-body): Check parameters argument for
extra header values.

* soap-client.el (soap-well-known-xmlns): Add wsa and wsaw tags.
(soap-operation): Add input-action and output-action slots.
(soap-parse-operation): Parse wsaw:Action nodes.
(soap-encode-body): Encode service-url for WS-Addressing.
(soap-create-envelope): Likewise.
(soap-invoke): Update soap-create-envelope call to provide
service-url argument.

* soap-client.el (soap-decode-xs-complex-type): Support xsi:type
override attribute.
(soap-decode-array): Likewise.

* soap-client.el (soap-parse-schema): Handle location attribute.

* soap-client.el (soap-decode-type): Check that multiRef matched
validation regexp.

* soap-client.el (soap-encode-xs-simple-type): Encode xsd:list
nodes.
(soap-decode-xs-simple-type): Decode xsd:list nodes.

* soap-client.el (soap-get-candidate-elements): Fix reference
handling.

* soap-client.el (soap-xs-simple-type): Add is-list slot.
(soap-xs-parse-simple-type): Call soap-xs-add-list for xsd:list
nodes.
(soap-xs-add-list): New function.

* soap-client.el (soap-encode-xs-element): When a boolean is
expected, interpret nil as "false".

* soap-client.el (soap-make-xs-basic-types): Add gYearMonth,
gYear, gMonthDay, gDay and gMonth.

* soap-client.el (soap-time-format): New variable.
(soap-encode-xs-basic-type): Handle dateTime, time, date,
gYearMonth, gYear, gMonthDay, gDay and gMonth.
(soap-decode-date-time): New function.
(soap-decode-xs-basic-type): Use soap-decode-date-time.

* soap-client.el (soap-encode-xs-basic-type): Validate value after
encoding.
(soap-decode-xs-basic-type): Validate value before decoding.

* soap-client.el (soap-validate-xs-basic-type): New function.
(soap-validate-xs-simple-type): Call soap-validate-xs-basic-type.

* soap-client.el (soap-xs-add-union): Append result to base
instead of overwriting it.
(soap-validate-xs-simple-type): Add union support.

* soap-client.el (soap-xs-add-restriction): Translate pattern to
Emacs regexp using xsdre-translate.
(soap-validate-xs-simple-type): Validate value against pattern.

* soap-client.el (soap-xs-add-union): Preserve WSDL order of
inline simpleType nodes.
(soap-decode-type): Handle union types.

* soap-client.el (soap-decode-xs-attributes): Decode basic-type
attributes.

* soap-client.el (soap-get-xs-attributes-from-groups): renamed
from soap-xs-attribute-group-consolidate, all callers updated
(soap-get-xs-attributes): renamed from
soap-xs-attributes-consolidate, all callers updated

* soap-client.el (soap-xs-type): Add attribute-group slot.
(soap-xs-attribute-group): New type.
(soap-xs-parse-attribute-group): New function.
(soap-resolve-references-for-xs-attribute-group): Likewise.
(soap-xs-add-extension): Handle attribute groups.
(soap-resolve-references-for-xs-simple-type): Likewise.
(soap-xs-parse-complex-type): Likewise.
(soap-xs-parse-extension-or-restriction): Likewise.
(soap-resolve-references-for-xs-complex-type): Likewise.
(soap-xs-attribute-group-consolidate): New function.
(soap-xs-attributes-consolidate): Handle attribute groups.
(soap-parse-schema): Likewise.

* soap-client.el (soap-encode-xs-basic-type): Fix boolean
encoding.

* soap-client.el (soap-encode-xs-complex-type): Print ref element
names in warnings.

* soap-client.el (soap-decode-xs-complex-type): Fix splicing.

* soap-client.el (soap-decode-xs-complex-type): Eliminate invalid
warnings for choice types.

* soap-client.el (soap-encode-xs-complex-type-attributes): Also
encode base type attributes.

* soap-client.el (soap-encode-xs-complex-type): Fix compilation
warning.  Print e-name in warnings, or element if e-name is nil.

* soap-client.el (soap-xs-element): Add alternatives slot.
(soap-xs-parse-element): Set substitution-group.
(soap-resolve-references-for-xs-element): Populate alternatives
slot.
(soap-get-candidate-elements): New function.
(soap-encode-xs-complex-type): Iterate through all candidate
elements.  Handle types with nil type indicator.  Fix warning
logic.

* soap-client.el (soap-current-wsdl): moved declaration earlier in
the file to prevent compiler warning.

* soap-client.el (soap-node-optional): New function.
(soap-node-multiple): Likewise.
(soap-xs-parse-element): Call soap-node-optional and
soap-node-multiple.
(soap-xs-complex-type): Add optional? and multiple? slots.
(soap-xml-get-children-fq): New function.
(soap-xs-element-get-fq-name): Likewise.
(soap-xs-complex-type-optional-p): Likewise.
(soap-xs-complex-type-multiple-p): Likewise.
(soap-xs-attributes-consolidate): Likewise.
(soap-decode-xs-attributes): Likewise.
(soap-decode-xs-complex-type): Decode types with nil type
indicator.  Support children that use local namespaces.  Decode
attributes.  Add type considerations to optional? and multiple?
warnings.

* soap-client.el (soap-xs-parse-extension-or-restriction): Store
parsed attributes.
(soap-encode-xs-complex-type-attributes): Encode custom
attributes.

* soap-client.el (soap-encode-xs-complex-type-attributes): don't
add the xsi:type attribute (Exchange refuses requests which have
this attribute)

* soap-client.el, soap-inspect.el: converted to lexical binding,
corrected compiler warnings about unused function arguments and
local variables.

* soap-client.el (soap-decode-xs-complex-type): Handle nil type
indicator.
(soap-parse-envelope): Handle response headers.
(soap-parse-response): Likewise.  Only return non-nil decoded
values.

* soap-client.el (soap-validate-xs-simple-type): Return validated
value.

* soap-client.el (soap-xs-parse-element)
(soap-xs-parse-simple-type)
(soap-xs-parse-complex-type)
(soap-parse-message)
(soap-parse-operation): add the current namespace to the element
being created
(soap-resolve-references-for-xs-element)
(soap-resolve-references-for-xs-simple-type)
(soap-resolve-references-for-xs-complex-type)
(soap-resolve-references-for-operation): resolve the namespace to
the namespace tag
(soap-make-wsdl): specify a namespace tag when creating the xsd
and soapenc namespaces
(soap-wsdl-resolve-references): don't update namespace tags in
elements here
(soap-parse-port-type): bind the urn: to soap-target-xmlns
(soap-encode-body): don't add nil namespace tags to
soap-encoded-namespaces

* soap-inspect.el: use `soap-make-wsdl` to construct the object
for registering the soap-inspect method.Make debbugs tests pass
* soap-client.el (soap-decode-any-type): use soap-l2fq on the type
name, also skip string only nodes when decoding a structure.
(soap-xs-parse-complex-type): (BUG) dispatch parsing for choice
types too
(soap-encode-body): grab the header value from the param table

* soap-client.el (soap-should-encode-value-for-xs-element): new
function
(soap-encode-xs-element): don't encode nil value unless needed

* soap-client.el (soap-bound-operation): new slot `soap-body`
(soap-parse-binding): parse the message parts required in the body
(soap-encode-body): encode only the parts that are declared to be
part of the body

* soap-client.el (soap-encode-xs-element): use the fq name when
writing out the tag.
(soap-encode-body): remove hack that inserts the xmlns in the
element attributes list.

* soap-client.el (soap-xs-attribute): add "default" slot
(soap-xs-parse-attribute): default slot is set from the XML
"fixed" attribute.
(soap-encode-xs-complex-type-attributes): encode any attributes
that have a default value.  Also, don't put the xsi:nil attribute
when the complex type has no content anyway.

* soap-client.el (soap-well-known-xmlns): add the xml namespace
(soap-local-xmlns): start with the xml namespace
(soap-xml-node-first-child): skip xsd:annotation nodes too
(soap-make-xs-basic-types): more xsd types added
(soap-encode-xs-basic-type, soap-decode-xs-basic-type): handle
"language", "time", "date", "nonNegativeInteger"
(soap-resolve-references-for-xs-element): don't signal an error if
the element does not have a type.
(soap-xs-parse-simple-type): subtypes are handled with ecase,
added stum for xsd:list
(soap-xs-add-union): call soap-l2fq on all union members
(soap-xs-add-extension): call soap-l2fq on the base member
(soap-resolve-references-for-xs-simple-type): don't signal an
error if the simple type has no base.
(soap-resolve-references-for-xs-simple-type): bugfix, call
soap-wsdl-get on each type of the base

* soap-client.el (soap-resolve-references-for-xs-attribute):
referenced type can be eiher a simple type or a basic type
(soap-xs-add-restriction)
(soap-xs-parse-extension-or-restriction): use `soap-l2fq' on base
(soap-make-xs-basic-types)
(soap-encode-xs-basic-type, soap-decode-xs-basic-type): add
support for more XMLSchema basic types
(soap-current-file, soap-xmlschema-imports): new defvars
(soap-parse-schema): add locations from xsd:import tags to
`soap-xmlschema-imports'
(soap-wsdl): make destructor private
(soap-make-wsdl): new defun, SOAP-WSDL object constructor
(soap-wsdl-add-alias): check if we try to replace aliases
(soap-fetch-xml-from-url, soap-fetch-xml-from-file)
(soap-fetch-xml): new defuns
(soap-load-wsdl): updated to load the WSDL from either a file or
an url
(soap-load-wsdl-from-url): now an alias to `soap-load-wsdl'
(soap-parse-wsdl): process wsdl:import tags and imports from
`soap-xmlschema-imports'
* soap-client.el (soap-l2wk): bugfix: call symbolp instead of
symbol-name
(soap-l2fq): make the name part always a string
(soap-name-p): new defun, used for name tests

* soap-inspect.el (soap-sample-value-for-xs-complex-type): supply
sample values for choice types with a special tag
* soap-client.el (soap-encode-xs-complex-type): handle anonymous
elements correctly
(soap-encode-value): accept nodes that have no namespace tag

* soap-client.el (soap-invoke): encode the string for
`url-request-data' as UTF-8. Fixes issue 16

Co-authored-by: Alexandru Harsanyi <AlexHarsanyi@gmail.com>
8 years ago* lisp/progmodes/grep.el (grep): Doc fix. (Bug#21754)
Eli Zaretskii [Sun, 25 Oct 2015 20:05:44 +0000 (22:05 +0200)]
* lisp/progmodes/grep.el (grep): Doc fix.  (Bug#21754)

8 years ago* src/keyboard.c (post-command-hook): Extend the docstring
Artur Malabarba [Sun, 25 Oct 2015 14:34:18 +0000 (14:34 +0000)]
* src/keyboard.c (post-command-hook): Extend the docstring

Mainly, explain how to use it without hanging Emacs, or giving the
impression that it is hanging.  Also mention `pre-command-hook'.

(pre-command-hook): Mention `post-command-hook'.

8 years ago* lisp/custom.el (custom-declare-variable): Shorten code again
Artur Malabarba [Sun, 25 Oct 2015 11:24:40 +0000 (11:24 +0000)]
* lisp/custom.el (custom-declare-variable): Shorten code again

Without using pcase this time.  We can't use pcase because it is loaded
after custom in loadup.el.  Also add a comment explaining this to future
dummies like me.

8 years ago; ChangeLog.2 fixes
Juanma Barranquero [Sun, 25 Oct 2015 14:00:58 +0000 (15:00 +0100)]
; ChangeLog.2 fixes

8 years agoDocument file notification `stopped' event
Michael Albinus [Sun, 25 Oct 2015 13:59:45 +0000 (14:59 +0100)]
Document file notification `stopped' event

* doc/lispref/os.texi (File Notifications): Document `stopped event'.

8 years agoIntroduce `stopped' event in file notification
Michael Albinus [Sun, 25 Oct 2015 13:18:17 +0000 (14:18 +0100)]
Introduce `stopped' event in file notification

* lisp/filenotify.el (file-notify--rm-descriptor): New defun.
(file-notify-rm-watch): Use it.
(file-notify-callback): Implement `stopped' event.
(file-notify-add-watch): Mention `stopped' in the docstring.
Check, that upper directory exists.

* test/automated/file-notify-tests.el (file-notify-test01-add-watch):
Add two test cases.
(file-notify-test02-events): Handle also `stopped' event.
(file-notify-test04-file-validity): Add another test case.

8 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 25 Oct 2015 10:23:48 +0000 (06:23 -0400)]
; Auto-commit of ChangeLog files.

8 years agoRevert commit that broke 'make bootstrap'
Paul Eggert [Sun, 25 Oct 2015 07:29:42 +0000 (00:29 -0700)]
Revert commit that broke 'make bootstrap'

* lisp/custom.el (custom-declare-variable): Revert commit
79fac080d277fed07b3c192890ad59d36d9f83b6.  custom.el needs to work
even when pcase has not been defined yet, when doing bootstrapping.

8 years agoPort recent inline functions fix to Standard C
Paul Eggert [Sun, 25 Oct 2015 06:51:19 +0000 (23:51 -0700)]
Port recent inline functions fix to Standard C

* src/lisp.h (LISP_MACRO_DEFUN, LISP_MACRO_DEFUN_VOID): Remove.
All uses rewritten to define the function directly rather than to
use a macro to define the function.  This conforms to Standard C,
which does not allow stray semicolons at the top level.  I hope it
also avoids the problems with TAGS.  Those macros, though clever,
were pretty confusing anyway, and it wasn’t clear they were worth
the aggravation even without the TAGS problem.

8 years ago* lisp/isearch.el: Make character-fold search the default again
Artur Malabarba [Sun, 25 Oct 2015 00:52:01 +0000 (01:52 +0100)]
* lisp/isearch.el: Make character-fold search the default again

8 years ago* lisp/character-fold.el: Many improvements
Artur Malabarba [Sun, 25 Oct 2015 00:43:23 +0000 (01:43 +0100)]
* lisp/character-fold.el: Many improvements

(character-fold-search-forward, character-fold-search-backward):
New command
(character-fold-to-regexp): Remove lax-whitespace hack.
(character-fold-search): Remove variable.  Only isearch and
query-replace use char-folding, and they both have their own
variables to configure that.

8 years ago* lisp/isearch.el: Generalize definition of regexp-function toggles
Artur Malabarba [Sun, 25 Oct 2015 00:31:04 +0000 (01:31 +0100)]
* lisp/isearch.el: Generalize definition of regexp-function toggles

(isearch-specify-regexp-function): New macro for specifying
possible values of `isearch-regexp-function'.

(isearch-toggle-character-fold, isearch-toggle-symbol)
(isearch-toggle-word): Define with `isearch-specify-regexp-function'.

8 years ago* lisp/isearch.el (search-default-regexp-mode): New variable
Artur Malabarba [Sat, 24 Oct 2015 23:42:29 +0000 (00:42 +0100)]
* lisp/isearch.el (search-default-regexp-mode): New variable

(isearch-mode): Use it.

8 years ago* lisp/isearch.el: Delete redundant :group entries
Artur Malabarba [Sat, 24 Oct 2015 23:11:37 +0000 (00:11 +0100)]
* lisp/isearch.el: Delete redundant :group entries

(search-exit-option, search-slow-window-lines)
(search-slow-speed, search-upper-case)
(search-nonincremental-instead, search-whitespace-regexp)
(search-invisible, isearch-hide-immediately)
(isearch-resume-in-command-history, search-ring-max)
(regexp-search-ring-max, search-ring-update, search-highlight)
(isearch-fail): Delete :group entries.

8 years ago* lisp/custom.el (custom-declare-variable): Shorten code a bit
Artur Malabarba [Sun, 25 Oct 2015 00:37:17 +0000 (01:37 +0100)]
* lisp/custom.el (custom-declare-variable): Shorten code a bit

8 years agoaddpm.c: Silence some warnings.
Juanma Barranquero [Sat, 24 Oct 2015 22:58:08 +0000 (00:58 +0200)]
addpm.c: Silence some warnings.

* nt/addpm.c (DdeCommand): Cast pData argument of DdeClientTransaction
to LPBYTE.
(add_registry): Pass NULL to optional lpClass argument of
RegCreateKeyEx, not an empty string.

8 years agoaddpm.c: Do not add obsolete GTK libraries to the path.
Juanma Barranquero [Sat, 24 Oct 2015 22:20:03 +0000 (00:20 +0200)]
addpm.c: Do not add obsolete GTK libraries to the path.

* nt/addpm.c (REG_GTK, REG_RUNEMACS_PATH): Delete.
(add_registry): Remove variables `size' and `gtk_key'.
Do not add the GTK DLL directory to the library search path; it is
confusing behavior (in particular, the same Emacs version with and
without invoking addpm will use a different path), and the GTK image
libraries are obsolete anyway.

8 years agoaddpm.c: Replace existing entries, but do not create new ones
Juanma Barranquero [Sat, 24 Oct 2015 02:31:30 +0000 (04:31 +0200)]
addpm.c: Replace existing entries, but do not create new ones

* nt/addpm.c (add_registry): If the Emacs registry key exists, replace
existing values from previous versions, but do not add new ones; the
key could exist for other reasons unrelated to old Emacsen, like X-style
resources, or to set some environment variables like HOME or LANG, and
in that case we don't want to populate it with obsolete values.

8 years ago* nt/addpm.c (add_registry): Do not compute unused return value.
Juanma Barranquero [Sat, 24 Oct 2015 02:01:22 +0000 (04:01 +0200)]
* nt/addpm.c (add_registry): Do not compute unused return value.

8 years agoaddpm.c: Don't pass REG_OPTION_NON_VOLATILE to RegOpenKeyEx
Juanma Barranquero [Sat, 24 Oct 2015 01:22:50 +0000 (03:22 +0200)]
addpm.c: Don't pass REG_OPTION_NON_VOLATILE to RegOpenKeyEx

* nt/addpm.c (add_registry): Pass 0 to ulOptions argument of
RegOpenKeyEx, not REG_OPTION_NON_VOLATILE.  This doesn't change
current behavior because REG_OPTION_NON_VOLATILE is defined to
be 0L anyway, but that option is actually documented only for
RegCreateKeyEx.

8 years ago* src/w32notify.c (Fw32notify_add_watch): Fix version check.
Juanma Barranquero [Sat, 24 Oct 2015 22:00:26 +0000 (00:00 +0200)]
* src/w32notify.c (Fw32notify_add_watch): Fix version check.

8 years agoUpdate frame title when redisplay scrolls selected window
Eli Zaretskii [Sat, 24 Oct 2015 15:54:15 +0000 (18:54 +0300)]
Update frame title when redisplay scrolls selected window

* src/xdisp.c (redisplay_window): Reconsider the frame's title
when the mode-line of the frame's selected window needs to be
updated.

8 years agoUpdate frame title when scrolling the selected window
Eli Zaretskii [Sat, 24 Oct 2015 15:41:32 +0000 (18:41 +0300)]
Update frame title when scrolling the selected window

* src/window.c (wset_update_mode_line): New function, sets either the
window's update_mode_line flag or the global update_mode_lines
variable.
(Fset_window_start, set_window_buffer, window_scroll_pixel_based)
(window_scroll_line_based): Call it instead of only setting the
window's update_mode_line flag.

8 years agoAn even better fix for bug#21739
Eli Zaretskii [Sat, 24 Oct 2015 14:58:34 +0000 (17:58 +0300)]
An even better fix for bug#21739

* src/window.c (set_window_buffer): If the window is the frame's
selected window, set update_mode_lines, not the window's
update_mode_line flag.  (Bug#21739)
* src/buffer.c (Fkill_buffer): Undo last change.
(set_update_modelines_for_buf): Function deleted.

8 years ago; * src/xdisp.c (redisplay_internal): Improve commentary.
Eli Zaretskii [Sat, 24 Oct 2015 14:16:14 +0000 (17:16 +0300)]
; * src/xdisp.c (redisplay_internal): Improve commentary.

8 years ago; * src/xdisp.c: Fix typo.
Ken Brown [Sat, 24 Oct 2015 14:12:01 +0000 (10:12 -0400)]
; * src/xdisp.c: Fix typo.

8 years agoSync with soap-client repository, version 3.0.0
Thomas Fitzsimmons [Sat, 24 Oct 2015 12:33:18 +0000 (08:33 -0400)]
Sync with soap-client repository, version 3.0.0

8 years agoUpdate the new icon
Nicolas Petton [Sat, 24 Oct 2015 11:35:11 +0000 (13:35 +0200)]
Update the new icon

Move the E slightly to the right in the circle.

* etc/images/icons/hicolor/128x128/apps/emacs.png:
* etc/images/icons/hicolor/16x16/apps/emacs.png:
* etc/images/icons/hicolor/24x24/apps/emacs.png:
* etc/images/icons/hicolor/32x32/apps/emacs.png:
* etc/images/icons/hicolor/48x48/apps/emacs.png:
* etc/images/icons/hicolor/scalable/apps/emacs.svg:
* nextstep/Cocoa/Emacs.base/Contents/Resources/Emacs.icns:
* nt/icons/emacs.ico: New icom update.

8 years agoAvoid missing inline functions from lisp.h in TAGS
Eli Zaretskii [Sat, 24 Oct 2015 10:27:52 +0000 (13:27 +0300)]
Avoid missing inline functions from lisp.h in TAGS

* src/lisp.h (LISP_MACRO_DEFUN): Mention in the commentary the
need to end each invocation with a semi-colon.
Add a semi-colon at the end of each invocation of LISP_MACRO_DEFUN
and LISP_MACRO_DEFUN_VOID.  This is to avoid missing in TAGS
inline functions defined immediately after each invocation, and
also avoid tagging every invocation of these macros.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 24 Oct 2015 10:18:36 +0000 (06:18 -0400)]
; Auto-commit of loaddefs files.

8 years ago; * src/xdisp.c: Improve commentary for 'update_mode_lines'.
Eli Zaretskii [Sat, 24 Oct 2015 08:23:10 +0000 (11:23 +0300)]
; * src/xdisp.c: Improve commentary for 'update_mode_lines'.

8 years agoA better fix for bug#21739
Eli Zaretskii [Sat, 24 Oct 2015 07:03:07 +0000 (10:03 +0300)]
A better fix for bug#21739

* src/buffer.c (set_update_modelines_for_buf): New function.
(Fkill_buffer): Use it to set the global variable
update_mode_lines if the killed buffer was displayed in some
window.  Don't set windows_or_buffers_changed.  This is a better
fix for bug#21739 than the previous fix, since it will cause only
redisplay of mode lines, not of entire windows, but will still
catch attention of x_consider_frame_title in xdisp.c, which
redraws the frame title.