1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-13 16:38:14 +00:00
Commit Graph

125742 Commits

Author SHA1 Message Date
Paul Eggert
86d083438d New function ‘char-from-name’
This also fixes the mishandling of "\N{CJK COMPATIBILITY
IDEOGRAPH-F900}", "\N{VARIATION SELECTOR-1}", etc.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00614.html
* doc/lispref/nonascii.texi (Character Codes), etc/NEWS: Document this.
* lisp/international/mule-cmds.el (char-from-name): New function.
(read-char-by-name): Use it.  Document that "BED" is treated as
a name, not as a hexadecimal number.  Reject out-of-range integers,
floating-point numbers, and strings with trailing junk.
* src/lread.c (character_name_to_code): Call char-from-name
instead of inspecting ucs-names directly, so that we handle
computed names like "VARIATION SELECTOR-1".  Do not use an auto
string, since char-from-name might GC.
* test/src/lread-tests.el: Add tests for new behavior, and
fix some old tests that were wrong.
2016-04-25 10:42:48 -07:00
Tino Calancha
f069d85450 ; Run find-function-after-hook after finding a symbol
* lisp/emacs-lisp/find-func.el (find-library):
* lisp/help-mode.el (help-function-def, help-variable-def):
Run `find-function-after-hook' inside the help-function of the
buttons (bug#22583).
2016-04-25 19:27:42 +02:00
Alan Mackenzie
db2ee1cd63 c-forward-<>-arglist no longer directly applies face properties in Java Mode.
This allows the calling of c-restore-<>-properties from c-common-init without
the test suite giving spurious errors.

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist): Remove the form that
sets face properties.
(c-forward-<>-arglist-recur): Reformulate the bit that handles types inside
template brackets using c-inside-<>-type-key.  Don't bind
c-record-type-identifiers or c-record-found-types around the recursive call,
allowing positions of found types to flow back to the caller.

* lisp/progmodes/cc-langs.el (c-inside-<>-type-kwds, c-inside-<>-type-key):
new lang consts/var.

* lisp/progmodes/cc-mode.el (c-common-init): Don't remove
c-restore-<>-properties from the list of functions called at mode
initialization.
2016-04-25 17:08:26 +00:00
Jun Hao
ff9de7b38a Pass in port only if provided by caller in the OS X keychain
* lisp/auth-source.el (auth-source-macos-keychain-search): Pass in
port only if provided (bug#23374).
2016-04-25 18:03:55 +02:00
Alan Mackenzie
fda715c6cb Add fontification for a C declaration which looks like a function call.
For example, "t1 *fn (t2 *b);".

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Add new variable
at-decl-start, setting it to whether the putative decl starts immediately
after ; or { or }.  Accept such a construct as a decl when at-decl-start is
non-nil.

* lisp/progmodes/cc-langs.el (c-pre-start-tokens): New language variable.
2016-04-25 15:19:58 +00:00
Eli Zaretskii
438b98e5b7 Don't mirror slashes in convert-standard-filename on MS-Windows
* lisp/w32-fns.el (w32-convert-standard-filename): Don't mirror
slashes into backslashes.  This avoids producing ugly file names,
and is deemed no longer necessary, and should certainly be
unrelated to which shell is in use.
2016-04-25 11:50:37 +03:00
Michael Albinus
e43557e684 ; * admin/MAINTAINERS: Remove entry 2016-04-25 08:45:54 +02:00
Dmitry Gutov
1face76ba6 Revert the disputed VC change and update the tests
* lisp/vc/vc-hooks.el (vc-working-revision):
Remove the previous change.
(vc-state): Same.  And update the old, incorrect comment about
unregistered files
(http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00526.html).

* test/lisp/vc/vc-tests.el (vc-test--state): Remove the check
calling `vc-state' on default-directory (VC state is undefined
for directories).  Check that `vc-state' returns nil where it
returned `unregistered' before.  Remove all checks comparing
invocations with the backend passed in explictly and without.
(vc-test--working-revision): Remove all checks comparing
invocations with the backend passed in explictly and without.
Update comments, and add a new one.
2016-04-24 23:34:09 +03:00
Paul Eggert
dba65ec993 * etc/NEWS: Grammar and punctuation improvements. 2016-04-24 13:17:49 -07:00
Paul Eggert
169043d662 Merge from origin/emacs-25
9daf1cf * etc/NEWS: Improve wording of vc-git-log-output-coding-syste...
0cd2e92 Don't kill ~/ if it's the top level directory
4f40f5f describe-char: fix insert char documentation
87ee542 (vc-git-mode-line-string): Don't use `replace-regexp-in-string'
2016-04-24 12:49:22 -07:00
Paul Eggert
77f497d292 ; Merge from origin/emacs-25
The following commit was skipped:

5c587fd Bump version to 25.0.93
2016-04-24 12:49:21 -07:00
Paul Eggert
8833692b29 Merge from origin/emacs-25
960f90d * etc/AUTHORS: Update the AUTHORS file
b21e9d4 * admin/update_autogen: Use #!/usr/bin/env bash
2016-04-24 12:49:21 -07:00
Paul Eggert
0941415073 ; Merge from origin/emacs-25
The following commit was skipped:

cf14218 ; Auto-commit of loaddefs files.
2016-04-24 12:49:21 -07:00
Paul Eggert
f7794460e8 Merge from origin/emacs-25
78f9af7 ; ChangeLog fixes
162e549 * admin/authors.el (authors-ignored-files): Additions.
2b31a0c In x_set_window_size restore do_pending_window_change calls
401857e Fix Alt-modified keys on some European MS-Windows keyboards
a77cf24 Document 'help-go-forward'
1ba947f Revert "Allow to customize names of executables used by grep.el"
570e0fa Revert "Don't use 'find-program'"
645f4ef Revert "Use 'grep-find-program' in check-declare.el"
aa03257 Clarify documentation of 'dired-mark-files-containing-regexp'
ce0d8c7 Make tmm-menubar work in correct order again
b8d5a8f Remove the Meta-CVS VC backend
2016-04-24 12:48:34 -07:00
Paul Eggert
9daf1cf1dd * etc/NEWS: Improve wording of vc-git-log-output-coding-system etc. 2016-04-24 12:42:28 -07:00
Simen Heggestøyl
e6d6a99455 Don't let `css--property-values' return duplicates
* lisp/textmodes/css-mode.el (css--property-values): Don't return
duplicate values.

* test/lisp/textmodes/css-mode-tests.el (css-test-property-values):
Take the above into account.
(css-test-property-values-no-duplicates): Test that duplicates aren't
returned by `css--property-values'.
2016-04-24 19:58:36 +02:00
Lars Magne Ingebrigtsen
12846626bf Call `make-composed-keymap' correctly
* lisp/image-mode.el (image-mode-map): Call
`make-composed-keymap' correctly.
2016-04-24 17:21:18 +02:00
Lars Magne Ingebrigtsen
b7a21984cc Use `make-composed-keymap' instead of copying the keymap
* lisp/image-mode.el (image-mode-map): Use
`make-composed-keymap' instead of copying the keymap.
2016-04-24 17:11:23 +02:00
Tino Calancha
0cd2e923db Don't kill ~/ if it's the top level directory
* lisp/dired-aux.el (dired-kill-subdir): Don't kill ~/ if it's
the top level directory (bug#23017).
2016-04-24 17:05:53 +02:00
Lars Magne Ingebrigtsen
43cc5d8bdf Make `q' etc work in image mode again
* lisp/image-mode.el (image-mode-map): Restore
special-mode-map as the parent keymap of image-mode-map (bug#23167).
2016-04-24 16:22:31 +02:00
Lars Magne Ingebrigtsen
d1c75d827b Fix typo in last url.texi checkin 2016-04-24 15:44:15 +02:00
Lars Magne Ingebrigtsen
04355ac059 Make STARTTLS error messages better
* lisp/net/network-stream.el (network-stream-open-starttls):
Output a better error message when TLS negotiation fails while
doing STARTTLS (bug#23027).
2016-04-24 15:39:44 +02:00
Lars Magne Ingebrigtsen
331f4a6381 Encode the shr tests files with trailing white space 2016-04-24 15:18:29 +02:00
Simen Heggestøyl
8e2e252932 Cache results of `css--property-values'
* lisp/textmodes/css-mode.el (css--property-values): Cache computed
values.

* test/lisp/textmodes/css-mode-tests.el (css-test-property-value-cache):
New regression test for the above.
2016-04-24 15:02:05 +02:00
Michael Albinus
5cb7620027 Some improvements in vc
* lisp/vc/vc-hooks.el (vc-state, vc-working-revision):
Check, whether FILE is registered.

* lisp/vc/vc-rcs.el (vc-rcs-checkout-model): Return `locking'
for nonexistent files.

* test/lisp/vc/vc-tests.el (w32-application-type): Declare.
(vc-test--revision-granularity-function)
(vc-test--unregister-function): Use `vc-call-backend'.
(vc-test--run-maybe-unsupported-function): New defmacro.
(vc-test--register, vc-test--state, vc-test--working-revision)
(vc-test--checkout-model): Use it.  Fix also expected results.
(vc-test-src02-state, vc-test-rcs04-checkout-model): They pass now.
2016-04-24 14:59:05 +02:00
Lars Magne Ingebrigtsen
b876ee8971 Document the nil/default values of url-user-agent
* doc/misc/url.texi (Customization): Document the nil/default
values of url-user-agent.
2016-04-24 14:55:15 +02:00
Clément Pit--Claudel
234ef3b432 Compute User-Agent dynamically in url-http
* url-http.el (url-http-user-agent-string): Compute User-Agent
string dynamically.
(url-http--user-agent-default-string): New function.

* url-vars.el (url-privacy-level): Allow `emacs' in list of
information not to send.
(url-user-agent): Add nil and `default' options; do not
pre-compute value.
2016-04-24 14:51:33 +02:00
Jun Hao
97ecff0783 Handle auth-source items with special characters on OS X
* lisp/auth-source.el
(auth-source-macos-keychain-search-items): Handle keychain
output correctly when has special chararcters (bug#22824).
2016-04-24 14:43:06 +02:00
Magnus Henoch
ef4ed84e72 Implement process-attributes for Darwin
* src/sysdep.c (timeval_to_timespec, make_lisp_timeval)
(system_process_attributes): Implement process-attributes
for Darwin (bug#16579).
2016-04-24 14:33:05 +02:00
Lars Magne Ingebrigtsen
2a28ba3db9 Use Unicode literals instead of hex values
* lisp/net/shr.el (shr-tag-bdo): Use Unicode literals instead
of hex values for greater readability.
(shr-tag-bdi): Ditto.
2016-04-24 14:13:22 +02:00
Michael Albinus
cf80294ae1 ; NEWS: Move entries where they belong to 2016-04-24 13:55:56 +02:00
Steve Purcell
a28873ce73 Allow _ characters in SQL prompts
* lisp/progmodes/sql.el (sql-product-alist): Allow _
characters in SQL prompts (bug#22596).

Fixes issue 22596, whereby "_" is now not considered a word constituent
character in sql-interactive-mode, so prompts like "foo_dev# " are not
correctly detected. Rather than piggy-back on the symbol table, we
explicitly match against alphanumeric chars or "_".
2016-04-24 13:44:52 +02:00
Glenn Morris
5d1e62e329 When autoload-timestamps is nil, use a dummy timestamp rather than "t".
* lisp/emacs-lisp/autoload.el (autoload--non-timestamp): New constant.
(autoload-generate-file-autoloads, autoload-find-destination)
(update-directory-autoloads): Use autoload--non-timestamp.
2016-04-23 17:59:06 -07:00
Tino Calancha
4f40f5f63a describe-char: fix insert char documentation
* lisp/descr-text.el (describe-char):
Only 'ucs-names' entries can be inserted by unicode name (Bug#23325).

Copyright-paperwork-exempt: yes
2016-04-23 12:48:38 -07:00
Dmitry Gutov
87ee542fbc (vc-git-mode-line-string): Don't use `replace-regexp-in-string'
* lisp/vc/vc-git.el (vc-git-mode-line-string): Use `substring'
instead of `replace-regexp-in-string', because REV can be nil
(e.g. when FILE is a directory, bug#23344), and we actually know
we only need the first 4 characters.
2016-04-23 22:16:40 +03:00
Glenn Morris
b4c135f121 * test/lisp/xt-mouse-tests.el: Move from test/automated/. 2016-04-23 10:46:08 -07:00
Jö Fahlke
912e915981 Regexps for matching CMake output
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add
regexps for matching CMake output.
* test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): Add
CMake test cases.
* etc/compilation.txt (CMake): Add CMake examples.

Copyright-paperwork-exempt: yes
2016-04-23 03:10:46 +02:00
Nicolas Petton
5c587fdff1
Bump version to 25.0.93
* README:
* configure.ac:
* msdos/sed2v2.inp: Bump Emacs version to 25.0.93.
2016-04-22 19:00:05 +02:00
Nicolas Petton
960f90d057
* etc/AUTHORS: Update the AUTHORS file 2016-04-22 18:59:44 +02:00
Nicolas Petton
b21e9d4df2
* admin/update_autogen: Use #!/usr/bin/env bash 2016-04-22 18:58:57 +02:00
Nicolas Petton
cf14218c68 ; Auto-commit of loaddefs files. 2016-04-22 18:57:36 +02:00
Nicolas Petton
78f9af707f
; ChangeLog fixes
* ChangeLog.2:
* lisp/ChangeLog.17: Fix ChangeLog entries
2016-04-22 18:54:52 +02:00
Nicolas Petton
162e549c4e
* admin/authors.el (authors-ignored-files): Additions. 2016-04-22 18:50:26 +02:00
Artur Malabarba
6e790b71ef * lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options):
Fix docstring quotes.
2016-04-22 11:17:00 -03:00
Martin Rudalics
2b31a0c21e In x_set_window_size restore do_pending_window_change calls
* src/xterm.c (x_set_window_size):
* src/w32term.c (x_set_window_size): Restore
do_pending_window_change calls after their stupid removal on
2015-08-31.
2016-04-22 11:56:03 +02:00
Paul Eggert
bd1c7ca67e Improve character name escapes
* doc/lispref/nonascii.texi (Character Properties):
Avoid duplication of Unicode names.  Reformat examples to fit in
narrow pages.
* doc/lispref/objects.texi (General Escape Syntax):
Simplify and better-organize explanation of \N{...} escapes.
* src/character.h (CHAR_SURROGATE_PAIR_P): Remove; unused.
(char_surrogate_p): New inline function.
* src/lread.c: Do not include string.h; no longer needed.
(invalid_character_name, check_scalar_value): Remove; the ideas
behind these functions are now bundled into character_name_to_code.
(character_name_to_code): Remove undocumented support for "CJK
IDEOGRAPH-XXXX" names, as "U+XXXX" suffices.  Reject monstrosities
like "\N{U+-0}" and null bytes in \N escapes.  Reject floating
point in \N escapes instead of returning garbage.  Use
AUTO_STRING_WITH_LEN to lessen pressure on the garbage collector.
* test/src/lread-tests.el (lread-char-number, lread-char-name)
(lread-string-char-number, lread-string-char-name):
Test runtime behavior, not compile-time, as the test framework
is not set up to test compile-time.
(lread-char-surrogate-1, lread-char-surrogate-2)
(lread-char-surrogate-3, lread-char-surrogate-4)
(lread-string-char-number-2, lread-string-char-number-3):
New tests.
(lread-string-char-number-1): Rename from lread-string-char-number.
2016-04-21 19:29:41 -07:00
Philipp Stephani
e7cb38edc9 Use 'ucs-names' for character name escapes
* lread.c (invalid_character_name, check_scalar_value)
(parse_code_after_prefix, character_name_to_code): New helper
functions that use 'ucs-names' and parsing for CJK ideographs.
(read_escape): Use helper functions.
(syms_of_lread): New symbol 'ucs-names'.
* test/src/lread-tests.el: New tests; fix a couple of bugs in
existing tests.
2016-04-21 19:29:40 -07:00
Philipp Stephani
753c875714 Minor cleanups for character name escapes
* src/lread.c (init_character_names): Add missing 'void'.
Remove top-level 'const'.
(read_escape): Simplify loop a bit.  Remove top-level 'const'.
2016-04-21 19:29:40 -07:00
Philipp Stephani
a58d4e3c0f Add documentation for character name escapes 2016-04-21 19:29:40 -07:00
Philipp Stephani
de7d5f36e0 Implement named character escapes, similar to Perl
* lread.c (init_character_names): New function.
(read_escape): Read Perl-style named character escape sequences.
(syms_of_lread): Initialize new variable 'character_names'.
* test/src/lread-tests.el (lread-char-empty-name): Add test file
for src/lread.c.
2016-04-21 19:29:40 -07:00