1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 12:41:56 +00:00
Commit Graph

124108 Commits

Author SHA1 Message Date
Glenn Morris
1e5eb04c83 * configure.ac (WEBKIT, GIR, CAIRO): Use EMACS_CHECK_MODULES, not PKG_. 2016-01-19 17:51:32 -05:00
Glenn Morris
2dbb4deaa9 * configure.ac (emacs_config_features): Add XWIDGETS, WEBKIT, GIR. 2016-01-19 17:49:40 -05:00
Glenn Morris
644e2fb73a * configure.ac (HAVE_WEBKIT_OSR): Remove broken, duplicated gtk3 test. 2016-01-19 17:48:35 -05:00
Glenn Morris
11a0300d9f ; * etc/NEWS: xwidgets isn't documented. 2016-01-19 17:32:23 -05:00
Katsumi Yamaoka
406887f5ef * 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>
2016-01-19 22:10:09 +00:00
Glenn Morris
9d00392520 * lisp/xwidget.el (report-xwidget-bug): Remove.
(top-level): No longer require reporter.
2016-01-19 16:02:18 -05:00
Glenn Morris
c7441cd7d8 ; Add 2016 to copyright years of new files. 2016-01-19 16:00:34 -05:00
Joakim Verona
7c1f66a94b 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:
2016-01-19 20:58:22 +01:00
Eli Zaretskii
663d379bbc 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'.
2016-01-19 21:05:27 +02:00
Shakthi Kannan
77793f52c5 ; * etc/NEWS: No need to document 'system-name'. 2016-01-19 20:36:33 +02:00
Eli Zaretskii
156270697d 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.
2016-01-19 19:31:05 +02:00
Eli Zaretskii
32cb203c08 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)
2016-01-19 18:11:04 +02:00
Lars Magne Ingebrigtsen
116caedbe0 * shr.el (shr-table-body): Allow tables to have text children. 2016-01-19 14:16:34 +01:00
Phillip Lord
ef768c790e 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)
2016-01-19 12:47:45 +00:00
Paul Eggert
66ff8bac8b 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.
2016-01-18 23:09:42 -08:00
Paul Eggert
2e5a89fad1 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.
2016-01-18 21:33:31 -08:00
Dmitry Gutov
0ed8b42d22 ; Fix a typo 2016-01-19 08:05:23 +03:00
Dmitry Gutov
2ac78c2346 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.
2016-01-19 08:03:41 +03:00
Dmitry Gutov
29da1cb3e7 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.
2016-01-19 07:58:46 +03:00
Eli Zaretskii
874a10b13f 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)
2016-01-18 21:53:34 +02:00
Lars Magne Ingebrigtsen
2f838b7689 Fix shr table rendering of nested tables
* shr.el (shr-table-body): Don't include all tbodies in nested
tables in the levels above.
2016-01-18 20:37:44 +01:00
Dmitry Gutov
4e559f22a0 * lisp/progmodes/project.el (project--read-regexp): Quote the identifier. 2016-01-18 22:14:17 +03:00
Dmitry Gutov
36b0729ce7 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.
2016-01-18 22:14:17 +03:00
Alan Mackenzie
5b62b980f9 * doc/lispref/frames.texi (Position Parameters): Say they don't exist on TTYs. 2016-01-18 18:51:45 +00:00
Eli Zaretskii
f591e99498 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.
2016-01-18 19:28:49 +02:00
Eli Zaretskii
b2eb6911dc 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)
2016-01-18 18:19:50 +02:00
Eli Zaretskii
687a64f637 Unbreak the MS-Windows build
* src/sysdep.c (emacs_gnutls_global_init, gnutls_rnd): Disable for
WINDOWSNT, to avoid link failure.  (Bug#22202)
2016-01-18 17:42:57 +02:00
Alan Mackenzie
20defc5538 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.
2016-01-18 13:32:22 +00:00
Paul Eggert
130d512045 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.
2016-01-17 17:17:01 -08:00
Andreas Schwab
0f3ea5e172 Don't use GnuTLS before it is initialized
* src/sysdep.c (init_random): Don't use gnutls_rnd.
2016-01-18 00:25:16 +01:00
Paul Eggert
fabb1fa31d 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.
2016-01-17 14:11:09 -08:00
Paul Eggert
05e8148a24 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.
2016-01-17 12:13:49 -08:00
Eli Zaretskii
a0d5b7ae3b ; * etc/NEWS: The final touch. 2016-01-16 17:36:21 +02:00
Eli Zaretskii
bd0c23ce09 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.
2016-01-16 17:30:11 +02:00
Eli Zaretskii
e4c431cde3 * INSTALL: Document --with-modules. 2016-01-16 17:20:34 +02:00
Eli Zaretskii
9f493814bb Document 'function-put'
* doc/lispref/symbols.texi (Symbol Plists): Document
'function-put'.  Update documentation of 'function-get'.
2016-01-16 17:13:16 +02:00
Eli Zaretskii
964ba0f526 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.
2016-01-16 16:54:35 +02:00
Eli Zaretskii
2460cfac09 * doc/lispref/lists.texi (Association Lists): Document 'alist-get'. 2016-01-16 16:32:05 +02:00
Eli Zaretskii
44177c133f * doc/lispref/strings.texi (Text Comparison): Document 'string-greaterp'. 2016-01-16 16:03:03 +02:00
Eli Zaretskii
8515727358 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.
2016-01-16 15:56:50 +02:00
Eli Zaretskii
5409aca9af * doc/lispref/macros.texi (Expansion): Document 'macroexpand-1'. 2016-01-16 15:40:58 +02:00
Eli Zaretskii
e48f6dd3f7 Document 'define-inline'
* doc/lispref/functions.texi (Defining Functions): Document
'define-inline' and related macros.

* lisp/emacs-lisp/inline.el (inline-letevals): Doc fix.
2016-01-16 15:30:47 +02:00
Glenn Morris
6e79b6379f ; Auto-commit of loaddefs files. 2016-01-16 07:18:13 -05:00
Eli Zaretskii
3ae7934fad ; * etc/NEWS: Mark entries that don't need further treatment. 2016-01-16 14:04:23 +02:00
Artur Malabarba
6165c3649a * lisp/files.el (dir-locals--all-files): Respect absolute file-names 2016-01-16 09:24:08 +00:00
Artur Malabarba
2ffdf155ee * lisp/help-fns.el (describe-variable): Fix a left-over parenthesis 2016-01-16 09:18:13 +00:00
Artur Malabarba
71ecd62937 * lisp/dired-x.el (dired-omit-here-always): Use add-dir-local-variable
instead of manually writing a dir-locals file.
2016-01-16 08:53:33 +00:00
Artur Malabarba
f0b82b3453 * 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.
2016-01-16 08:53:33 +00:00
Jussi Lahdenniemi
86e4513969 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
2016-01-16 11:46:14 +02:00
Eli Zaretskii
4e96521948 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.
2016-01-16 11:23:42 +02:00