]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years agoFurther corrections to the pcase docstring
John Wiegley [Fri, 22 Jan 2016 17:55:52 +0000 (09:55 -0800)]
Further corrections to the pcase docstring

8 years ago* doc/emacs/anti.texi (Antinews): Rewrite for Emacs 25.
Eli Zaretskii [Fri, 22 Jan 2016 10:20:11 +0000 (12:20 +0200)]
* doc/emacs/anti.texi (Antinews): Rewrite for Emacs 25.

8 years agoIn xref-collect-references, force backends to respect the 'dir' arg
Stephen Leake [Fri, 22 Jan 2016 07:53:05 +0000 (01:53 -0600)]
In xref-collect-references, force backends to respect the 'dir' arg

* lisp/progmodes/xref.el (xref-collect-references): Force symref backends
to use `default-directory'.

8 years agoMinor correction to pcase docstring
John Wiegley [Fri, 22 Jan 2016 07:28:50 +0000 (23:28 -0800)]
Minor correction to pcase docstring

8 years agoWrite a new docstring for the pcase macro
John Wiegley [Fri, 22 Jan 2016 06:07:19 +0000 (22:07 -0800)]
Write a new docstring for the pcase macro

* lisp/emacs-lisp/pcase.el (pcase): Write a new docstring.

8 years agoAvoid byte-compiler warning in todo-mode (bug#21953)
Stephen Berman [Thu, 21 Jan 2016 11:01:12 +0000 (12:01 +0100)]
Avoid byte-compiler warning in todo-mode (bug#21953)

* todo-mode.el (todo-convert-legacy-files): Add limit argument
to looking-back to comply with advertised-calling-convention.

8 years agoFix desktop support in todo-mode and doc-view (bug#22377)
Stephen Berman [Thu, 21 Jan 2016 10:19:21 +0000 (11:19 +0100)]
Fix desktop support in todo-mode and doc-view (bug#22377)

* lisp/calendar/todo-mode.el (todo-restore-desktop-buffer):
* lisp/doc-view.el (doc-view-restore-desktop-buffer): Return current buffer.

* lisp/calendar/todo-mode.el (todo-modes-set-2):
* lisp/doc-view.el (doc-view-mode): Set desktop-save-buffer unconditionally.

8 years agoNo need to configure gobject-introspection
Paul Eggert [Wed, 20 Jan 2016 23:28:30 +0000 (15:28 -0800)]
No need to configure gobject-introspection

It wasn’t needed for the recently-installed xwidget_mvp code; see:
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01154.html
* configure.ac (DOES_XWIDGETS_USE_GIR, GIR_REQUIRED, GIR_MODULES):
(HAVE_GIR):
* src/Makefile.in (GIR_LIBS, GIR_CFLAGS):
Remove.  All uses removed.
* configure.ac (emacs_config_features): Don’t worry about GIR.

8 years agoDon’t export C symbols not used elsewhere
Paul Eggert [Wed, 20 Jan 2016 22:55:09 +0000 (14:55 -0800)]
Don’t export C symbols not used elsewhere

These were recently added, mostly as part of xwidget code.
* src/emacsgtkfixed.c (emacs_fixed_get_type): Now static.
(EMACS_FIXED, EMACS_FIXED_GET_CLASS):
Now static functions here, not macros in emacsgtkfixed.h.
* src/emacsgtkfixed.h (EMACS_TYPE_FIXED):
Remove.  All uses replaced by definiens.
(EMACS_FIXED, EMACS_FIXED_GET_CLASS):
Remove; these are now static functions in emacsgtkfixed.c.
(EMACS_FIXED_CLASS, EMACS_IS_FIXED, EMACS_IS_FIXED_CLASS):
Remove; unused.
(emacs_fixed_get_type): Remove decl; no longer extern.
* src/xwidget.c (offscreen_damage_event)
(webkit_mime_type_policy_typedecision_requested_cb)
(webkit_new_window_policy_decision_requested_cb)
(webkit_navigation_policy_decision_requested_cb)
(xwidget_spec_value, xwidget_view_lookup)
(xwidget_start_redisplay, xwidget_touch):
Now static.
* src/xwidget.h (xwidget_start_redisplay, xwidget_touch):
Remove decls.

8 years agoSupport squiggly heredocs in ruby-mode
Dmitry Gutov [Wed, 20 Jan 2016 21:26:05 +0000 (00:26 +0300)]
Support squiggly heredocs in ruby-mode

* lisp/progmodes/ruby-mode.el (ruby-here-doc-beg-re):
Support squiggly heredocs added in Ruby 2.3.

* test/indent/ruby.rb: Add squiggly example.

8 years ago* configure.ac (emacs_config_features): Remove WEBKIT.
Glenn Morris [Wed, 20 Jan 2016 19:50:02 +0000 (14:50 -0500)]
* configure.ac (emacs_config_features): Remove WEBKIT.

8 years agoPort to platforms with gtk3 but not webkitgtk3
Paul Eggert [Wed, 20 Jan 2016 19:06:01 +0000 (11:06 -0800)]
Port to platforms with gtk3 but not webkitgtk3

I ran into this problem on my Fedora 23 installation;
Emacs configured but did not build when --with-xwidgets was specified.
* configure.ac (HAVE_WEBKIT, HAVE_GIR): Omit unnecessary initializations.
(DOES_XWIDGETS_USE_GIR): New var.
If --with-xwidgets is specified, report an error if not
doable, to be consistent with the other --with options.
Require webkitgtk3 to use Xwidgets, as the Xwidgets code does
not work at all without webkitgtk3.  Simplify use of
EMACS_CHECK_MODULES.  Output message about gobject
introspection only if xwidgets are used.
* etc/NEWS: Users need webkitgtk3, not merely webkit.
* src/xwidget.c (syms_of_xwidget): Don’t worry about HAVE_WEBKIT_OSR,
since this file is no longer compiled if webkitgtk3 is not available.

8 years agoFix doc string of 'isearch-search-fun-function'
Eli Zaretskii [Wed, 20 Jan 2016 13:09:09 +0000 (15:09 +0200)]
Fix doc string of 'isearch-search-fun-function'

* lisp/isearch.el (isearch-search-fun-function)
(isearch-search-string): Doc fixes.  (Bug#22411)

8 years ago* lisp/xwidget.el: Nitpicks
Stefan Monnier [Wed, 20 Jan 2016 01:53:10 +0000 (20:53 -0500)]
* lisp/xwidget.el: Nitpicks

* lisp/xwidget.el (xwidget-log, xwidget-webkit-callback):
Use with-current-buffer rather than save-excursion + set-buffer.

8 years agoDon't hard-code 1 as point-min.
Glenn Morris [Wed, 20 Jan 2016 00:09:45 +0000 (19:09 -0500)]
Don't hard-code 1 as point-min.

* lisp/image-mode.el (image-display-size):
* lisp/xwidget.el (xwidget-webkit-last-session)
(xwidget-webkit-current-session): Don't hard-code 1 as point-min.

8 years ago; * lisp/xwidget.el: Spelling fixes.
Glenn Morris [Wed, 20 Jan 2016 00:06:32 +0000 (19:06 -0500)]
; * lisp/xwidget.el: Spelling fixes.

8 years ago* lisp/xwidget.el: Add declarations to silence non-xwidget compilation.
Glenn Morris [Tue, 19 Jan 2016 23:44:29 +0000 (18:44 -0500)]
* lisp/xwidget.el: Add declarations to silence non-xwidget compilation.

8 years agoTrivial doc copyedits.
Glenn Morris [Tue, 19 Jan 2016 23:42:47 +0000 (18:42 -0500)]
Trivial doc copyedits.

* src/xwidget.c (Fmake_xwidget, Fget_buffer_xwidgets)
(Fxwidget_webkit_get_title, Fxwidget_resize)
(Fxwidget_set_adjustment, Fxwidgetp, Fxwidget_view_p)
(Fxwidget_info, Fxwidget_view_lookup)
(Fset_xwidget_query_on_exit_flag): Trivial doc copyedits.

8 years agoAvoid advising image-display-size for xwidgets.
Glenn Morris [Tue, 19 Jan 2016 23:13:07 +0000 (18:13 -0500)]
Avoid advising image-display-size for xwidgets.

* lisp/xwidget.el (xwidget-image-display-size): Remove.
(image-display-size): Remove advice.
* lisp/image-mode.el (xwidget-info, xwidget-at): Declare.
(image-display-size): Incorporate xwidget code directly.

8 years agoAvoid breaking non-xwidget Emacs that happen to load xwidget.el.
Glenn Morris [Tue, 19 Jan 2016 23:06:30 +0000 (18:06 -0500)]
Avoid breaking non-xwidget Emacs that happen to load xwidget.el.

* lisp/xwidget.el (window-configuration-change-hook)
(kill-buffer-query-functions): Only modify these hooks if
compiled with xwidget support.

8 years ago* lisp/xwidget.el (xwidget-webkit-scroll-behaviour): Fix custom spec.
Glenn Morris [Tue, 19 Jan 2016 23:03:37 +0000 (18:03 -0500)]
* lisp/xwidget.el (xwidget-webkit-scroll-behaviour): Fix custom spec.

8 years ago* configure.ac (WEBKIT, GIR, CAIRO): Use EMACS_CHECK_MODULES, not PKG_.
Glenn Morris [Tue, 19 Jan 2016 22:51:32 +0000 (17:51 -0500)]
* configure.ac (WEBKIT, GIR, CAIRO): Use EMACS_CHECK_MODULES, not PKG_.

8 years ago* configure.ac (emacs_config_features): Add XWIDGETS, WEBKIT, GIR.
Glenn Morris [Tue, 19 Jan 2016 22:49:40 +0000 (17:49 -0500)]
* configure.ac (emacs_config_features): Add XWIDGETS, WEBKIT, GIR.

8 years ago* configure.ac (HAVE_WEBKIT_OSR): Remove broken, duplicated gtk3 test.
Glenn Morris [Tue, 19 Jan 2016 22:48:35 +0000 (17:48 -0500)]
* configure.ac (HAVE_WEBKIT_OSR): Remove broken, duplicated gtk3 test.

8 years ago; * etc/NEWS: xwidgets isn't documented.
Glenn Morris [Tue, 19 Jan 2016 22:32:23 +0000 (17:32 -0500)]
; * etc/NEWS: xwidgets isn't documented.

8 years ago* lisp/gnus/nnir.el (nnir-request-update-mark):
Katsumi Yamaoka [Tue, 19 Jan 2016 22:10:09 +0000 (22:10 +0000)]
* lisp/gnus/nnir.el (nnir-request-update-mark):
Default to the original mark.
cf. <http://thread.gmane.org/gmane.emacs.gnus.general/86583>
and <http://thread.gmane.org/gmane.emacs.gnus.general/86640>

8 years ago* lisp/xwidget.el (report-xwidget-bug): Remove.
Glenn Morris [Tue, 19 Jan 2016 21:02:18 +0000 (16:02 -0500)]
* lisp/xwidget.el (report-xwidget-bug): Remove.

(top-level): No longer require reporter.

8 years ago; Add 2016 to copyright years of new files.
Glenn Morris [Tue, 19 Jan 2016 21:00:34 +0000 (16:00 -0500)]
; Add 2016 to copyright years of new files.

8 years agoSupport for the new Xwidget feature.
Joakim Verona [Tue, 19 Jan 2016 19:27:12 +0000 (20:27 +0100)]
Support for the new Xwidget feature.

* configure.ac:
(HAVE_XWIDGETS, WIDGET_OBJ, EMACS_CONFIG_FEATURES):
* xterm.c (x_draw_glyph_string, x_draw_bar_cursor):
* xdisp.c:
(handle_display_spec, handle_single_display_spec, push_it)
(pop_it, set_iterator_to_next, dump_glyph)
(calc_pixel_width_or_height, fill_xwidget_glyph_string)
(BUILD_XWIDGET_GLYPH_STRING, BUILD_GLYPH_STRINGS)
(produce_xwidget_glyph, x_produce_glyphs)
(get_window_cursor_type):
* window.c (Fdelete_window_internal):
* termhooks.h (e):
* print.c (print_object):
* lisp.h (ptrdiff_t):
* keyboard.c (kbd_buffer_get_event, make_lispy_event)
(syms_of_keyboard):
* emacs.c (main):
* dispnew.c (update_window, scrolling_window):
* dispextern.h (g, i):
* Makefile.in (XWIDGETS_OBJ, WEBKIT_CFLAGS, WEBKIT_LIBS)
(GIR_LIBS, ALL_CFLAGS, base_obj, LIBES):
* keyboard.c (kbd_buffer_get_event):
* emacsgtkfixed.c (emacs_fixed_gtk_widget_size_allocate)
(emacs_fixed_class_init): Add case for an xwidget view.

* xwidget.c, xwidget.h, xwidget.el: New files for xwidgets

Co-authored-by: Grégoire Jadi <daimrod@gmail.com>
Various improvements to the Xwidget feature.
* xwidgets.c:
* emacsgtkfixed.c:
* xwidget.el:

8 years agoImprove documentation of 'alist-get'
Eli Zaretskii [Tue, 19 Jan 2016 19:05:27 +0000 (21:05 +0200)]
Improve documentation of 'alist-get'

* doc/lispref/variables.texi (Setting Generalized Variables): Add
'alist-get' to the list of functions that can appear in PLACE
argument of 'setf'.

8 years ago; * etc/NEWS: No need to document 'system-name'.
Shakthi Kannan [Tue, 19 Jan 2016 18:36:33 +0000 (20:36 +0200)]
; * etc/NEWS: No need to document 'system-name'.

8 years agoMinor copyedits of doc/emacs/maintaining.texi
Eli Zaretskii [Tue, 19 Jan 2016 17:31:05 +0000 (19:31 +0200)]
Minor copyedits of doc/emacs/maintaining.texi

* doc/emacs/maintaining.texi (List Identifiers): More accurate
description of "C-M-i" wrt tags tables.
(Tags Tables): Move the definition of "tag" to a footnote.

8 years agoUnbreak the Cygwin-w32 build
Eli Zaretskii [Tue, 19 Jan 2016 16:11:04 +0000 (18:11 +0200)]
Unbreak the Cygwin-w32 build

* src/w32fns.c (globals_of_w32fns): Move the initialization of
resetstkoflw into a part that isn't compiled on Cygwin.
(Bug#22403)

8 years ago* shr.el (shr-table-body): Allow tables to have text children.
Lars Magne Ingebrigtsen [Tue, 19 Jan 2016 13:16:34 +0000 (14:16 +0100)]
* shr.el (shr-table-body): Allow tables to have text children.

8 years agoCope with multiple overlapping faces.
Phillip Lord [Sun, 17 Jan 2016 22:03:10 +0000 (22:03 +0000)]
Cope with multiple overlapping faces.

* lisp/htmlfontify.el (hfy-face-to-style-i): Treat inheritance right to
  left.
  (hfy-face-resolve-face): Handle font specification as well as font
  name. Documentation update. (Bug#21990)

8 years agoFix spurious escapes in describe-input-method
Paul Eggert [Tue, 19 Jan 2016 07:09:15 +0000 (23:09 -0800)]
Fix spurious escapes in describe-input-method

Problem reported by Vincent Belaïche (Bug#22309).
* lisp/international/mule-cmds.el (describe-language-environment):
* lisp/international/quail.el (quail-help):
Apply substitute-command-keys to doc strings before displaying them.

8 years agoMinor improvements to (random t) documentation
Paul Eggert [Tue, 19 Jan 2016 05:31:09 +0000 (21:31 -0800)]
Minor improvements to (random t) documentation

* doc/lispref/numbers.texi (Random Numbers):
* src/fns.c (Frandom):
Omit unnecessary details about randomness fallback.
Say that it is a fallback.

8 years ago; Fix a typo
Dmitry Gutov [Tue, 19 Jan 2016 05:05:23 +0000 (08:05 +0300)]
; Fix a typo

8 years agoRename methods in Ruby etags example file
Dmitry Gutov [Tue, 19 Jan 2016 05:03:41 +0000 (08:03 +0300)]
Rename methods in Ruby etags example file

* test/etags/ruby-src/test.rb: Rename the example methods to
correspond to the common terminology used in Ruby.
* test/etags/CTAGS.good:
* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/ETAGS.good_6: Adjust accordingly.

8 years agoPropertize backtick in 'def `(abc)' as symbol constituent
Dmitry Gutov [Tue, 19 Jan 2016 04:58:46 +0000 (07:58 +0300)]
Propertize backtick in 'def `(abc)' as symbol constituent

* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Propertize backtick in 'def `(abc)' as symbol constituent.
(ruby-syntax-propertize-function):
Rename to ruby-syntax-propertize.

8 years agoFix scrolling under scroll-preserve-screen-position on TTY
Eli Zaretskii [Mon, 18 Jan 2016 19:53:34 +0000 (21:53 +0200)]
Fix scrolling under scroll-preserve-screen-position on TTY

* src/window.c (window_scroll_line_based): When setting point to
preserve screen coordinates, don't let cursor enter either of the
two scroll margins.  (Bug#22395)

8 years agoFix shr table rendering of nested tables
Lars Magne Ingebrigtsen [Mon, 18 Jan 2016 19:37:44 +0000 (20:37 +0100)]
Fix shr table rendering of nested tables

* shr.el (shr-table-body): Don't include all tbodies in nested
tables in the levels above.

8 years ago* lisp/progmodes/project.el (project--read-regexp): Quote the identifier.
Dmitry Gutov [Mon, 18 Jan 2016 19:12:44 +0000 (22:12 +0300)]
* lisp/progmodes/project.el (project--read-regexp): Quote the identifier.

8 years agoAdd xref-based replacements for Dired search commands
Dmitry Gutov [Mon, 18 Jan 2016 19:11:46 +0000 (22:11 +0300)]
Add xref-based replacements for Dired search commands

* lisp/dired-aux.el (dired-do-find-regexp)
(dired-do-find-regexp-and-replace): New commands.
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00864.html

* lisp/dired.el (dired-mode-map): Change bindings for `A' and
`Q' to the new commands.

* lisp/progmodes/xref.el (xref-query-replace)
(xref-collect-matches): Add progress reporters.
(xref--find-ignores-arguments): Return nil for zero ignores.
(xref--show-xrefs): Add an optional argument.
(xref-collect-matches): Drop the assert.  'find' accepts a
regular file in place of directory argument, too.

8 years ago* doc/lispref/frames.texi (Position Parameters): Say they don't exist on TTYs.
Alan Mackenzie [Mon, 18 Jan 2016 18:51:45 +0000 (18:51 +0000)]
* doc/lispref/frames.texi (Position Parameters): Say they don't exist on TTYs.

8 years agoImprove user documentation of Xref
Eli Zaretskii [Mon, 18 Jan 2016 17:28:49 +0000 (19:28 +0200)]
Improve user documentation of Xref

* doc/emacs/maintaining.texi (Xref, Find Identifiers)
(Looking Up Identifiers, Identifier Search, List Identifiers):
Adjudicate comments by Dmitry Gutov <dgutov@yandex.ru>.  See
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00650.html
for the details.

8 years agoFix scrolling under scroll-preserve-screen-position and margins
Eli Zaretskii [Mon, 18 Jan 2016 16:19:50 +0000 (18:19 +0200)]
Fix scrolling under scroll-preserve-screen-position and margins

* src/window.c (window_scroll_pixel_based): When setting point to
preserve screen coordinates, don't let cursor enter either of the
two scroll margins.  Fix incorrect usage of
WINDOW_WANTS_HEADER_LINE_P and use WINDOW_HEADER_LINE_HEIGHT
instead of CURRENT_HEADER_LINE_HEIGHT.  (Bug#22395)

8 years agoUnbreak the MS-Windows build
Eli Zaretskii [Mon, 18 Jan 2016 15:42:57 +0000 (17:42 +0200)]
Unbreak the MS-Windows build

* src/sysdep.c (emacs_gnutls_global_init, gnutls_rnd): Disable for
WINDOWSNT, to avoid link failure.  (Bug#22202)

8 years agoDesktop: protect users against inadvertant upgrading of desktop file.
Alan Mackenzie [Mon, 18 Jan 2016 13:32:22 +0000 (13:32 +0000)]
Desktop: protect users against inadvertant upgrading of desktop file.

An upgraded (version 208) desktop file cannot be read in Emacs < 25.

* etc/NEWS: Add an entry about upgrading a desktop file.

* lisp/desktop.el (desktop-file-version): Amend doc string.
(desktop-native-file-version, desktop-io-file-version): new variables.
(desktop-clear): Set desktop-io-file-version to nil.
(desktop-buffer-info): make the presence of the last item on the list
conditional on (>= desktop-io-file-version 208).
(desktop-save): Add extra parameter VERSION to take user's C-u or C-u C-u.
Amend the doc string.  Add code to determine the output file version.
(desktop-create-buffer): Set desktop-io-file-version to the input file's
version.

8 years agoInitialize GnuTLS before calling gnutls_rnd
Paul Eggert [Mon, 18 Jan 2016 01:16:12 +0000 (17:16 -0800)]
Initialize GnuTLS before calling gnutls_rnd

* src/gnutls.c (emacs_gnutls_global_init): Now extern.
Don’t set gnutls_global_initialized if gnutls_global_init fails.
* src/sysdep.c: Include "gnutls.h", and <gnutls/crypto.h>
if 2.12 or later, which has gnutls_rnd.
(emacs_gnutls_global_init, gnutls_rnd): New fallback
placeholder macros if before 2.12.
(init_random): Initialize gnutls globals before trying to
use gnutls_rnd.

8 years agoDon't use GnuTLS before it is initialized
Andreas Schwab [Sun, 17 Jan 2016 23:18:12 +0000 (00:18 +0100)]
Don't use GnuTLS before it is initialized

* src/sysdep.c (init_random): Don't use gnutls_rnd.

8 years agoPort cleanup attribute to OpenBSD
Paul Eggert [Sun, 17 Jan 2016 22:10:26 +0000 (14:10 -0800)]
Port cleanup attribute to OpenBSD

The OpenBSD C compiler issues false alarms about strcpy, strcat, and
sprintf, and this messes up 'configure' when it tests for the cleanup
attribute.  Work around the problem by using __has_attribute directly.
Problem reported by Joakim Jalap (Bug#22385).
* configure.ac: Don’t use AX_GCC_VAR_ATTRIBUTE.
* m4/ax_gcc_var_attribute.m4: Remove.
* src/conf_post.h (__has_attribute): Provide a substitute, for
non-GCC or older GCC compilers.  All uses changed to assume
the substitute.  Check for the cleanup attribute.
* src/emacs-module.c (module_has_cleanup): Just use __has_attribute.

8 years agoPrefer GnuTLS when acquiring random seed
Paul Eggert [Sun, 17 Jan 2016 20:12:08 +0000 (12:12 -0800)]
Prefer GnuTLS when acquiring random seed

This attempts to improve on the fix for Bug#22202.
* configure.ac (HAVE_DEV_URANDOM): Remove.
Check /dev/urandom existence at run time, not at build time,
since the device could exist in the former but not the latter.
* src/sysdep.c [HAVE_GNUTLS]: Include gnutls/gnutls.h.
(gnutls_rnd) [GNUTLS_VERSION_NUMBER < 0x020c00]: New fallback macro.
(random_seed): New typedef.
(set_random_seed): New static function.
(seed_random): Use them.
(init_random): Use random_seed instead of uintmax_t, so as to
not consume more entropy than needed.  Prefer gnutls_rnd if it
works; this avoids a redundant open of /dev/urandom on
GNU/Linux with modern GnuTLS.

8 years ago; * etc/NEWS: The final touch.
Eli Zaretskii [Sat, 16 Jan 2016 15:36:21 +0000 (17:36 +0200)]
; * etc/NEWS: The final touch.

8 years agoImprove documentation of dynamic modules
Eli Zaretskii [Sat, 16 Jan 2016 15:30:11 +0000 (17:30 +0200)]
Improve documentation of dynamic modules

* doc/lispref/loading.texi (How Programs Do Loading): Update the
description of searching for files in 'load' when Emacs was built
with support for dynamic modules.

8 years ago* INSTALL: Document --with-modules.
Eli Zaretskii [Sat, 16 Jan 2016 15:20:34 +0000 (17:20 +0200)]
* INSTALL: Document --with-modules.

8 years agoDocument 'function-put'
Eli Zaretskii [Sat, 16 Jan 2016 15:13:16 +0000 (17:13 +0200)]
Document 'function-put'

* doc/lispref/symbols.texi (Symbol Plists): Document
'function-put'.  Update documentation of 'function-get'.

8 years agoDocument 'funcall-interactively'
Eli Zaretskii [Sat, 16 Jan 2016 14:54:35 +0000 (16:54 +0200)]
Document 'funcall-interactively'

* doc/lispref/commands.texi (Interactive Call): Document
'funcall-interactively'.
* doc/lispref/functions.texi (Calling Functions): Mention
'funcall-interactively' and provide a cross-reference.

8 years ago* doc/lispref/lists.texi (Association Lists): Document 'alist-get'.
Eli Zaretskii [Sat, 16 Jan 2016 14:32:05 +0000 (16:32 +0200)]
* doc/lispref/lists.texi (Association Lists): Document 'alist-get'.

8 years ago* doc/lispref/strings.texi (Text Comparison): Document 'string-greaterp'.
Eli Zaretskii [Sat, 16 Jan 2016 14:03:03 +0000 (16:03 +0200)]
* doc/lispref/strings.texi (Text Comparison): Document 'string-greaterp'.

8 years agoDocument renaming of selection-related functions
Eli Zaretskii [Sat, 16 Jan 2016 13:56:50 +0000 (15:56 +0200)]
Document renaming of selection-related functions

* doc/lispref/frames.texi (Window System Selections): Rename "x-*"
functions into the corresponding "gui-*" functions.  Make the
description slightly less X-centric.

8 years ago* doc/lispref/macros.texi (Expansion): Document 'macroexpand-1'.
Eli Zaretskii [Sat, 16 Jan 2016 13:40:58 +0000 (15:40 +0200)]
* doc/lispref/macros.texi (Expansion): Document 'macroexpand-1'.

8 years agoDocument 'define-inline'
Eli Zaretskii [Sat, 16 Jan 2016 13:30:47 +0000 (15:30 +0200)]
Document 'define-inline'

* doc/lispref/functions.texi (Defining Functions): Document
'define-inline' and related macros.

* lisp/emacs-lisp/inline.el (inline-letevals): Doc fix.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 16 Jan 2016 12:18:13 +0000 (07:18 -0500)]
; Auto-commit of loaddefs files.

8 years ago; * etc/NEWS: Mark entries that don't need further treatment.
Eli Zaretskii [Sat, 16 Jan 2016 12:04:23 +0000 (14:04 +0200)]
; * etc/NEWS: Mark entries that don't need further treatment.

8 years ago* lisp/files.el (dir-locals--all-files): Respect absolute file-names
Artur Malabarba [Sat, 16 Jan 2016 09:21:27 +0000 (09:21 +0000)]
* lisp/files.el (dir-locals--all-files): Respect absolute file-names

8 years ago* lisp/help-fns.el (describe-variable): Fix a left-over parenthesis
Artur Malabarba [Sat, 16 Jan 2016 09:18:13 +0000 (09:18 +0000)]
* lisp/help-fns.el (describe-variable): Fix a left-over parenthesis

8 years ago* lisp/dired-x.el (dired-omit-here-always): Use add-dir-local-variable
Artur Malabarba [Sat, 16 Jan 2016 08:52:14 +0000 (08:52 +0000)]
* lisp/dired-x.el (dired-omit-here-always): Use add-dir-local-variable

instead of manually writing a dir-locals file.

8 years ago* lisp/files.el (dir-locals--all-files): Use completion instead of wildcards
Artur Malabarba [Sat, 16 Jan 2016 08:50:46 +0000 (08:50 +0000)]
* lisp/files.el (dir-locals--all-files): Use completion instead of wildcards

(dir-locals-file)
* lisp/files-x.el (modify-dir-local-variable)
* lisp/dos-fns.el (dosified-file-name)
* lisp/help-fns.el (describe-variable): Change accordingly.

8 years agoFix incompatbilities with MS-Windows 2000 and older
Jussi Lahdenniemi [Sat, 16 Jan 2016 09:46:14 +0000 (11:46 +0200)]
Fix incompatbilities with MS-Windows 2000 and older

* src/w32.c <multiByteToWideCharFlags>: New global variable.
(filename_to_utf16, filename_from_ansi, check_windows_init_file):
Use it instead of the literal MB_ERR_INVALID_CHARS.
(maybe_load_unicows_dll): Initialize multiByteToWideCharFlags as
appropriate for the underlying OS version.  For details, see
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00835.html.
* src/w32.h: Declare multiByteToWideCharFlags.
* src/w32fns.c (Fx_file_dialog, Fw32_shell_execute)
(add_tray_notification): Use multiByteToWideCharFlags instead of
the literal MB_ERR_INVALID_CHARS.
(_resetstkoflw_proc): New typedef.
(w32_reset_stack_overflow_guard): Call _resetstkoflw via a
pointer, as this function is absent in msvcrt.dll shipped with W2K
and older systems.

Copyright-paperwork-exempt: yes

8 years agoMention in PROBLEMS an issue with MS-Windows NT4
Eli Zaretskii [Sat, 16 Jan 2016 09:23:42 +0000 (11:23 +0200)]
Mention in PROBLEMS an issue with MS-Windows NT4

* etc/PROBLEMS (MS-Windows): Mention the problem with Shell32.dll
on Windows NT4.  For the details, see
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00835.html.

8 years agoEnsure 8-byte aligned memory allocation on MS-Windows 9X
Jussi Lahdenniemi [Sat, 16 Jan 2016 09:11:12 +0000 (11:11 +0200)]
Ensure 8-byte aligned memory allocation on MS-Windows 9X

* src/w32heap.c (init_heap): Redirect malloc, realloc, and free to
special functions on Windows 9X.  Refuse to dump Emacs on Windows 9X.
(malloc_after_dump_9x, realloc_after_dump_9x)
(free_after_dump_9x): New functions.  (Bug#22379)  See also
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00852.html
for more details about the original problem.

* nt/inc/ms-w32.h (malloc_after_dump_9x, realloc_after_dump_9x)
(free_after_dump_9x): Add prototypes.

Copyright-paperwork-exempt: yes

8 years agoFix tests for active region in hideif.el
Eli Zaretskii [Sat, 16 Jan 2016 07:55:00 +0000 (09:55 +0200)]
Fix tests for active region in hideif.el

* lisp/progmodes/hideif.el (hif-evaluate-macro, hide-ifdef-block): Use
'use-region-p' to test whether to operate on region, instead of
testing 'mark-active'.

8 years agoFix interactive specs in some hideif.el commands
Eli Zaretskii [Sat, 16 Jan 2016 07:40:12 +0000 (09:40 +0200)]
Fix interactive specs in some hideif.el commands

* lisp/progmodes/hideif.el (hif-evaluate-macro)
(hide-ifdef-undef, show-ifdef-block): Don't use '(interactive "r")'
in commands that should only act on the region if it's active.

8 years agoMerge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25
Phillip Lord [Fri, 15 Jan 2016 22:20:34 +0000 (22:20 +0000)]
Merge branch 'emacs-25' of git.sv.gnu.org:/srv/git/emacs into emacs-25

8 years agoEnable test selector from command line
Phillip Lord [Fri, 15 Jan 2016 22:11:39 +0000 (22:11 +0000)]
Enable test selector from command line

* test/automated/Makefile.in: Change variable manipulation to avoid
  over-writing selector.

8 years agoDon't confuse "::" with ":" when trying to parse member initializers.
Alan Mackenzie [Fri, 15 Jan 2016 21:15:20 +0000 (21:15 +0000)]
Don't confuse "::" with ":" when trying to parse member initializers.

* lisp/progmodes/cc-engine.el (c-back-over-member-initializers): Check
more robustly for ":" token when searching backwards for it.

* lisp/progmodes/cc-langs (c-:$-multichar-token-regexp): New language
variable.

8 years agoEnsure positive number of glyphs for margins of positive width
Eli Zaretskii [Fri, 15 Jan 2016 15:36:47 +0000 (17:36 +0200)]
Ensure positive number of glyphs for margins of positive width

* src/dispnew.c (margin_glyphs_to_reserve): Always return a
positive value when a non-zero width of the marginal area was
requested.  (Bug#22356)

8 years agoFix crashes when mini-window has non-zero margins
Eli Zaretskii [Fri, 15 Jan 2016 15:07:38 +0000 (17:07 +0200)]
Fix crashes when mini-window has non-zero margins

* src/window.c (resize_frame_windows): Use 'new_size' to set
minibuffer window's 'total_cols' value, as 'size' might be in
pixels.  (Bug#22356)

8 years agoIn comment-dwim with style `extra-line', respect indent-tabs-mode.
Alan Mackenzie [Fri, 15 Jan 2016 12:32:32 +0000 (12:32 +0000)]
In comment-dwim with style `extra-line', respect indent-tabs-mode.

This fixes bug #22369.

* lisp/newcomment.el (comment-make-bol-ws): New function.
(comment-make-extra-lines): Use new function instead of a crude `make-string'.

8 years agoMake 'random' seeds cryptographically secure if possible
Eli Zaretskii [Fri, 15 Jan 2016 09:47:55 +0000 (11:47 +0200)]
Make 'random' seeds cryptographically secure if possible

* configure.ac: Check for "/dev/urandom".

* src/sysdep.c (init_random) [HAVE_DEV_URANDOM]: Read the stream
for the seed from "/dev/urandom".
[WINDOWSNT]: Obtain the stream for the seed from w32 APIs.
* src/fns.c (Frandom): Update the doc string to indicate that
system entropy is used when available.
* src/w32.c: Include wincrypt.h.
(w32_init_crypt_random, w32_init_random): New functions, use the
CryptGenRandom API.
(globals_of_w32): Initialize w32_crypto_hprov handle to zero.
* src/w32.h (w32_init_random): Add prototype.

* doc/lispref/numbers.texi (Random Numbers): Document more details
about 't' as the argument to 'random'.

* etc/NEWS: Mention that '(random t)' now uses a cryptographically
strong seed if possible.

(Bug#22202)

8 years agoUnhide the --no-line-directive option to 'etags'
Eli Zaretskii [Fri, 15 Jan 2016 08:54:03 +0000 (10:54 +0200)]
Unhide the --no-line-directive option to 'etags'

* lib-src/etags.c (print_help): Un-undocument the --no-line-directive
option.  (Bug#22306)

* doc/man/etags.1: Document the --no-line-directive option.

8 years agoFix picture-mode wrt double-width characters
Alan J Third [Fri, 15 Jan 2016 08:26:10 +0000 (10:26 +0200)]
Fix picture-mode wrt double-width characters

* lisp/textmodes/picture.el (picture-insert): Check the width of
the character being replaced, not just that of the replacement.
(Bug#1808)

Copyright-paperwork-exempt: yes

8 years ago; * etc/NEWS: Remove unneeded text.
Eli Zaretskii [Fri, 15 Jan 2016 08:14:30 +0000 (10:14 +0200)]
; * etc/NEWS: Remove unneeded text.

8 years agoHonor docstring of gnus-group-get-new-news
Eric Abrahamsen [Fri, 15 Jan 2016 05:00:40 +0000 (05:00 +0000)]
Honor docstring of gnus-group-get-new-news

* lisp/gnus/gnus-start.el (gnus-get-unread-articles): If the prefix arg is t,
but non-numeric, unconditionally consider all groups to need updating.

8 years agoDisallow parenthesis in non-pseudo CSS selectors
Simen Heggestøyl [Thu, 14 Jan 2016 18:24:03 +0000 (19:24 +0100)]
Disallow parenthesis in non-pseudo CSS selectors

* lisp/textmodes/css-mode.el (css--font-lock-keywords): Disallow
parenthesis in selectors except for in the function notation that
might appear right after a pseudo-class.
* test/indent/scss-mode.scss: Add a test for it.

8 years ago; * lisp/time-stamp.el: Remove active time-stamp comment.
Glenn Morris [Thu, 14 Jan 2016 17:43:22 +0000 (12:43 -0500)]
; * lisp/time-stamp.el: Remove active time-stamp comment.

It was cute, but it's not needed as an example, and causes spurious
diffs/conflicts for those with time-stamping enabled.

8 years ago* lisp/gnus/nntp.el (nntp-request-newgroups): Simplify
Katsumi Yamaoka [Thu, 14 Jan 2016 11:26:13 +0000 (11:26 +0000)]
* lisp/gnus/nntp.el (nntp-request-newgroups): Simplify

8 years agocheck-maybe shall run only default tests
Michael Albinus [Thu, 14 Jan 2016 08:11:14 +0000 (09:11 +0100)]
check-maybe shall run only default tests

* test/automated/Makefile.in (check, check-expensive): Depend on
mostlyclean.
(check-maybe): Re-run only default tests.
(check-doit): Use code of check-maybe.
(mostlyclean): Move *.log files away.

8 years ago* lisp/thingatpt.el (thing-at-point-uri-schemes): Add "magnet:"
Mark Oteiza [Thu, 14 Jan 2016 01:08:05 +0000 (20:08 -0500)]
* lisp/thingatpt.el (thing-at-point-uri-schemes): Add "magnet:"

8 years agoUn-obsolete tags-loop-continue
Dmitry Gutov [Thu, 14 Jan 2016 00:38:57 +0000 (03:38 +0300)]
Un-obsolete tags-loop-continue

* lisp/progmodes/etags.el (tags-loop-continue): Un-obsolete.
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00682.html

8 years agoDocument obsoletion of 'intangible' and 'point-entered/left'
Eli Zaretskii [Wed, 13 Jan 2016 19:14:22 +0000 (21:14 +0200)]
Document obsoletion of 'intangible' and 'point-entered/left'

* doc/lispref/text.texi (Special Properties): Document the new
properties 'cursor-intangible' and 'cursor-sensor-functions'.
Document the obsolete status of 'intangible', 'pointer-left',
and 'point-entered' properties, and of 'inhibit-point-motion-hooks'.
* doc/lispref/display.texi (Overlay Properties): Document that
'intangible' overlay property is obsolete.

* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor-mode): Doc fix.

8 years agoUpdater documentation of 'looking-back'
Eli Zaretskii [Wed, 13 Jan 2016 18:36:11 +0000 (20:36 +0200)]
Updater documentation of 'looking-back'

* doc/lispref/searching.texi (Regexp Search): Update documentation
of 'looking-back'.  Fix markup.

8 years agoDocument 'pre-redisplay-functions'
Eli Zaretskii [Wed, 13 Jan 2016 18:29:36 +0000 (20:29 +0200)]
Document 'pre-redisplay-functions'

* doc/lispref/hooks.texi (Standard Hooks):
* doc/lispref/display.texi (Forcing Redisplay): Document
'pre-redisplay-functions'.

8 years agoDocument the new deafault value of 'load-read-function'
Eli Zaretskii [Wed, 13 Jan 2016 18:19:00 +0000 (20:19 +0200)]
Document the new deafault value of 'load-read-function'

* doc/lispref/loading.texi (How Programs Do Loading): Document the
change in the default value of 'load-read-function'.

8 years agoDocument 'bufferpos-to-filepos' and 'filepos-to-bufferpos'
Eli Zaretskii [Wed, 13 Jan 2016 18:11:52 +0000 (20:11 +0200)]
Document 'bufferpos-to-filepos' and 'filepos-to-bufferpos'

* doc/lispref/nonascii.texi (Text Representations): Document
'bufferpos-to-filepos' and 'filepos-to-bufferpos'.

8 years agoDocument the new prefix-command hooks
Eli Zaretskii [Wed, 13 Jan 2016 17:38:06 +0000 (19:38 +0200)]
Document the new prefix-command hooks

* doc/lispref/hooks.texi (Standard Hooks): Document
`prefix-command-echo-keystrokes-functions' and
`prefix-command-preserve-state-hook'.

8 years agoFix one more misuse of time-stamp-time-zone
Paul Eggert [Wed, 13 Jan 2016 16:30:46 +0000 (08:30 -0800)]
Fix one more misuse of time-stamp-time-zone

* test/etags/html-src/softwarelibero.html: Use "UTC0" rather
than the unportable "GMT" for time zone.

8 years agoFix NNTP NEWGROUPS off-by-a-few-hours bug
Paul Eggert [Wed, 13 Jan 2016 16:29:12 +0000 (08:29 -0800)]
Fix NNTP NEWGROUPS off-by-a-few-hours bug

* lisp/gnus/nntp.el (nntp-request-newgroups): Format string
in Universal Time, since we’re telling the server “GMT”.

8 years agoUpdate publicsuffix.txt from upstream
Paul Eggert [Wed, 13 Jan 2016 03:34:24 +0000 (19:34 -0800)]
Update publicsuffix.txt from upstream

* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/effective_tld_names.dat
dated 2016-01-12 11:52:01 UTC.