]> code.delx.au - gnu-emacs/log
gnu-emacs
9 years agoMerge from emacs-24; up to 2014-07-21T01:34:03Z!monnier@iro.umontreal.ca
Glenn Morris [Sun, 5 Oct 2014 17:19:23 +0000 (10:19 -0700)]
Merge from emacs-24; up to 2014-07-21T01:34:03Z!monnier@iro.umontreal.ca

9 years ago* nsterm.m (ns_draw_window_cursor): Adjust y for hbar cursor only if smaller than
Jan Djärv [Sun, 5 Oct 2014 15:46:10 +0000 (17:46 +0200)]
* nsterm.m (ns_draw_window_cursor): Adjust y for hbar cursor only if smaller than
line height (Bug#17977).

Fixes: debbugs:18345
9 years ago* nsterm.m (ns_select, ns_read_socket): Use unwind_protect to decrease
Jan Djärv [Sun, 5 Oct 2014 14:17:43 +0000 (16:17 +0200)]
* nsterm.m (ns_select, ns_read_socket): Use unwind_protect to decrease
apploopnr.

Fixes: debbugs:18345
9 years ago* NEWS: Mention ns-use-fullscreen-animation.
Jan Djärv [Sun, 5 Oct 2014 12:25:00 +0000 (14:25 +0200)]
* NEWS: Mention ns-use-fullscreen-animation.

9 years agoAdd ns-use-fullscreen-animation for non-native fullscreen on NS.
Jan Djärv [Sun, 5 Oct 2014 12:20:17 +0000 (14:20 +0200)]
Add ns-use-fullscreen-animation for non-native fullscreen on NS.

* nsterm.m (syms_of_nsterm): ns-use-fullscreen-animation is new.
(toggleFullScreen:): Use ns-use-fullscreen-animation for animate.

9 years agoImport from macoport 24.3.94.
Jan Djärv [Sun, 5 Oct 2014 11:34:59 +0000 (13:34 +0200)]
Import from macoport 24.3.94.

* macfont.m: Fix indentation and import changes from macport
24.3.94.
(macfont_closest_traits_index): New function.
(macfont_closest_traits_index_p): Renamed from
macfont_closest_traits_index.
(macfont_list): Use macfont_closest_traits_index_p.

9 years agocoding.c (detect_coding_iso_2022): Fix previous change.
Kenichi Handa [Sun, 5 Oct 2014 08:52:04 +0000 (17:52 +0900)]
coding.c (detect_coding_iso_2022): Fix previous change.

9 years agocoding.c (detect_coding_iso_2022): Set coding->rejected correctly when an invalid...
Kenichi Handa [Sun, 5 Oct 2014 08:17:15 +0000 (17:17 +0900)]
coding.c (detect_coding_iso_2022): Set coding->rejected correctly when an invalid escape sequence is found (Bug#18610).

9 years ago* imenu.el (imenu-default-goto-function): Fix typo.
Leo Liu [Sun, 5 Oct 2014 00:58:38 +0000 (08:58 +0800)]
* imenu.el (imenu-default-goto-function): Fix typo.

9 years agolisp/gnus/nnimap.el (nnimap-process-expiry-targets): Reverse the list of expired...
Alan Schmitt [Sat, 4 Oct 2014 23:57:35 +0000 (23:57 +0000)]
lisp/gnus/nnimap.el (nnimap-process-expiry-targets): Reverse the list of expired messages only when it was built in reverse order

9 years agolisp/gnus/gnus-delay.el (gnus-delay-send-queue): Remove `gnus-delay-header' last...
Peter Münster [Sat, 4 Oct 2014 23:55:04 +0000 (23:55 +0000)]
lisp/gnus/gnus-delay.el (gnus-delay-send-queue): Remove `gnus-delay-header' last so it can be used in `message-send-hook'

9 years agoAdd NEWS entry form ntlm.el change
Glenn Morris [Sat, 4 Oct 2014 19:25:35 +0000 (12:25 -0700)]
Add NEWS entry form ntlm.el change

9 years ago* lisp/net/ntlm.el (ntlm-build-auth-request): Add NTLM2 Session support.
Thomas Fitzsimmons [Sat, 4 Oct 2014 19:23:42 +0000 (12:23 -0700)]
* lisp/net/ntlm.el (ntlm-build-auth-request): Add NTLM2 Session support.

Fixes: debbugs:15603
9 years ago* apropos.el (apropos-symbols-internal): Avoid error with non-symbol properties.
Glenn Morris [Sat, 4 Oct 2014 19:14:03 +0000 (12:14 -0700)]
* apropos.el (apropos-symbols-internal): Avoid error with non-symbol properties.

Fixes: debbugs:18337
9 years ago* admin/authors.el (authors-renamed-files-alist): Add package-x-test.el
Glenn Morris [Sat, 4 Oct 2014 19:07:05 +0000 (12:07 -0700)]
* admin/authors.el (authors-renamed-files-alist): Add package-x-test.el

9 years agoMerge package-x-test.el into package-test.el, to avoid running tests twice
Glenn Morris [Sat, 4 Oct 2014 19:04:36 +0000 (12:04 -0700)]
Merge package-x-test.el into package-test.el, to avoid running tests twice

* test/automated/package-x-test.el: Remove file...
* test/automated/package-test.el: ... merge package-x-test.el.

Fixes: debbugs:18574
9 years ago* lisp/startup.el (command-line): Handle altered user-emacs-directory
Glenn Morris [Sat, 4 Oct 2014 18:58:41 +0000 (11:58 -0700)]
* lisp/startup.el (command-line): Handle altered user-emacs-directory
in load-path warning.

Fixes: debbugs:18512
9 years agodoc/emacs small markup fixes
Glenn Morris [Sat, 4 Oct 2014 16:46:21 +0000 (09:46 -0700)]
doc/emacs small markup fixes

* doc/emacs/misc.texi (Sorting):
* doc/emacs/search.texi (Query Replace): Markup fixes.

9 years agoFix Gtk+ tearoff not present on Customize Emacs and not at menu top.
Jan Djärv [Sat, 4 Oct 2014 12:28:41 +0000 (14:28 +0200)]
Fix Gtk+ tearoff not present on Customize Emacs and not at menu top.

* gtkutil.c (create_menus): Only add tearoffs to empty menus.
(xg_update_submenu): Remove has_tearoff_p, pass 1 to create_menus
for add_tearoff_p.

9 years agoAdd documentation for horizontal scroll bars and fix some minor issues.
Martin Rudalics [Sat, 4 Oct 2014 08:20:24 +0000 (10:20 +0200)]
Add documentation for horizontal scroll bars and fix some minor issues.

* buffer.c (scroll_bar_width, scroll_bar_height): Fix
doc-strings.
* window.c (Fset_window_scroll_bars): Fix doc-string.
(Fwindow_scroll_bars): Have it return what the doc-string says.

* window.el (window-full-height-p): Make it behave correctly for
minibuffer window.
(window-current-scroll-bars): Fix code.
(fit-frame-to-buffer): Use window-scroll-bar-height instead of
window-scroll-bars.
* frame.el (frame-current-scroll-bars): Fix doc-string.
* scroll-bar.el (toggle-horizontal-scroll-bar): New command.

* frames.texi (Scroll Bars): Describe use of horizontal scroll
bars.

* display.texi (Scroll Bars): Add description of horizontal scroll
bars and associated functions.
* frames.texi (Layout Parameters): Add horizontal scroll bar
entries.  Remove paragraph on "combined fringe widths".
* windows.texi (Window Sizes): Describe affects of horizontal
scroll bars on window layout and sizes.  Fix description of
window-full-height-p.
(Resizing Windows): Mention horizontal scroll bar.

9 years ago* lisp/files.el (auto-mode-alist): Use sh-mode for .zsh files.
Mark Oteiza [Sat, 4 Oct 2014 07:27:10 +0000 (00:27 -0700)]
* lisp/files.el (auto-mode-alist): Use sh-mode for .zsh files.

Fixes: debbugs:18488
9 years ago* configure.ac: Silence warning with some old Xrandr.h.
Glenn Morris [Sat, 4 Oct 2014 07:22:51 +0000 (00:22 -0700)]
* configure.ac: Silence warning with some old Xrandr.h.

Fixes: debbugs:18465
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.