1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-04 11:40:22 +00:00
Commit Graph

124888 Commits

Author SHA1 Message Date
Glenn Morris
79ae7fbe91 * lisp/dired-x.el (dired-omit-here-always): Correct error message
for 2016-01-25 change.
2016-03-16 17:38:27 -04:00
Glenn Morris
253929fee3 * lisp/dired-x.el (dired-omit-here-always): Replace undefined function
removed 2016-01-30.

; Do not merge to master.
2016-03-16 17:36:57 -04:00
Glenn Morris
ce533897e0 * lisp/xml.el (xml-parse-tag-1): Replace undefined function.
; string-empty-p is defined in subr-x, but this file does not load it.
2016-03-16 17:24:36 -04:00
Eli Zaretskii
d6d164f611 Avoid segfaults due to frame image cache being absent
* src/image.c (cache_image): If the frame doesn't have an image
cache, create it.  (Bug#23028)
2016-03-16 19:04:16 +02:00
Eli Zaretskii
bc7f6f6329 Improve documentation of glyphless-character display
* doc/emacs/display.texi (Text Display): Document and index the
'glyphless-char' face.
2016-03-16 18:57:46 +02:00
Eli Zaretskii
6b6916e872 ; * src/xdisp.c (with_echo_area_buffer): Fix typos in comments. 2016-03-16 18:52:36 +02:00
Dmitry Gutov
ee9a1f7ee9 Support safe navigation operator in non-SMIE indentation code
* lisp/progmodes/ruby-mode.el (ruby-calculate-indent):
Support safe navigation operator in non-SMIE indentation code.
Cherry-picked from
68e16ddd79.
2016-03-16 16:16:50 +02:00
Thomas Fitzsimmons
c3ed95b1c5 Move xsd:base64Binary decoding fix to debbugs.el 0.9.1
* lisp/net/soap-client.el (soap-encode-xs-basic-type): Do not
assume xsd:base64Binary values are UTF-8 strings.
(soap-decode-xs-basic-type): Likewise.
(soap-invoke): Document xsd:base64Binary handling.
2016-03-16 09:35:59 -04:00
Dmitry Gutov
2036be4666 Fix Ruby's operator precedence
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar):
Rearrange the smie-precs->prec2 form.
2016-03-16 04:32:59 +02:00
Dmitry Gutov
1d686c2afb (ruby-interpolation-inside-another-interpolation): New failing test
* test/automated/ruby-mode-tests.el
(ruby-interpolation-inside-another-interpolation):
New failing test.
2016-03-16 01:48:33 +02:00
Paul Eggert
7950e1dd3f Port to clang 3.7.0 on x86-64
* configure.ac: Use AS_IF so that gl_WARN_ADD’s prerequisites are
not done conditionally.  This helps clang, which needs
-Wunknown-warning-option later when configured with warnings.
* src/editfns.c (invalid_time): Now _Noreturn, since clang isn’t
smart enough to figure this out on its own if warnings are enabled.
(lisp_time_struct): Redo for clarity, and to pacify clang.
* src/xfns.c (x_real_pos_and_offsets) [USE_XCB]: Don’t use
uninitialized locals.  This avoids undefined behavior and pacifies
clang.
2016-03-15 13:49:58 -07:00
Glenn Morris
218ae59019 * test/automated/package-test.el (package-test-signed): Tweak skip
condition, for hydra.
2016-03-15 16:24:26 -04:00
Paul Eggert
ba33b7c412 Sync with gnulib
This incorporates:
2016-03-15 time_rz: port to clang -Wunused-const-variable
2016-03-15 select: port more to Intel 2016.1.150 compiler
* lib/sys_select.in.h, lib/time_rz.c: Copy from gnulib.
2016-03-15 13:20:55 -07:00
Eli Zaretskii
38b276d162 Fix startup of "emacs -nw" on systems that CANNOT_DUMP
* src/xdisp.c (syms_of_xdisp) <resize-mini-windows>: Initialize to
nil.

* lisp/loadup.el <resize-mini-windows>: Set to 'grow-only' after
loading window.el.  (Bug#22975)
2016-03-15 19:46:26 +02:00
Dmitry Gutov
dbfbedd3d0 Do not tokenize a comment before continuation as ';'
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p):
Account for a comment right after point.
2016-03-15 03:16:27 +02:00
Dmitry Gutov
040362001d Don't misindent arguments of a method call inside continuation
* lisp/progmodes/ruby-mode.el (ruby-smie-rules):
Use smie-indent-virtual instead of smie-rule-parent (bug#23015).
Simplify the traversal loop.
2016-03-15 03:16:27 +02:00
Stefan Monnier
e6776f8362 * src/keyboard.c (echo_keystrokes_p): Don't test cursor_in_echo_area
(read_key_sequence): Test it here, as before.
(bug#22825).
2016-03-14 20:52:34 -04:00
Paul Eggert
8475f3da53 ASCII-only etc/NEWS etc.
* etc/NEWS, nextstep/README: Revert the recently-added curved
quotes, and stick to ASCII.  This typically involves replacing
curved with straight quotes.  Since etc/NEWS is viewed so often by
UTF-8-ignorant tools, rewrite its non-ASCII text to spell out
Unicode, e.g., replace ‘‒’ with ‘U+2012 (FIGURE DASH)’.
2016-03-14 17:37:42 -07:00
Alan Mackenzie
5cc6919308 Fix a cacheing bug, which led to inordinately slow c-beginning-of-defun.
* lisp/progmodes/cc-defs.el (c-self-bind-state-cache): New macro.

* lisp/progmodes/cc-engine.el (c-ssb-lit-begin): Always call c-parse-state
rather than just using the cache variable c-state-cache.
(c-syntactic-skip-backward): Invoke c-self-bind-state-cache to isolate calls
to c-parse-state from other uses of the parse state cache.

* lisp/progmodes/cc-cmds.el (c-beginning-of-defun, c-end-of-defun): Invoke
c-self-bind-state-cache around the processing, replacing flawed bindings of
c-state-cache.
2016-03-14 21:48:45 +00:00
Alan Mackenzie
eabd667a95 Fix a cacheing bug, which led to inordinately slow c-beginning-of-defun.
* lisp/progmodes/cc-defs.el (c-self-bind-state-cache): New macro.

* lisp/progmodes/cc-engine.el (c-ssb-lit-begin): Always call c-parse-state
rather than just using the cache variable c-state-cache.
(c-syntactic-skip-backward): Invoke c-self-bind-state-cache to isolate calls
to c-parse-state from other uses of the parse state cache.

* lisp/progmodes/cc-cmds.el (c-beginning-of-defun, c-end-of-defun): Invoke
c-self-bind-state-cache around the processing, replacing flawed bindings of
c-state-cache.
2016-03-14 21:44:11 +00:00
Kaushal Modi
0ce37eac45 Fix Isearch prompt when invoked with an argument
* lisp/isearch.el (isearch--describe-regexp-mode): With
`search-default-mode' set to nil, if user does C-u C-s, the minibuffer
now displays "Regexp I-search: " again.  But if the user has set
`search-default-mode' to t, and then does C-s, the minibuffer now
displays "I-search: " because the default search mode is now regexp
mode.  Comments have been added to explain the priority of conditions
in the `cond' form.  (Bug#22991)
2016-03-14 20:15:17 +02:00
Cesar Quiroz
f3033d4d02 Fix a typo in the Emacs manual
* doc/emacs/maintaining.texi (VC Directory Commands): Fix a typo
in a command name.

Copyright-paperwork-exempt: yes
2016-03-14 19:45:29 +02:00
Paul Eggert
4235d2d9ea Curved quotes in etc/NEWS etc.
* etc/NEWS, nextstep/README: Prefer curved quotes in the
recently-changed text documentation.  See:
http://lists.gnu.org/archive/html/emacs-devel/2016-03/msg00860.html
2016-03-14 09:30:39 -07:00
Paul Eggert
26b56dc739 Fix some single quotes in documentation
* doc/emacs/anti.texi (Antinews): Avoid confusion in info and PDF
when documenting quoting styles.
* etc/NEWS, nextstep/README: In these plain text files, quote
'like this' consistently, rather than also (sometimes) ‘like this’
or (more often) `like this'.
2016-03-14 08:41:19 -07:00
Dmitry Gutov
80ec484ac8 Make lisp-completion-at-point's argument optional
* lisp/progmodes/elisp-mode.el (lisp-completion-at-point): Make
the argument optional, like it was before the rename.
2016-03-14 04:14:05 +02:00
Dmitry Gutov
9d463aec8b Tweak the left precedence of '=>'
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Tweak the left
precedence of '=>', to improve indentation and sexp navigation.
2016-03-14 01:45:01 +02:00
Dmitry Gutov
5b705bc97d Indent '.' relative to the first sibling expression
* lisp/progmodes/ruby-mode.el (ruby-smie-rules):
Indent '.' relative to the first sibling expression, instead of the
parent token (bug#17213).
2016-03-14 01:45:01 +02:00
Dmitry Gutov
04f5525fbb Make '.' associative, for easier sexp navigation
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar):
Make '.' associative, for easier sexp navigation.
2016-03-14 01:45:00 +02:00
Phillip Lord
ba24c99ec6 Revert "Simplify "Visit New File" to "New File""
This reverts commit d457fd9dc7.
2016-03-13 18:33:10 +00:00
Phillip Lord
d457fd9dc7 Simplify "Visit New File" to "New File"
* doc/emacs/files.texi,lisp/menu-bar.el (menu-bar-file-menu),
  lisp/startup.el(normal-mouse-start-screen,
  normal-no-mouse-startup-screen): Change label "Visit New File" to "New
  File".
2016-03-12 22:26:20 +00:00
Eli Zaretskii
983448dfa0 Update Unicode notes for importing a new Unicode version
* admin/notes/unicode: Mention the need to update otf-script-alist
in fontset.el when importing data files from a new Unicode
version.
2016-03-12 18:07:34 +02:00
Eli Zaretskii
a761fbf262 Import new data files from Unicode 9.0.0beta
* admin/unidata/UnicodeData.txt:
* admin/unidata/Blocks.txt:
* admin/unidata/BidiMirroring.txt:
* admin/unidata/BidiBrackets.txt: Update from Unicode 9.0.0beta.
* admin/unidata/unidata-gen.el (unidata-gen-files): Bind
'coding-system-for-read' to 'utf-8, as various Unicode data files
now actually use non-ASCII characters.
(unidata-setup-list, unidata-get-name): Support the new Tangut
Ideographs block.

* lisp/international/characters.el (standard-case-table): Add new
characters from Unicode 9.0.0.
(standard-category-table): Add Arabic block u+08A0..u+08FF.  Add
Cyrillic Extended-C block.
(char-width-table): Update ranges per Unicode 9.0.0.
* lisp/international/fontset.el (script-representative-chars): Add
new scripts defined by Unicode 9.0.0.
(otf-script-alist): Add new OTF script tags.
* lisp/international/mule-cmds.el (ucs-names): Update ranges per
Unicode 9.0.0 additions.
2016-03-12 17:51:45 +02:00
Eli Zaretskii
06aad394ab Avoid errors in forms-mode when default major mode is text
* lisp/forms.el (forms-mode): Bind
change-major-mode-with-file-name to nil when calling
set-visited-file-name.  (Bug#22982)
2016-03-12 13:05:49 +02:00
Eli Zaretskii
48196164aa Avoid crashes at startup on systems that CANNOT_DUMP
* src/xdisp.c (syms_of_xdisp) <redisplay--inhibit-bidi>: New
boolean variable.
(init_iterator, reseat_to_string)
(Fcurrent_bidi_paragraph_direction)
(Fbidi_find_overridden_directionality): Use
redisplay--inhibit-bidi instead of purify-flag, to determine when
it's safe to reorder bidirectional text.

* lisp/loadup.el (redisplay--inhibit-bidi): Set to t at the
beginning of the file.  Reset to nil when charprop.el is
successfully loaded, or when we are going to dump, whichever
happens last.  (Bug#22975)
2016-03-12 11:51:03 +02:00
Eli Zaretskii
6d8e1f0276 ; * etc/DEBUG: Improve wording. (Bug#22984) 2016-03-12 10:32:16 +02:00
Eli Zaretskii
12663618df Fix documentation of seq.el functions
* doc/lispref/sequences.texi (Sequence Functions): Fix typos.  Add
cross-references.  Fix formatting.  (Bug#22992)
2016-03-12 10:26:21 +02:00
Dmitry Gutov
576e09e150 Support Ruby 2.3.0's safe navigation operator
* lisp/progmodes/ruby-mode.el (ruby-smie--forward-token)
(ruby-smie--backward-token): Tokenize '&.' as '.'.
(ruby-smie--implicit-semi-p): Check for possible '&' before '.'.

* test/indent/ruby.rb: Add an example using safe navigation
operator.  Fix a syntax error in existing example.
2016-03-12 00:18:42 +02:00
John Wiegley
facb5e20ce Update Emacs manual section related to character folding
* search.texi: Character folding is not on by default.
2016-03-11 11:42:06 -08:00
Eli Zaretskii
4efea8e701 ; * etc/DEBUG: Fix a typo. (Bug#22984) 2016-03-11 17:54:40 +02:00
Eli Zaretskii
f8df21b15c Update admin/notes/unicode
* admin/notes/unicode: Update the list of files from the UCD we
are using.  Mention the possible need to change 'ucs-names' when
importing a new version of the Unicode Standard.
2016-03-11 12:50:55 +02:00
Dmitry Gutov
950be689ca Add symref-filepattern entries for c?perl-mode
* lisp/cedet/semantic/symref/grep.el
(semantic-symref-filepattern-alist): Add entries for perl-mode and
cperl-mode.
2016-03-11 05:30:02 +02:00
Ken Raeburn
8b8a6ad3e3 Don't use XRANDR 1.3 extensions if the server doesn't support them.
* src/xterm.h (struct x_display_info): Add fields to save XRANDR
version number.
* src/xfns.c (x_get_monitor_attributes): Save the version numbers
after querying the X server.
(x_get_monitor_attributes_xrandr): Don't use XRRGetOutputPrimary or
XRRGetScreenResourcesCurrent if the server doesn't support at least
RANDR version 1.3.  Conditionalize the code blocks on compiling
against library version 1.3 or better, rather than feature tests for
each function.
* configure.ac: Stop testing for those two functions.
2016-03-10 14:28:54 -05:00
Eli Zaretskii
985dacfa0f ; NEWS update for the last change in etags 2016-03-10 18:31:11 +02:00
Paul Eggert
741a6f8ed4 Sync with gnulib
This incorporates:
2016-03-08 intprops: make .h file license match module
2016-03-08 acl: fix missing return on Cygwin
2016-03-05 extern-inline: port to PGI CC
* doc/misc/texinfo.tex, lib/intprops.h, lib/set-permissions.c:
* m4/extern-inline.m4:
Copy from gnulib.
2016-03-10 07:59:19 -08:00
Paul Eggert
7352c6c695 Rework C source files to avoid ^(
Work around Bug#22884 by rewording comments and strings to avoid ‘(’
at the start of a line unless it starts a function.  This change
is a short-term hack; in the longer run we plan to fix cc-mode’s
performance for C files that have ‘(’ at the start of a line in a
comment or string.
2016-03-10 07:59:19 -08:00
Eli Zaretskii
a589e9aed5 By default, etags produces unqualified Perl tag names
* lib-src/etags.c (Perl_functions): Produce unqualified names,
unless -Q was specified.
(print_help): Update the description of -Q.

* doc/man/etags.1: Update the documentation of -Q.

* 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/CTAGS.good: Adapt the expected test results to the
changed Perl functionality.
2016-03-10 17:27:26 +02:00
Dmitry Gutov
72c7438c4c Indent methods with keyword names correctly
* lisp/progmodes/ruby-mode.el (ruby-smie--at-dot-call):
Rename to ruby-smie--before-method-name.  Now also check if we're
after a 'def' keyword.  Update both callers.
2016-03-10 14:36:08 +02:00
Dmitry Gutov
28532a91a9 Propertize character literals and special global variables differently
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize): Propertize
character literals and global variables with special names with
prefix and symbol syntax classes, for SMIE to tokenize them
together automatically.
(ruby-font-lock-keywords): Fix an old regression in highlighting
character literals.
2016-03-10 14:36:08 +02:00
Eli Zaretskii
a7d6f39d8a ; Fix last change in NEWS 2016-03-10 12:17:02 +02:00
John Wiegley
83b2a20714 Change how /etc/NEWS presents character folding
* NEWS: Note that character folding is no longer the default.
2016-03-09 15:32:22 -08:00