]> git.eshelyaron.com Git - emacs.git/log
emacs.git
10 years agoChangeLog merge fix
Glenn Morris [Fri, 3 Oct 2014 16:05:12 +0000 (09:05 -0700)]
ChangeLog merge fix
Yet another unlabelled backport.

10 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

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

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

10 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
10 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.

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

10 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.

10 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.

10 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.

10 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.

10 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.

10 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).

10 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
10 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.

10 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.

10 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
10 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
10 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
10 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).

10 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.

10 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>.

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

10 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.

10 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.

10 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
10 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.

10 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.

10 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
10 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
10 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

10 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.

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

10 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.

10 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

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

10 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.

10 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.

10 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
10 years agoCommit forgotten ChangeLog files
Stefan Monnier [Wed, 1 Oct 2014 22:14:43 +0000 (18:14 -0400)]
Commit forgotten ChangeLog files

10 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.

10 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

10 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.

10 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
10 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.

10 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.

10 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.

10 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.

10 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.

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

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

10 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.

10 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.

10 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).

10 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
10 years agoMerge from emacs-24
Stefan Monnier [Tue, 30 Sep 2014 23:19:31 +0000 (19:19 -0400)]
Merge from emacs-24

10 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
10 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

10 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.

10 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
10 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.

10 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.

10 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
10 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.

10 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.

10 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.

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

10 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.

10 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.

10 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.

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

10 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.

10 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).

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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).

10 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'.

10 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.

10 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.

10 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'.

10 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'.

10 years ago* configure.ac [CYGWIN]: Enable sound support.
Ken Brown [Sat, 27 Sep 2014 23:35:50 +0000 (19:35 -0400)]
* configure.ac [CYGWIN]: Enable sound support.

10 years agoFix implementation of HYBRID_MALLOC on Cygwin.
Ken Brown [Sat, 27 Sep 2014 20:58:05 +0000 (16:58 -0400)]
Fix implementation of HYBRID_MALLOC on Cygwin.

* src/sheap.c (bss_sbrk_buffer_end): Cast to void *.
(bss_sbrk_buffer_beg): New variable.  Use it...
* src/gmalloc.c (ALLOCATED_BEFORE_DUMPING) [CYGWIN]: ...here, to fix
  incorrect definition.

10 years ago* lisp/epg-config.el (epg-gpg-program): Use the plain program names rather
Stefan Monnier [Sat, 27 Sep 2014 16:26:54 +0000 (12:26 -0400)]
* lisp/epg-config.el (epg-gpg-program): Use the plain program names rather
than their absolute file name.

10 years ago* lisp/emacs-lisp/package.el (package-check-signature): Default to nil if
Stefan Monnier [Sat, 27 Sep 2014 16:25:53 +0000 (12:25 -0400)]
* lisp/emacs-lisp/package.el (package-check-signature): Default to nil if
GPG is not available.
(package-refresh-contents): Don't mess with the keyring if we won't
check the signatures anyway.

10 years ago* lisp/subr.el (track-mouse): New macro.
Stefan Monnier [Sat, 27 Sep 2014 15:52:28 +0000 (11:52 -0400)]
* lisp/subr.el (track-mouse): New macro.
* lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form):
Remove track-mouse case.
* lisp/emacs-lisp/bytecomp.el (byte-compile-track-mouse): Remove.
* src/keyboard.c (track-mouse): Rename to internal--track-mouse.
Make it into a function and change arg to be a function.

10 years ago* lisp/emacs-lisp/eldoc.el (eldoc-mode): Fix thinko.
Leo Liu [Sat, 27 Sep 2014 10:08:59 +0000 (18:08 +0800)]
* lisp/emacs-lisp/eldoc.el (eldoc-mode): Fix thinko.

* lisp/progmodes/elisp-mode.el (elisp--eldoc-last-data): Use defvar.

10 years agoetc/charsets/README: Delete a stray quote character.
Eli Zaretskii [Sat, 27 Sep 2014 09:36:08 +0000 (12:36 +0300)]
etc/charsets/README: Delete a stray quote character.

10 years ago* pcase-tests.el: Add #18554 test case.
Stefan Monnier [Sat, 27 Sep 2014 04:27:14 +0000 (00:27 -0400)]
* pcase-tests.el: Add #18554 test case.

10 years ago* lisp/emacs-lisp/pcase.el (pcase--split-match, pcase--app-subst-match):
Stefan Monnier [Sat, 27 Sep 2014 04:24:06 +0000 (00:24 -0400)]
* lisp/emacs-lisp/pcase.el (pcase--split-match, pcase--app-subst-match):
Handle the case where `match' is :pcase--succeed or :pcase--fail.

Fixes: debbugs:18554
10 years agoIntroduce global-eldoc-mode. Move Elisp-specific code to elisp-mode.el.
Stefan Monnier [Sat, 27 Sep 2014 03:57:41 +0000 (23:57 -0400)]
Introduce global-eldoc-mode.  Move Elisp-specific code to elisp-mode.el.
* lisp/emacs-lisp/eldoc.el (global-eldoc-mode): New minor mode.
(eldoc-schedule-timer): Obey it.
(eldoc-documentation-function): Default to nil.
(eldoc-mode): Don't enable if eldoc-documentation-function is not set.
(eldoc-documentation-function-default, eldoc-get-fnsym-args-string)
(eldoc-highlight-function-argument, eldoc-get-var-docstring)
(eldoc-last-data-store, eldoc-docstring-first-line)
(eldoc-docstring-format-sym-doc, eldoc-fnsym-in-current-sexp)
(eldoc-beginning-of-sexp, eldoc-current-symbol)
(eldoc-function-argstring): Move to elisp-mode.el.
(eldoc-symbol-function): Remove, unused.
* lisp/progmodes/elisp-mode.el: New file.  Rename all "eldoc-*" to "elisp--*".
(elisp-completion-at-point): Rename from lisp-completion-at-point.
(elisp--preceding-sexp): Rename from preceding-sexp.
* lisp/loadup.el: Load new file progmodes/elisp-mode.
* lisp/ielm.el (inferior-emacs-lisp-mode): Set eldoc-documentation-function.
* lisp/emacs-lisp/lisp.el (lisp--local-variables-1, lisp--local-variables)
(lisp--local-variables-completion-table, lisp--expect-function-p)
(lisp--form-quoted-p, lisp--company-doc-buffer)
(lisp--company-doc-string, lisp--company-location)
(lisp-completion-at-point): Move to elisp-mode.el.
* lisp/emacs-lisp/lisp-mode.el (lisp--mode-syntax-table): New syntax-table,
extracted from emacs-lisp-mode-syntax-table.
(emacs-lisp-mode-abbrev-table, emacs-lisp-mode-syntax-table): Move to
elisp-mode.el.
(lisp-imenu-generic-expression): Add comments to document what comes
from which Lisp dialect.
(emacs-lisp-mode-map, emacs-lisp-byte-compile)
(emacs-lisp-byte-compile-and-load, emacs-lisp-mode-hook)
(emacs-lisp-mode, emacs-list-byte-code-comment-re)
(emacs-lisp-byte-code-comment)
(emacs-lisp-byte-code-syntax-propertize, emacs-lisp-byte-code-mode)
(lisp-interaction-mode-map, lisp-interaction-mode)
(eval-print-last-sexp, last-sexp-setup-props)
(last-sexp-toggle-display, prin1-char, preceding-sexp)
(eval-last-sexp-1, eval-last-sexp-print-value)
(eval-last-sexp-fake-value, eval-sexp-add-defvars, eval-last-sexp)
(eval-defun-1, eval-defun-2, eval-defun): Move to elisp-mode.el.
* src/lisp.mk (lisp): Add elisp-mode.elc.

10 years ago* etc/TODO: Add a few entries, remove others, expand some
Stefan Monnier [Fri, 26 Sep 2014 22:19:12 +0000 (18:19 -0400)]
* etc/TODO: Add a few entries, remove others, expand some

10 years ago* progmodes/grep.el (grep-regexp-alist): Use more-accurate regexp.
Paul Eggert [Fri, 26 Sep 2014 18:32:48 +0000 (11:32 -0700)]
* progmodes/grep.el (grep-regexp-alist): Use more-accurate regexp.

Do not match file names that end in '/', as they cannot be 'grep'
hits nowadays.  This prevents confusion when 'grep -r' reports a
match in a file whose basename is ':12345:'.  Conversely, do not
require exactly the same sequence of spaces and tabs after both
colons, and allow spaces or tabs before the second colon, as per
the POSIX spec for 'grep' output.

10 years ago* xfns.c (x_default_scroll_bar_color_parameter):
Paul Eggert [Fri, 26 Sep 2014 16:49:10 +0000 (09:49 -0700)]
* xfns.c (x_default_scroll_bar_color_parameter):

Use USE_LOCAL_ALLOCA only if USE_TOOLKIT_SCROLL_BARS,
to pacify --enable-gcc-warnings in non-scrollbar builds.

10 years agoRegression fix - #bug18551
Kelvin White [Fri, 26 Sep 2014 13:22:47 +0000 (09:22 -0400)]
Regression fix - #bug18551