]> code.delx.au - gnu-emacs/log
gnu-emacs
9 years agoMerge from emacs-24; up to 2014-07-20T16:14:58Z!dmantipov@yandex.ru
Glenn Morris [Sat, 4 Oct 2014 07:05:21 +0000 (00:05 -0700)]
Merge from emacs-24; up to 2014-07-20T16:14:58Z!dmantipov@yandex.ru

9 years ago* doc/lispref/commands.texi (Generic Commands): Copyedits.
Glenn Morris [Sat, 4 Oct 2014 06:59:30 +0000 (23:59 -0700)]
* doc/lispref/commands.texi (Generic Commands): Copyedits.

9 years ago* doc/misc/vip.texi (Other Vi Commands): Markup fix.
Glenn Morris [Sat, 4 Oct 2014 06:55:37 +0000 (23:55 -0700)]
* doc/misc/vip.texi (Other Vi Commands): Markup fix.

9 years agoSmall copyedits for doc/lispref
Glenn Morris [Sat, 4 Oct 2014 06:45:19 +0000 (23:45 -0700)]
Small copyedits for doc/lispref

* doc/lispref/display.texi (Scroll Bars):
* doc/lispref/modes.texi (Header Lines): Copyedits.

9 years agoSmall doc/ fixes re @var usage.
Glenn Morris [Sat, 4 Oct 2014 06:35:55 +0000 (23:35 -0700)]
Small doc/ fixes re @var usage.

* doc/emacs/cmdargs.texi (Misc X):
* doc/emacs/display.texi (Optional Mode Line):
* doc/emacs/misc.texi (emacsclient Options):
* doc/emacs/vc1-xtra.texi (VC Delete/Rename):
* doc/lispref/buffers.texi (Buffer List):
* doc/lispref/display.texi (Image Descriptors, Defining Images):
* doc/lispref/functions.texi (Core Advising Primitives):
Small fixes re @var usage.

9 years ago* doc/lispref/windows.texi (Window Sizes, Resizing Windows): Copyedits.
Glenn Morris [Sat, 4 Oct 2014 06:33:00 +0000 (23:33 -0700)]
* doc/lispref/windows.texi (Window Sizes, Resizing Windows): Copyedits.

9 years agoMerge trivially safe differences from standalone CC-mode.
Stefan Monnier [Sat, 4 Oct 2014 04:03:49 +0000 (00:03 -0400)]
Merge trivially safe differences from standalone CC-mode.
* lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Don't quote a symbol
just to then pass it to `symbol-value'.
(prog-mode): Provide fallback definition, if needed.
* lisp/progmodes/cc-langs.el: Always load `cl'.  Don't load `cl-lib'.
Remove "cl-" prefix accordingly.
* lisp/progmodes/cc-fonts.el (c-font-lock-invalid-string): Use integerp or
characterp depending on the type of characters.
(c-font-lock-enum-tail): Remove unused var `start'.
* lisp/progmodes/cc-engine.el: Load CL at compile-time.
(c-declare-lang-variables): Use mapcan.
(c-append-to-state-cache): Remove unused var `ce+1'.
(c-parse-state-state): Make buffer-local.
(c-ssb-lit-begin): Remove unused var `pps-end-pos'.
(c-just-after-func-arglist-p): Remove unused var `end'.
* lisp/progmodes/cc-defs.el: Load cc-fix if delete-dups is undefined.
(c-<-as-paren-syntax, c->-as-paren-syntax): Move definition earlier.
(c-make-keywords-re): Use delete-dups.
(c-get-current-file): Avoid file-name-base.
* lisp/progmodes/cc-cmds.el (c-electric-lt-gt): Remove unused var
`close-paren-inserted'.
* lisp/progmodes/cc-awk.el (c-forward-sws): Remove unused declaration.

9 years ago* lisp/erc/erc.el (erc-channel-receive-names): Silence compiler warning.
Stefan Monnier [Sat, 4 Oct 2014 03:04:51 +0000 (23:04 -0400)]
* lisp/erc/erc.el (erc-channel-receive-names): Silence compiler warning.
(erc-format-@nick, erc-update-modes): Idem.

9 years agoDoc tweaks re multi-monitor
Glenn Morris [Sat, 4 Oct 2014 03:03:52 +0000 (20:03 -0700)]
Doc tweaks re multi-monitor

* doc/lispref/frames.texi (Multiple Terminals): Copyedits re multiple monitors.

* lisp/frame.el (frame-monitor-attributes, display-monitor-attributes-list):
Doc fixes.

9 years agodoc/emacs copyedits re rectangle-mark-mode
Glenn Morris [Sat, 4 Oct 2014 02:36:49 +0000 (19:36 -0700)]
doc/emacs copyedits re rectangle-mark-mode

* doc/emacs/killing.texi (Rectangles): Copyedits re rectangle-mark-mode.
(CUA Bindings): Mention rectangle-mark-mode.

9 years ago* lisp/progmodes/python.el: Avoid building unneeded markers.
Stefan Monnier [Sat, 4 Oct 2014 02:35:28 +0000 (22:35 -0400)]
* lisp/progmodes/python.el: Avoid building unneeded markers.
(python-font-lock-keywords, python-indent-dedent-line)
(python-fill-paren, python-shell-completion-complete-or-indent):
Prefer point over point-marker.
(inferior-python-mode): Remove redundant completion settings.

9 years agoMerge from emacs-24; up to 2014-07-17T10:18:19Z!dmantipov@yandex.ru
Glenn Morris [Fri, 3 Oct 2014 16:07:31 +0000 (09:07 -0700)]
Merge from emacs-24; up to 2014-07-17T10:18:19Z!dmantipov@yandex.ru

9 years agoChangeLog fixes
Glenn Morris [Fri, 3 Oct 2014 16:06:02 +0000 (09:06 -0700)]
ChangeLog fixes

9 years agoChangeLog merge fix
Glenn Morris [Fri, 3 Oct 2014 16:05:12 +0000 (09:05 -0700)]
ChangeLog merge fix
Yet another unlabelled backport.

9 years agoChangeLog fix
Glenn Morris [Fri, 3 Oct 2014 15:46:27 +0000 (08:46 -0700)]
ChangeLog fix

9 years agoMerge from emacs-24; up to 2014-07-16T17:06:12Z!rgm@gnu.org
Glenn Morris [Fri, 3 Oct 2014 15:44:46 +0000 (08:44 -0700)]
Merge from emacs-24; up to 2014-07-16T17:06:12Z!rgm@gnu.org

9 years agoChangeLog fixes
Glenn Morris [Fri, 3 Oct 2014 15:33:37 +0000 (08:33 -0700)]
ChangeLog fixes

9 years agoA few tiny doc/ copyedits.
Glenn Morris [Fri, 3 Oct 2014 15:26:26 +0000 (08:26 -0700)]
A few tiny doc/ copyedits.

9 years agoFix vc-svn-ignore
Dmitry Gutov [Fri, 3 Oct 2014 13:15:05 +0000 (17:15 +0400)]
Fix vc-svn-ignore

* lisp/vc/vc-svn.el (vc-svn-ignore-completion-table): Implement.
(vc-svn-ignore): Use it.

Fixes: debbugs:18619
9 years agodoc/misc/erc.texi (Connecting): Remove stray "OA" that failed the manual build.
Eli Zaretskii [Fri, 3 Oct 2014 13:02:53 +0000 (16:02 +0300)]
doc/misc/erc.texi (Connecting): Remove stray "OA" that failed the manual build.

9 years agoUpdating ERC documentation
Kelvin White [Fri, 3 Oct 2014 12:13:31 +0000 (08:13 -0400)]
Updating ERC documentation

9 years agoerc.el (erc-rename-buffers): Use defcustom instead of defvar.
Kelvin White [Fri, 3 Oct 2014 11:08:37 +0000 (07:08 -0400)]
erc.el (erc-rename-buffers): Use defcustom instead of defvar.

9 years agoMention `frame-resize-pixelwise' to make frames truly fullscreen or maximized.
Martin Rudalics [Fri, 3 Oct 2014 09:18:49 +0000 (11:18 +0200)]
Mention `frame-resize-pixelwise' to make frames truly fullscreen or maximized.

* frame.el (toggle-frame-maximized, toggle-frame-fullscreen):
In doc-string mention need of setting `frame-resize-pixelwise'.

* frames.texi (Frame Commands):
* cmdargs.texi (Window Size X): Mention the use of
`frame-resize-pixelwise' to make frames truly fullscreen or
maximized.

* frames.texi (Size Parameters, Size and Position): Mention that
with some window managers you have to set
`frame-resize-pixelwise' in order make a frame truly fullscreen
or maximized.

9 years agoSync with Org 8.2.8.
Bastien Guerry [Fri, 3 Oct 2014 08:13:51 +0000 (10:13 +0200)]
Sync with Org 8.2.8.

9 years ago* fileio.c (emacs_readlinkat, Finsert_file_contents):
Dmitry Antipov [Fri, 3 Oct 2014 05:31:17 +0000 (09:31 +0400)]
* fileio.c (emacs_readlinkat, Finsert_file_contents):
* w32fns.c, xfns.c (x_create_tip_frame): Use AUTO_STRING.

9 years agoConsistently use min and max macros from lisp.h.
Dmitry Antipov [Fri, 3 Oct 2014 04:35:10 +0000 (08:35 +0400)]
Consistently use min and max macros from lisp.h.
* coding.c (min, max):
* font.c (MAX):
* unexhp9k800.c (min):
* unexw32.c (min, max): Use definitions from lisp.h.
* regex.c (MAX, MIN) [!emacs]: Define own max and min as such.
Adjust users.
* gmalloc.c (min): Tiny style change.

9 years ago* font.c (font_list_entities): Do not add empty vector to font cache.
Dmitry Antipov [Fri, 3 Oct 2014 03:46:53 +0000 (07:46 +0400)]
* font.c (font_list_entities): Do not add empty vector to font cache.
(font_matching_entity): Likewise.  If matching entity is found, insert
1-item vector with this entity instead of an entity itself (Bug#17125).

9 years agoFix x-focus-frame bug with "Not an in-range integer".
Paul Eggert [Fri, 3 Oct 2014 02:20:52 +0000 (19:20 -0700)]
Fix x-focus-frame bug with "Not an in-range integer".

* xselect.c (X_SHRT_MAX, X_SHRT_MIN, X_LONG_MAX, X_LONG_MIN)
(X_ULONG_MAX): Move these macros to xterm.h.
(x_fill_property_data): Be more generous about allowing either
signed or unsigned data of the appropriate width.
* xterm.h (x_display_set_last_user_time): New function.
All setters of last_user_time changd to use this function.
If ENABLE_CHECKING, check that the times are in range.

Fixes: debbugs:18586
9 years ago* lisp/select.el: Add commentary discussion.
Stefan Monnier [Fri, 3 Oct 2014 02:15:42 +0000 (22:15 -0400)]
* lisp/select.el: Add commentary discussion.

9 years agoNew gui-selection-value consolidating x-selection-value.
Stefan Monnier [Fri, 3 Oct 2014 01:39:49 +0000 (21:39 -0400)]
New gui-selection-value consolidating x-selection-value.
* lisp/select.el (gui-selection-value-alist): New method.
(gui-selection-value): New function.
(x-selection-value): Make it an obsolete alias.
* lisp/simple.el (interprogram-paste-function): Default to gui-selection-value.
* lisp/w32-common-fns.el (w32-get-selection-value): Simplify.
(x-selection-value): Remove alias.
(interprogram-paste-function): Don't set.
(gui-selection-value): Define for w32.
* lisp/term/x-win.el (gui-selection-value): Define for x.
(x--selection-value): Rename from x--selection-value.
(interprogram-paste-function): Don't set.
* lisp/term/pc-win.el (w16-get-selection-value): Simplify.
(msdos-initialize-window-system): Don't set interprogram-paste-function.
(gui-selection-value): Define for pc.
* lisp/term/ns-win.el (x-selection-value): Remove.
(gui-selection-value): Define for ns, instead.
* lisp/term/common-win.el (x-setup-function-keys): Don't set
interprogram-paste-function.
* lisp/obsolete/mouse-sel.el (mouse-sel-get-selection-function):
Use gui-selection-value.

9 years ago* lisp/vc/vc-svn.el (vc-svn-after-dir-status): Fix the non-remote regexp,
Stefan Monnier [Fri, 3 Oct 2014 00:42:28 +0000 (20:42 -0400)]
* lisp/vc/vc-svn.el (vc-svn-after-dir-status): Fix the non-remote regexp,
similarly to Roger's 2010-06-12 change for the remote change.

Fixes: debbugs:18605
9 years ago* lisp/term/ns-win.el: Add functions to ns frame, not x frame.
David Raynes [Fri, 3 Oct 2014 00:15:34 +0000 (20:15 -0400)]
* lisp/term/ns-win.el: Add functions to ns frame, not x frame.

Fixes: debbugs:18614
9 years ago* configure.ac: Port to strict POSIX shells on non-MinGW.
Paul Eggert [Thu, 2 Oct 2014 22:29:39 +0000 (15:29 -0700)]
* configure.ac: Port to strict POSIX shells on non-MinGW.

Fixes: debbugs:18612
9 years ago* erc.el (erc-nick-at-point): Fix format-string typo (Bug#17755).
Paul Eggert [Thu, 2 Oct 2014 19:28:26 +0000 (12:28 -0700)]
* erc.el (erc-nick-at-point): Fix format-string typo (Bug#17755).

9 years ago* lisp/obsolete/lucid.el (read-number): Remove, redundant.
Stefan Monnier [Thu, 2 Oct 2014 17:18:57 +0000 (13:18 -0400)]
* lisp/obsolete/lucid.el (read-number): Remove, redundant.
* lisp/obsolete/cl-compat.el (cl-floor, cl-ceiling, cl-round, cl-truncate):
Remove, broken.

9 years agosrc/dispnew.c (adjust_decode_mode_spec_buffer): Use 'int' instead of 'ssize_t'.
Eli Zaretskii [Thu, 2 Oct 2014 15:33:55 +0000 (18:33 +0300)]
src/dispnew.c (adjust_decode_mode_spec_buffer): Use 'int' instead of 'ssize_t'.

Suggested by Paul Eggert <eggert@cs.ucla.edu>.

9 years agoMerge from emacs-24
Stefan Monnier [Thu, 2 Oct 2014 15:13:05 +0000 (11:13 -0400)]
Merge from emacs-24

9 years agoFix bug #18584 with assertion violations while scrolling.
Eli Zaretskii [Thu, 2 Oct 2014 14:57:05 +0000 (17:57 +0300)]
Fix bug #18584 with assertion violations while scrolling.

 src/xdisp.c (move_it_by_lines): Call reseat_1 after moving the
 iterator backwards, to resync the bidi iterator.

9 years ago* alloc.c (mark_overlay): Assume that overlay boundaries are
Dmitry Antipov [Thu, 2 Oct 2014 14:01:27 +0000 (18:01 +0400)]
* alloc.c (mark_overlay): Assume that overlay boundaries are
always markers.  Add comment.
* lread.c (read_internal_start): Use convenient validate_subarray.
Adjust docstring.
(Fread_from_string): Adjust docstring.

9 years ago* lisp/frame.el: Use lexical-binding.
Stefan Monnier [Thu, 2 Oct 2014 13:26:23 +0000 (09:26 -0400)]
* lisp/frame.el: Use lexical-binding.
(make-frame): Use t rather than nil for tty's window-system.
* lisp/startup.el (command-line): Use gui-method.

Fixes: debbugs:18598
9 years ago* simple.el (deactivate-mark): Fix typo.
Stefan Monnier [Thu, 2 Oct 2014 12:44:48 +0000 (08:44 -0400)]
* simple.el (deactivate-mark): Fix typo.

9 years ago* src/lisp.h: Fix up compilation for USE_STACK_LISP_OBJECTS=false.
Stefan Monnier [Thu, 2 Oct 2014 12:27:19 +0000 (08:27 -0400)]
* src/lisp.h: Fix up compilation for USE_STACK_LISP_OBJECTS=false.

9 years agoUse local variable to determine if buffers should be renamed
Kelvin White [Thu, 2 Oct 2014 11:55:22 +0000 (07:55 -0400)]
Use local variable to determine if buffers should be renamed

Fixes: debbugs:18300
9 years agoDo not reset input ring if one exists
Ivan Shmakov [Thu, 2 Oct 2014 11:31:56 +0000 (07:31 -0400)]
Do not reset input ring if one exists

Fixes: debbugs:18599
9 years agoRotate etc/NEWS files for version 25
Glenn Morris [Thu, 2 Oct 2014 04:24:07 +0000 (21:24 -0700)]
Rotate etc/NEWS files for version 25

9 years agoConsolidate management/ownership of selections.
Stefan Monnier [Thu, 2 Oct 2014 03:19:32 +0000 (23:19 -0400)]
Consolidate management/ownership of selections.
* lisp/select.el (gui-get-selection-alist): New method.
(gui-get-selection): Use it.  Rename from x-get-selection.
(x-get-selection): Define as obsolete alias.
(x-get-clipboard): Mark obsolete.
(gui-get-primary-selection): New function.
(x-get-selection-value): Mark obsolete.
(gui-own-selection-alist, gui-disown-selection-alist)
(gui-selection-owner-p-alist): New methods.
(gui-set-selection): Use them.  Rename from x-set-selection.
(x-set-selection): Define as obsolete alias.
(gui--valid-simple-selection-p): Rename from
x-valid-simple-selection-p.
* lisp/w32-common-fns.el (gui-own-selection, gui-disown-selection)
(gui-selection-owner-p, gui-get-selection): Define for w32.
(w32-get-selection-value): Rename from x-get-selection-value.
Use the new gui-last-selected-text.
* lisp/term/x-win.el (x-get-selection-value): Remove.
(x-clipboard-yank): Declare obsolete.
(gui-own-selection, gui-disown-selection, gui-get-selection)
(gui-selection-owner-p): Define for x.
* lisp/term/w32-win.el (w32-win-suspend-error): Rename from
x-win-suspend-error.
* lisp/term/pc-win.el (w16-get-selection-value): Rename from
x-get-selection-value.
(w16-selection-owner-p): Rename from x-selection-owner-p.
(gui-own-selection, gui-disown-selection, gui-get-selection)
(gui-selection-owner-p): Define for pc.
(w16--select-text): New function.
* lisp/term/ns-win.el (gui-own-selection, gui-disown-selection)
(gui-get-selection, gui-selection-owner-p): Define for ns.
* lisp/term.el (term-mouse-paste):
* lisp/mouse.el (mouse-yank-primary): Use gui-get-primary-selection.
* src/nsselect.m (ns-own-selection-internal, ns-disown-selection-internal):
Rename from the "x-" prefix.

9 years agoAdd missing name to Changelog.
Jay Belanger [Thu, 2 Oct 2014 02:09:30 +0000 (21:09 -0500)]
Add missing name to Changelog.

9 years agocalc/calc-help.el (calc-describe-thing): Quote strings which could
H. Dieter Wilhelm [Thu, 2 Oct 2014 01:41:10 +0000 (20:41 -0500)]
calc/calc-help.el (calc-describe-thing): Quote strings which could
look like regexps.

9 years agoBump version to 24.3.94; regenerate ldefs-boot and AUTHORS emacs-24.3.94
Glenn Morris [Thu, 2 Oct 2014 00:49:14 +0000 (17:49 -0700)]
Bump version to 24.3.94; regenerate ldefs-boot and AUTHORS

9 years agoChangeLog whitespace trivia
Glenn Morris [Thu, 2 Oct 2014 00:26:16 +0000 (17:26 -0700)]
ChangeLog whitespace trivia

9 years ago* package.el (package-import-keyring): Create gnupg directory private.
Glenn Morris [Wed, 1 Oct 2014 23:39:50 +0000 (19:39 -0400)]
* package.el (package-import-keyring): Create gnupg directory private.
See bug#17625#155.

9 years ago* emacs/package.texi (Package Installation): Mention etc/package-keyring.gpg.
Glenn Morris [Wed, 1 Oct 2014 23:29:46 +0000 (19:29 -0400)]
* emacs/package.texi (Package Installation): Mention etc/package-keyring.gpg.

9 years agopackage-test tweaks for hydra
Glenn Morris [Wed, 1 Oct 2014 23:24:28 +0000 (19:24 -0400)]
package-test tweaks for hydra

* test/automated/package-test.el (with-package-test, package-test-signed):
Also set HOME to a temp value, in case the real one is absent (e.g.
hydra) or read-only.
(package-test-signed): Use skip-unless rather than expected-result.

Fixes: debbugs:18575
9 years agoCommit forgotten ChangeLog files
Stefan Monnier [Wed, 1 Oct 2014 22:14:43 +0000 (18:14 -0400)]
Commit forgotten ChangeLog files

9 years agoConsolidate x-select-text.
Stefan Monnier [Wed, 1 Oct 2014 22:13:11 +0000 (18:13 -0400)]
Consolidate x-select-text.
* lisp/frame.el (gui-method, gui-method-define, gui-method-declare)
(gui-call): New macros.
(gui-method--name): New function.
(frame-creation-function-alist): Use gui-method-declare.
(make-frame): Use gui-method.
* lisp/select.el (gui-select-enable-clipboard): Rename from
x-select-enable-clipboard and move here.
(x-select-enable-clipboard): Define as obsolete alias.
(gui-last-selected-text): New var, to replace x-last-selected-text.
(gui-select-text): New GUI method.
(gui-select-text): New function.
(x-select-text): Define as obsolete alias.
* lisp/term/common-win.el (x-select-enable-clipboard, x-select-text):
Move to select.el.
* lisp/simple.el (interprogram-cut-function): Change default to
x-select-text.
(interprogram-paste-function): Change default to `ignore'.
* lisp/w32-common-fns.el (interprogram-cut-function): Don't modify.
* lisp/term/x-win.el (interprogram-cut-function): Don't modify.
(gui-select-text): Add method for x.
* lisp/term/w32-win.el (gui-select-text): Add method for w32.
* lisp/term/pc-win.el (x-last-selected-text): Remove, use
gui-last-selected-text instead.
(msdos-initialize-window-system): Don't set interprogram-cut-function.
(gui-select-text): Add method for pc.
* lisp/term/ns-win.el (ns-last-selected-text): Remove, use
gui-last-selected-text instead.
(gui-select-text): Add method for ns.
(x-setup-function-keys): Don't change interprogram-cut-function.
* lisp/loadup.el ("startup"): Load after "frame".
* lisp/subr.el (package--builtin-versions, package--description-file):
Move from startup.el.
* lisp/startup.el (package--builtin-versions, package--description-file):
Move to subr.el.
(handle-args-function-alist, window-system-initialization-alist):
Use gui-method-declare.
(command-line): Use gui-method.
* src/xselect.c (selection-converter-alist): Fix docstring.

9 years agoImprove doc for use of 'int', and discuss 'ssize_t'.
Paul Eggert [Wed, 1 Oct 2014 20:34:55 +0000 (13:34 -0700)]
Improve doc for use of 'int', and discuss 'ssize_t'.

* internals.texi (C Integer Types): Mention 'int' for other
randomish values that lie in 'int' range.  Mention 'ssize_t'.  See:
http://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00019.html

9 years ago* xfaces.c (Finternal_set_lisp_face_attribute): Added FIXME comment.
Jan Djärv [Wed, 1 Oct 2014 18:10:21 +0000 (20:10 +0200)]
* xfaces.c (Finternal_set_lisp_face_attribute): Added FIXME comment.

9 years ago* xfaces.c (Finternal_set_lisp_face_attribute): Don't try to
Jan Djärv [Wed, 1 Oct 2014 17:41:18 +0000 (19:41 +0200)]
* xfaces.c (Finternal_set_lisp_face_attribute): Don't try to
make a font_object from a tty frame.

Fixes: debbugs:18573
9 years ago* lisp/subr.el (alist-get): New accessor.
Stefan Monnier [Wed, 1 Oct 2014 17:23:42 +0000 (13:23 -0400)]
* lisp/subr.el (alist-get): New accessor.
* lisp/emacs-lisp/gv.el (alist-get): Provide expander.
* lisp/winner.el (winner-remember):
* lisp/tempo.el (tempo-use-tag-list):
* lisp/progmodes/gud.el (minor-mode-map-alist):
* lisp/international/mule-cmds.el (define-char-code-property):
* lisp/frameset.el (frameset-filter-params):
* lisp/files.el (dir-locals-set-class-variables):
* lisp/register.el (get-register, set-register):
* lisp/calc/calc-yank.el (calc-set-register): Use it.
* lisp/ps-print.el (ps-get, ps-put, ps-del): Mark as obsolete.
* lisp/tooltip.el (tooltip-set-param): Mark as obsolete.
(tooltip-show): Use alist-get instead.
* lisp/ses.el (ses--alist-get): Remove.  Use alist-get instead.
* admin/unidata/unidata-gen.el (unidata-gen-table-word-list): Use alist-get
and cl-incf.

9 years agoNewsticker: Use libxml instead of `xml-parse-region'. Fix some glitches. Clean up.
Ulf Jasper [Wed, 1 Oct 2014 17:20:00 +0000 (19:20 +0200)]
Newsticker: Use libxml instead of `xml-parse-region'.  Fix some glitches.  Clean up.

* lisp/net/newst-backend.el: Remove Time-stamp.  Rename variable
`newsticker--download-logos' to `newsticker-download-logos' and
make it customizable.
(newsticker--sentinel-work): Move xml-workarounds to function
`newsticker--do-xml-workarounds', call unless libxml-parser is
used.  Allow single quote in regexp for encoding.  Use
libxml-parser if available, else fall back to `xml-parse-region'.
Take care of possibly missing namespace prefixes (like "RDF"
instead of "rdf:RDF") when checking xml nodes and attributes (as
libxml correctly removes the prefixes).  Always use Atom 1.0 as
fallback feed type.  Rename `newsticker--download-logos' to
`newsticker-download-logos'
(newsticker--unxml, newsticker--unxml-node)
(newsticker--unxml-attribute): New.
(newsticker--parse-atom-1.0): Call `unxml' in case that embedded
HTML code has become part of the xml parse tree.
(newsticker--parse-rss-1.0, newsticker--parse-rss-2.0): Take care
of possibly missing namespace prefixes.
(newsticker--parse-generic-items): Code formatting. Typo.
(newsticker--images-dir): Add trailing slash.
(newsticker--image-get): Fix error message.

* lisp/net/newst-plainview.el: Remove Time-stamp.

* lisp/net/newst-reader.el: Remove Time-stamp.
(newsticker-download-logos): Rename variable
`newsticker--download-logos' to `newsticker-download-logos' and
make it customizable.
(newsticker--print-extra-elements): Add optional parameter
'htmlish for using html markup.  Amend list of ignored elements.
(newsticker--do-print-extra-element): Add parameter 'htmlish for
using html markup.

* lisp/net/newst-ticker.el: Remove Time-stamp.

* lisp/net/newst-treeview.el (newsticker--treeview-item-show): Use html
for formatting extra elements.

* lisp/net/newsticker.el:  Remove Time-stamp, Version.
(newsticker-version): Make obsolete.

9 years agoDon't modify the process's command name passed to start-process on MS-Windows.
Eli Zaretskii [Wed, 1 Oct 2014 15:18:16 +0000 (18:18 +0300)]
Don't modify the process's command name passed to start-process on MS-Windows.

 src/w32proc.c (sys_spawnve): Avoid modification of the CMDNAME
 argument passed by the caller, when we mirror all slashes into
 backslashes.

9 years agoRevert the changes in 2014-10-01T02:25:40Z!eggert@cs.ucla.edu.
Eli Zaretskii [Wed, 1 Oct 2014 14:58:54 +0000 (17:58 +0300)]
Revert the changes in 2014-10-01T02:25:40Z!eggert@cs.ucla.edu.

9 years ago* gtkutil.c (xg_set_toolkit_horizontal_scroll_bar_thumb):
Dmitry Antipov [Wed, 1 Oct 2014 13:21:08 +0000 (17:21 +0400)]
* gtkutil.c (xg_set_toolkit_horizontal_scroll_bar_thumb):
Resurrect old code and fix compilation with GTK < 2.13.6.

9 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 1 Oct 2014 11:17:49 +0000 (07:17 -0400)]
Auto-commit of loaddefs files.

9 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 1 Oct 2014 10:20:05 +0000 (06:20 -0400)]
Auto-commit of loaddefs files.

9 years agoUse AUTO_CONS instead of SCOPED_CONS, etc.
Paul Eggert [Wed, 1 Oct 2014 03:28:16 +0000 (20:28 -0700)]
Use AUTO_CONS instead of SCOPED_CONS, etc.

* doc/lispref/internals.texi (Stack-allocated Objects):
Adjust to match the revised, less error-prone macros.
* src/frame.h (AUTO_FRAME_ARG): Rename from FRAME_PARAMETER.
* src/lisp.h (AUTO_CONS): Rename from scoped_cons.
(AUTO_LIST1): Rename from scoped_list1.
(AUTO_LIST2): Rename from scoped_list2.
(AUTO_LIST3): Rename from scoped_list3.
(AUTO_LIST4): Rename from scoped_list4.
(AUTO_STRING): Rename from SCOPED_STRING.
* src/frame.h (AUTO_FRAME_ARG):
* src/lisp.h (AUTO_CONS, AUTO_LIST1, AUTO_LIST2, AUTO_LIST3)
(AUTO_LIST4, AUTO_STRING):
Prepend a new argument 'name'.
Declare a variable instead of yielding a value.
All uses changed.
* src/lisp.h (STACK_CONS, AUTO_CONS_EXPR): New internal macros.

9 years ago* dispnew.c (adjust_decode_mode_spec_buffer): Prefer ptrdiff_t
Paul Eggert [Wed, 1 Oct 2014 02:25:40 +0000 (19:25 -0700)]
* dispnew.c (adjust_decode_mode_spec_buffer): Prefer ptrdiff_t

to ssize_t since we're not using ssize_t-related syscalls here.

9 years agomml: Signal error on invalid <#secure> tag
Daiki Ueno [Wed, 1 Oct 2014 02:25:15 +0000 (11:25 +0900)]
mml: Signal error on invalid <#secure> tag

* mml.el (mml-parse-1): Error out if unknown mode is specified in
<#secure> tag (bug#18513).

9 years ago* lisp/progmodes/python.el (python-shell-completion-get-completions):
Stefan Monnier [Wed, 1 Oct 2014 00:41:51 +0000 (20:41 -0400)]
* lisp/progmodes/python.el (python-shell-completion-get-completions):
Use python-shell--prompt-calculated-input-regexp from the
process buffer.
Don't assume that `line' comes from the process buffer.

Fixes: debbugs:18582
9 years agoMerge from emacs-24
Stefan Monnier [Tue, 30 Sep 2014 23:19:31 +0000 (19:19 -0400)]
Merge from emacs-24

9 years ago* lisp/progmodes/python.el (python-fill-paren): Don't inf-loop at EOB.
Leonardo Nobrega [Tue, 30 Sep 2014 23:00:57 +0000 (19:00 -0400)]
* lisp/progmodes/python.el (python-fill-paren): Don't inf-loop at EOB.

Fixes: debbugs:18462
9 years ago* alloc.c: Remove now-unnecessary check.
Paul Eggert [Tue, 30 Sep 2014 20:17:36 +0000 (13:17 -0700)]
* alloc.c: Remove now-unnecessary check.

Suggested by Dmitry Antipov in:
http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00891.html

9 years ago* internals.texi (Stack-allocated Objects): Further improvements.
Paul Eggert [Tue, 30 Sep 2014 19:10:37 +0000 (12:10 -0700)]
* internals.texi (Stack-allocated Objects): Further improvements.

Give an example of misuse.

9 years ago* lisp/ses.el (ses--row, ses--col): New dyn-scoped vars, to replace row&col.
Stefan Monnier [Tue, 30 Sep 2014 17:52:11 +0000 (13:52 -0400)]
* lisp/ses.el (ses--row, ses--col): New dyn-scoped vars, to replace row&col.
(ses-center, ses-center-span): Use them.
(ses-print-cell): Bind them while calling the printer.
(row, col, maxrow, maxcol): Don't declare as dynamically scoped.
(ses-dorange): Revert last change.
(ses-calculate-cell): Don't bind row&col dynamically while evaluating
the formula.
(ses-set-cell): Avoid `eval'.
(ses--time-check): Rename it from ses-time-check and turn it into
a macro.

Fixes: debbugs:18191
9 years agoFix last change in lispref.
Eli Zaretskii [Tue, 30 Sep 2014 16:21:22 +0000 (19:21 +0300)]
Fix last change in lispref.

 doc/lispref/internals.texi (Stack-allocated Objects): Minor improvements of
 the wording and the indexing.

9 years ago* internals.texi (Stack-allocated Objects): Describe this feature.
Dmitry Antipov [Tue, 30 Sep 2014 15:35:16 +0000 (19:35 +0400)]
* internals.texi (Stack-allocated Objects): Describe this feature.

9 years ago* lisp/ses.el (ses-setup): Don't assume modifying the iteration var of
Stefan Monnier [Tue, 30 Sep 2014 15:33:03 +0000 (11:33 -0400)]
* lisp/ses.el (ses-setup): Don't assume modifying the iteration var of
dotimes affects the iteration.

Fixes: debbugs:18191
9 years ago* xterm.c (x_term_init): Allocate temps on stack, not on heap.
Paul Eggert [Tue, 30 Sep 2014 15:31:18 +0000 (08:31 -0700)]
* xterm.c (x_term_init): Allocate temps on stack, not on heap.

9 years ago* frame.c (x_set_frame_parameters): Port --enable-gcc-warnings
Paul Eggert [Tue, 30 Sep 2014 15:20:03 +0000 (08:20 -0700)]
* frame.c (x_set_frame_parameters): Port --enable-gcc-warnings

to Ubuntu 14.04.1 x86-64.

9 years agoFix creation of frames on MS-Windows: don't cons Lisp objects in input thread.
Eli Zaretskii [Tue, 30 Sep 2014 13:53:24 +0000 (16:53 +0300)]
Fix creation of frames on MS-Windows: don't cons Lisp objects in input thread.

 src/w32fns.c (w32_createwindow): Accept an additional argument, an
 array of 2 values specifying the coordinates of the frame's
 top-left corner.  Use these values instead of calling x_get_arg,
 which can cons Lisp objects, and therefore cannot be called except
 from the main thread.  Remove redundant tests for the default
 values.
 (my_create_window): Move the calculation of the coordinates of the
 frame's top-left edge here.  Pass them to the input thread via the
 second parameter of the WM_EMACS_CREATEWINDOW message.  See
 http://lists.gnu.org/archive/html/emacs-devel/2014-09/msg00892.html
 for the details.

9 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 30 Sep 2014 10:21:33 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.

9 years ago* ses.el (ses-calculate-cell): bind row and col dynamically to
Vincent Belaïche [Tue, 30 Sep 2014 08:06:28 +0000 (10:06 +0200)]
* ses.el (ses-calculate-cell): bind row and col dynamically to
their values with 'cl-progv'.
(ses-dorange): bind row, col, maxrow and maxcol dynamically to
their values with 'cl-progv', also use non-interned symbols for
row, minrow, maxrow, mincol and maxcol.
(maxrow maxcol): New defvar, to make the compiler happy.

9 years ago* TODO: Remove char/unsigned char, long long, IRIX unexelf.c.
Paul Eggert [Tue, 30 Sep 2014 05:49:54 +0000 (22:49 -0700)]
* TODO: Remove char/unsigned char, long long, IRIX unexelf.c.

The first two are done, and IRIX support has been dropped.

9 years agoMerge from emacs-24; up to 2014-07-12T04:06:32Z!dmantipov@yandex.ru.
Bill Wohler [Tue, 30 Sep 2014 05:06:42 +0000 (22:06 -0700)]
Merge from emacs-24; up to 2014-07-12T04:06:32Z!dmantipov@yandex.ru.

9 years agoSpelling fix.
Paul Eggert [Tue, 30 Sep 2014 05:02:13 +0000 (22:02 -0700)]
Spelling fix.

9 years agoAdd TODO to replace cl with cl-lib.
Bill Wohler [Tue, 30 Sep 2014 04:58:10 +0000 (21:58 -0700)]
Add TODO to replace cl with cl-lib.

9 years agoRelease MH-E version 8.6. mh-e-8.6
Bill Wohler [Tue, 30 Sep 2014 04:52:10 +0000 (21:52 -0700)]
Release MH-E version 8.6.

* NEWS, MH-E-NEWS: Update for MH-E release 8.6.

* mh-e.el (Version, mh-version): Update for release 8.6.

* mh-comp.el (mh-insert-x-face): Ensure that mh-x-face-file is a
string before trying to use it (closes SF #474).
(mh-bare-components): New function to create a temporary initial
components file; replaces mh-find-components. Improve the temp folder
and file names as per a suggestion from Bill Wohler. Also address
XEmacs compatibility issues: use mm-make-temp-file instead of
make-temp-file, and only pass one argument to delete-directory.
(mh-edit-again, mh-send-sub): Use mh-bare-components instead of
mh-find-components (partially closes SF #468).

9 years agoSimplify stack-allocated Lisp objects, and make them more portable.
Paul Eggert [Tue, 30 Sep 2014 02:43:23 +0000 (19:43 -0700)]
Simplify stack-allocated Lisp objects, and make them more portable.

The build_local_string macro was used in two ways: (1) string
literals for which scoped allocation suffices, and (2) file name
components, where it's not safe in general to assume bounded-size
ASCII data.  Simplify by defining a new macro SCOPED_STRING that
allocates a block-scope string, and by using SCOPED_STRING for (1)
and build_string for (2).  Furthermore, actually use stack
allocation only for objects known to have sufficient alignment.
This simpler implementation means Emacs can make
USE_STACK_LISP_OBJECTS the default unless GC_MARK_STACK !=
GC_MAKE_GCPROS_NOOPS.
* lisp.h (GCALIGNED): Align even if !USE_STACK_LISP_OBJECTS,
for fewer differences among implementations.
(struct Lisp_String): Now GCALIGNED.
(USE_STACK_LISP_OBJECTS): Default to true, since the
implementation no longer insists on a nonempty GCALIGNED.
But make it false if GC_MARK_STACK != GC_MAKE_GCPROS_NOOPS.
(SCOPED_CONS_INITIALIZER): Remove, since it's no longer needed
separately.  Move definiens to scoped_cons.  The old definition
was incorrect when GCALIGNED was defined to be empty.
(union Aligned_String): New type.
(USE_STACK_CONS, USE_STACK_STRING): New constants, so that the
implementation ports to compilers that don't align strictly enough.
Don't worry about the union sizes; it's not worth bothering about.
(scoped_cons, scoped_list1, scoped_list3, scoped_list4):
Rewrite using USE_STACK_CONS.
(scoped_cons): Assume the use of union Aligned_Cons.
(lisp_string_size, make_local_string, build_local_string): Remove.
Unless otherwise specified, all callers of build_local_string
changed to use SCOPED_STRING.
(SCOPED_STRING): New macro.
* data.c (wrong_choice):
* menu.c (single_menu_item):
* process.c (Fformat_network_address):
Hoist use of SCOPED_STRING out of a scope, so that its returned
object lives long enough.
* fileio.c (Fexpand_file_name): Use build_string, not SCOPED_STRING,
as the string might be long or might not be ASCII.

9 years ago* lisp/minibuffer.el (completion-at-point): Emit warning for ill-behaved
Stefan Monnier [Tue, 30 Sep 2014 00:48:31 +0000 (20:48 -0400)]
* lisp/minibuffer.el (completion-at-point): Emit warning for ill-behaved
completion functions.

9 years ago* lisp/ses.el (ses--letref): Quote value before it gets re-evaluated.
Stefan Monnier [Mon, 29 Sep 2014 20:25:19 +0000 (16:25 -0400)]
* lisp/ses.el (ses--letref): Quote value before it gets re-evaluated.

9 years agoFollow-up to renaming v24.5 to 25.1.
Eli Zaretskii [Mon, 29 Sep 2014 19:49:44 +0000 (22:49 +0300)]
Follow-up to renaming v24.5 to 25.1.

 README: Bump version to 25.0.50.
 configure.ac (AC_INIT): Bump version to 25.0.50.

 nt/makefile.w32-in (VERSION): Bump version to 25.0.50.
 nt/emacsclient.rc: Bump version to 25.0.50.
 nt/emacs.rc: Bump version to 25.0.50.
 nt/config.nt (VERSION): Bump version to 25.0.50.

 msdos/sed2v2.inp: Bump version to 25.0.50.

 etc/refcards/ru-refcard.tex: Bump version to 25.0.50.
 etc/refcards/emacsver.tex: Bump version to 25.0.50.

 src/msdos.c (internal_terminal_init): Bump version to 25.

 doc/man/emacs.1: Bump version to 25.0.50.

 doc/emacs/emacsver.texi (EMACSVER): Bump to 20.0.50.

9 years agoFix bug #18545 with lack of scrolling a window when point goes out of view.
Eli Zaretskii [Mon, 29 Sep 2014 19:10:28 +0000 (22:10 +0300)]
Fix bug #18545 with lack of scrolling a window when point goes out of view.

 src/xdisp.c (cursor_row_fully_visible_p): Update commentary.
 (redisplay_window): Treat the frame's frozen_window_starts flag
 the same way as the optional_new_start flag for the window: only
 obey it if the glyph row showing point will be fully visible.
 Likewise when the window start is in a continuation line.  If,
 after trying everything under the 'force_start' label, point is
 still not fully visible, give up and scroll the window.  Add
 debugging traces.
 src/window.c (Frecenter): Set the window's redisplay flag.

9 years agoRename 24.5 to 25.1
Stefan Monnier [Mon, 29 Sep 2014 18:14:08 +0000 (14:14 -0400)]
Rename 24.5 to 25.1

Except where we expect to backport the corresponding change.

9 years agoCheck in accumulated leuven-theme updates before it's too late
Fabrice Niessen [Mon, 29 Sep 2014 12:30:16 +0000 (16:30 +0400)]
Check in accumulated leuven-theme updates before it's too late

* themes/leuven-theme.el: Updates.

9 years agomml: Signal error on invalid <#secure> tag
Daiki Ueno [Mon, 29 Sep 2014 11:05:40 +0000 (20:05 +0900)]
mml: Signal error on invalid <#secure> tag

* mml.el (mml-parse-1): Error out if unknown mode is specified in
<#secure> tag (bug#18513).

9 years agoDo not set `url-gateway-method' in `url-https'. (Bug#16543)
Ulf Jasper [Mon, 29 Sep 2014 08:18:32 +0000 (10:18 +0200)]
Do not set `url-gateway-method' in `url-https'. (Bug#16543)

Currently, when `url-retrieve' is called for an https url it modifies
the variable `url-gateway-method'.  This has been changed to
explicitly pass the requested gateway method to other functions.

When `url-retrieve' is being processed then (via
`accept-process-output') another `url-retrieve' call from a pending
timer can be started.  The second call would always see the modified
`url-gateway-method' of the first one, which in general does not match
the url.

2014-09-28  Ulf Jasper  <ulf.jasper@web.de>

* url-gw.el (url-open-stream): New optional parameter
`gateway-method'.  If non-nil use it instead of global variable
`url-gateway-method'.

* url/url-http.el (url-http): New optional parameter
`gateway-method', pass it to `url-http-find-free-connection'.
(url-http-find-free-connection): New optional parameter
gateway-method, pass it to `url-open-stream'.
(url-https-create-secure-wrapper): Do not modify
`url-gateway-method' but explicitly provide 'tls as gateway-method
parameter to `url-https'.

9 years agoKeep stack-allocated Lisp objects fast rather than versatile.
Dmitry Antipov [Mon, 29 Sep 2014 06:44:31 +0000 (10:44 +0400)]
Keep stack-allocated Lisp objects fast rather than versatile.
* configure.ac (HAVE_STATEMENT_EXPRESSIONS): Remove.
For USE_STACK_LISP_OBJECTS, we always assume __GNUC__.
* lisp.h (union Aligned_Cons) [!GCALIGNED]: Define as such.
(SCOPED_CONS_INITIALIZER): New macro.
(scoped_cons) [USE_STACK_LISP_OBJECTS]: Use it.
(USE_LOCAL_ALLOCA): Remove.
(local_cons, local_list1, local_list2, local_list3, local_list4):
Remove.  Stack overflow checking makes them too slow.
(make_local_vector): Likewise.  Also we just don't have enough
users for it.
(enum LISP_STRING_OVERHEAD): Remove.
(local_string_init, local_vector_init): Remove prototypes.
(make_local_string, build_local_string): Redesign to target short
compile-time string constants, fall back to regular string allocation
where appropriate.
(lisp_string_size): New function.
(verify_ascii) [ENABLE_CHECKING]: Add prototype.
* alloc.c (local_string_init, local_vector_init): Remove.
(verify_ascii) [ENABLE_CHECKING]: New function.
* buffer.c, charset.c, chartab.c, data.c, editfns.c, emacs.c, fileio.c:
* fns.c, font.c, fontset.c, frame.c, keyboard.c, keymap.c, lread.c:
* menu.c, minibuf.c, process.c, textprop.c, xdisp.c, xfns.c, xfont.c:
* xselect.c, xterm.c: All related users changed.

9 years ago* src/sheap.c (bss_sbrk_buffer_beg): Remove redundant variable.
Ken Brown [Sun, 28 Sep 2014 22:31:59 +0000 (18:31 -0400)]
* src/sheap.c (bss_sbrk_buffer_beg): Remove redundant variable.
* src/gmalloc.c [CYGWIN]: Adapt to change in sheap.c.

9 years agoDo not set `url-gateway-method' in `url-https'. (Bug#16543)
Ulf Jasper [Sun, 28 Sep 2014 18:00:54 +0000 (20:00 +0200)]
Do not set `url-gateway-method' in `url-https'. (Bug#16543)

Currently, when `url-retrieve' is called for an https url it modifies
the variable `url-gateway-method'.  This has been changed to
explicitly pass the requested gateway method to other functions.

When `url-retrieve' is being processed then (via
`accept-process-output') another `url-retrieve' call from a pending
timer can be started.  The second call would always see the modified
`url-gateway-method' of the first one, which in general does not match
the url.

2014-09-28  Ulf Jasper  <ulf.jasper@web.de>

* url-gw.el (url-open-stream): New optional parameter
`gateway-method'.  If non-nil use it instead of global variable
`url-gateway-method'.

* url/url-http.el (url-http): New optional parameter
`gateway-method', pass it to `url-http-find-free-connection'.
(url-http-find-free-connection): New optional parameter
gateway-method, pass it to `url-open-stream'.
(url-https-create-secure-wrapper): Do not modify
`url-gateway-method' but explicitly provide 'tls as gateway-method
parameter to `url-https'.

9 years agoFont-lock `cl-flet*', too.
Thien-Thi Nguyen [Sun, 28 Sep 2014 08:03:48 +0000 (10:03 +0200)]
Font-lock `cl-flet*', too.

* lisp/emacs-lisp/lisp-mode.el (lisp-cl-font-lock-keywords-2):
Add "flet*" to intermediate var `cl-lib-kw'.