]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoMove password-word-equivalents defn to mule-conf
Paul Eggert [Thu, 5 Apr 2018 00:02:28 +0000 (17:02 -0700)]
Move password-word-equivalents defn to mule-conf

* lisp/international/mule-conf.el (password-word-equivalents):
Move here ...
* lisp/simple.el (password-word-equivalents): ... from here.
This variable belongs in an i18n file somewhere, not in simple.el,
since it’s i18n-related.  Also, having it in simple.el tickles
Emacs performance bugs on some platforms when developers visit
simple.el.  Problem reported by Drew Adams in, for example:
https://lists.gnu.org/r/emacs-devel/2018-04/msg00124.html

6 years ago* lisp/isearch.el (isearch-pre-command-hook): Default to shift-translated
Juri Linkov [Wed, 4 Apr 2018 20:49:45 +0000 (23:49 +0300)]
* lisp/isearch.el (isearch-pre-command-hook): Default to shift-translated

move commands that can be enabled by the `isearch-move' property `enabled',
and disabled by `disabled'.
(search-exit-option): Doc fix.
(isearch-post-command-hook): Check for isearch-forward.
https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00438.html

6 years ago* lisp/shell.el (shell-mode): Check if buffer has a live process.
Juri Linkov [Wed, 4 Apr 2018 20:43:54 +0000 (23:43 +0300)]
* lisp/shell.el (shell-mode): Check if buffer has a live process.

(Bug#31028)

6 years agoDetect if a message can be encrypted and add an MML tag
Damien Cassou [Tue, 27 Mar 2018 14:57:51 +0000 (16:57 +0200)]
Detect if a message can be encrypted and add an MML tag

* lisp/gnus/message.el (message-all-recipients): Return a list of
pairs, one for each recipient in To, Cc, Bcc.
(message-all-epg-keys-available-p): Check that there is a public key
in epg for each recipient of the current message.
(message-sign-encrypt-if-all-keys-available): Add MML tag to sign and
encrypt current message if there is a public key for every recipient
in current message.

* test/lisp/gnus/message-tests.el (message-all-recipients): Test for
message-all-recipients.

6 years ago* lisp/auth-source.el (auth-sources): Allow sexp customization type
Ted Zlatanov [Wed, 4 Apr 2018 18:14:27 +0000 (14:14 -0400)]
* lisp/auth-source.el (auth-sources): Allow sexp customization type

6 years agoImprove GC+Cairo workaround
Paul Eggert [Wed, 4 Apr 2018 17:59:09 +0000 (10:59 -0700)]
Improve GC+Cairo workaround

Suggested by Eli Zaretskii (Bug#20890#31).
* src/font.h (font_data_structures_may_be_ill_formed): New function.
* src/ftfont.c (ftfont_close):
* src/ftcrfont.c (ftcrfont_close): Use it.

6 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 4 Apr 2018 14:50:45 +0000 (07:50 -0700)]
Merge from origin/emacs-26

3109d2b (origin/emacs-26) ; * lisp/ldefs-boot.el: Update.
86825c4 * etc/NEWS: Remove temporary markup.
737d0a2 * Update etc/AUTHORS
fbd03ba * ChangeLog.3: Update
56794ac Fix Bug#31022
a231c33 Update "Calendrical Calculations" cites
1527235 ; * doc/lispref/compile.texi (Compilation Functions): Fix wor...
b07decd ; * doc/lispref/compile.texi (Compilation Functions): Fix typo
a64c11a Fix term.el rendering following a window resize (Bug#30544)
1e6f09a * files.el (auto-save-visited-mode): Don't prompt for filenames.
eb8b13f ; * etc/NEWS: Improve the entry about pinentry.el removal.
52501ec Quote a few backticks in docstrings.

Conflicts:
etc/NEWS
lisp/ldefs-boot.el

6 years ago* etc/NEWS: Mention that output of 'help-for-help' is searchable now
Martin Rudalics [Wed, 4 Apr 2018 06:24:52 +0000 (08:24 +0200)]
* etc/NEWS: Mention that output of 'help-for-help' is searchable now

6 years ago* lisp/vc/emerge.el: Use lexical-binding
Stefan Monnier [Wed, 4 Apr 2018 03:17:30 +0000 (23:17 -0400)]
* lisp/vc/emerge.el: Use lexical-binding

Replace all `(lambda ...) with closures.  Use inhibit-read-only.
(emerge-mode): Use define-minor-mode.
(emerge-setup, emerge-setup-with-ancestor):
Don't use 'run-hooks' on local var.
(emerge-files, emerge-files-with-ancestor):
Don't use 'add-hook' on local var.
(emerge-convert-diffs-to-markers): Remove unused var 'B-point-min'.
Simplify 'offset'.
(emerge--current-beg, emerge--current-end): New macros.
(emerge-select-version): Pass 'diff-vector' to the function it calls.
Change all callers to use it instead of dyn-bound vars.

6 years agoPacify GCC when --enable-profiling
Paul Eggert [Wed, 4 Apr 2018 00:30:48 +0000 (17:30 -0700)]
Pacify GCC when --enable-profiling

* src/conf_post.h (PROFILING): Undef if not on a platform that
supports it.  Simplify uses accordingly.
* src/emacs.c (etext) [PROFILING]:
Declare at top level to avoid GCC warning.

6 years ago; * lisp/ldefs-boot.el: Update.
Nicolas Petton [Tue, 3 Apr 2018 20:46:40 +0000 (22:46 +0200)]
; * lisp/ldefs-boot.el: Update.

6 years ago* etc/NEWS: Remove temporary markup.
Nicolas Petton [Tue, 3 Apr 2018 20:33:13 +0000 (22:33 +0200)]
* etc/NEWS: Remove temporary markup.

6 years ago; * src/ftfont.c (ftfont_spec_pattern): Fix whitespace.
Eli Zaretskii [Tue, 3 Apr 2018 16:59:40 +0000 (19:59 +0300)]
; * src/ftfont.c (ftfont_spec_pattern): Fix whitespace.

6 years agoPut combine-change-calls around comment-region and uncomment-region
Alan Mackenzie [Tue, 3 Apr 2018 16:37:39 +0000 (16:37 +0000)]
Put combine-change-calls around comment-region and uncomment-region

* lisp/newcomment.el (comment-combine-change-calls): New buffer local
variable.
(uncomment-region-default-1, comment-region-default-1): Functions renamed from
uncomment-region-default and comment-region-default.
(uncomment-region-default, comment-region-default): New functions, which call
the above either enclosed in combine-change-calls or not.

6 years agoIntroduce new macro combine-change-calls
Alan Mackenzie [Tue, 3 Apr 2018 16:16:49 +0000 (16:16 +0000)]
Introduce new macro combine-change-calls

This macro is a bit like combine-after-change-calls, but also works with a
non-null before-change-functions.  It suppresses the operation of the change
hooks on a possibly large sequence of buffer modifications, replacing them
with a single invocation of before-change-functions at the start, and a single
invocation of after-change-functions at the end.

* lisp/subr.el (undo--combining-change-calls): New variable.
(combine-change-calls-1, undo--wrap-and-run-primitive-undo): New functions.
(combine-change-calls): New macro.

* doc/lispref/text.texi (Change Hooks): Document combine-change-calls.

* etc/NEWS: Add an entry under "Lisp Changes" for combine-change-calls.

6 years agoWork around GC+Cairo bug
Paul Eggert [Tue, 3 Apr 2018 15:24:10 +0000 (08:24 -0700)]
Work around GC+Cairo bug

Workaround suggested by Robert Pluim (Bug#20890#13).
* src/ftfont.c (ftfont_close) [USE_CAIRO]:
Do nothing if GC is in progress.

6 years agoPort FC_COLOR change to older fontconfig
Paul Eggert [Tue, 3 Apr 2018 15:12:41 +0000 (08:12 -0700)]
Port FC_COLOR change to older fontconfig

Problem reported by John ff in:
https://lists.gnu.org/r/emacs-devel/2018-04/msg00058.html
* src/ftfont.c (ftfont_spec_pattern) [!FC_COLOR]:
Don’t use FC_COLOR on older fontconfigs that don’t have it.

6 years ago* Update etc/AUTHORS
Nicolas Petton [Tue, 3 Apr 2018 13:00:12 +0000 (15:00 +0200)]
* Update etc/AUTHORS

6 years agoIgnore color fonts when using Xft
Robert Pluim [Tue, 3 Apr 2018 09:06:01 +0000 (11:06 +0200)]
Ignore color fonts when using Xft

* src/font.c (syms_of_font): New configuration variable
xft-ignore-color-fonts, default t.
* src/ftfont.c (ftfont_spec_pattern): Tell fontconfig to ignore
color fonts if xft-ignore-color-fonts is t.  (Bug#30874, Bug#30045)
* etc/NEWS: Document xft-ignore-color-fonts.

6 years ago* ChangeLog.3: Update
Nicolas Petton [Tue, 3 Apr 2018 12:31:27 +0000 (14:31 +0200)]
* ChangeLog.3: Update

6 years agoDocument custom-variable-history
Eli Zaretskii [Tue, 3 Apr 2018 11:30:54 +0000 (14:30 +0300)]
Document custom-variable-history

* etc/NEWS:
* doc/lispref/minibuf.texi (Minibuffer History): Document
'custom-variable-history'.

6 years agoFix Bug#31022
Michael Albinus [Tue, 3 Apr 2018 07:51:01 +0000 (09:51 +0200)]
Fix Bug#31022

* lisp/cus-start.el (temporary-file-directory): Suppress file name
handlers when calling `shell-command-to-string'.  (Bug#31022)

6 years agoUpdate "Calendrical Calculations" cites
Paul Eggert [Tue, 3 Apr 2018 05:42:26 +0000 (22:42 -0700)]
Update "Calendrical Calculations" cites

* lisp/calendar/calendar.el: Update citations to the book
"Calendrical Calculations" and its predecessors.

6 years ago* lisp/progmodes/cc-{defs,engine,langs,vars}.el: Comment the use of "a\\`"
Alan Mackenzie [Mon, 2 Apr 2018 19:53:41 +0000 (19:53 +0000)]
* lisp/progmodes/cc-{defs,engine,langs,vars}.el: Comment the use of "a\\`"

6 years agoClarify eq on floats
Paul Eggert [Mon, 2 Apr 2018 19:19:00 +0000 (12:19 -0700)]
Clarify eq on floats

* doc/lispref/objects.texi (Equality Predicates):
Say that two floats with the same values might or might not be eq.

6 years ago; * doc/lispref/compile.texi (Compilation Functions): Fix wording.
Eli Zaretskii [Mon, 2 Apr 2018 17:25:52 +0000 (20:25 +0300)]
; * doc/lispref/compile.texi (Compilation Functions): Fix wording.

6 years agoFix Testcover bug in handling of vectors containing dotted lists
Gemini Lasswell [Mon, 2 Apr 2018 16:34:31 +0000 (09:34 -0700)]
Fix Testcover bug in handling of vectors containing dotted lists

* lisp/emacs-lisp/testcover.el (testcover-analyze-coverage-compose):
Handle dotted lists. Fix bug#30909.
* test/lisp/emacs-lisp/testcover-resources/testcases.el:
(dotted-list-in-vector-bug-30909): New test case.
(quotes-within-backquotes-bug-25316, dotted-backquote)
(quoted-backquote, backquoted-vector-bug-25316)
(vector-in-macro-spec-bug, backquoted-dotted-alist): Change
docstrings to mention analyzing code instead of reinstrumenting
it.

6 years ago; * doc/lispref/compile.texi (Compilation Functions): Fix typo
Tino Calancha [Mon, 2 Apr 2018 15:43:25 +0000 (00:43 +0900)]
; * doc/lispref/compile.texi (Compilation Functions): Fix typo

6 years agoAdd a history variable for `read-variable'
Charles A. Roelli [Mon, 2 Apr 2018 14:18:23 +0000 (16:18 +0200)]
Add a history variable for `read-variable'

* src/minibuf.c (Fread_variable): Use the history variable when
calling Fcompleting_read.
(syms_of_minibuf): New history variable, custom-variable-history.

6 years agoOptimize c-syntactic-skip-backward, c-determine-limit for large comment blocks
Alan Mackenzie [Mon, 2 Apr 2018 11:33:24 +0000 (11:33 +0000)]
Optimize c-syntactic-skip-backward, c-determine-limit for large comment blocks

* lisp/progmodes/cc-engine.el (c-ssb-lit-begin): Remove.
(c-syntactic-skip-backward): Remove the surrounding c-self-bind-state-cache.
Use the standard function c-literal-start in place of the special purpose
c-ssb-lit-begin.  With a suitable skip-chars argument (the usual case),
optimize by invoking c-backward-syntactic-ws to move back over comment blocks.
(c-determine-limit-get-base): Inovke an early c-backward-syntactic-ws.
(c-determine-limit): Use c-forward-comment whilst moving forward.  Cope with
an empty position stack whilst looking for non-literals (bug fix).  In the
recursive call, double try-size to prevent Lisp stack overflow.

6 years agoFix term.el rendering following a window resize (Bug#30544)
Noam Postavsky [Mon, 2 Apr 2018 10:55:29 +0000 (06:55 -0400)]
Fix term.el rendering following a window resize (Bug#30544)

* lisp/term.el (term-reset-size): Reset cached row and column values
before changing point.

6 years ago* files.el (auto-save-visited-mode): Don't prompt for filenames.
Philipp Stephani [Sat, 31 Mar 2018 10:26:30 +0000 (12:26 +0200)]
* files.el (auto-save-visited-mode): Don't prompt for filenames.

6 years agoMake help-for-help window searchable (Bug#19655)
Simona Arizanova [Mon, 2 Apr 2018 08:14:56 +0000 (10:14 +0200)]
Make help-for-help window searchable (Bug#19655)

* lisp/help.el (help-map): Map C-s to new function
search-forward-help-for-help.
(help-for-help-internal): In doc-string add entry for C-s.
(search-forward-help-for-help): New function.

Copyright-paperwork-exempt: yes

6 years ago; * etc/NEWS: Improve the entry about pinentry.el removal.
Eli Zaretskii [Mon, 2 Apr 2018 05:59:27 +0000 (08:59 +0300)]
; * etc/NEWS: Improve the entry about pinentry.el removal.

6 years ago* lisp/emacs-lisp/debug.el (debug): Don't hang upon error in initial-frame.
Stefan Monnier [Mon, 2 Apr 2018 04:23:20 +0000 (00:23 -0400)]
* lisp/emacs-lisp/debug.el (debug): Don't hang upon error in initial-frame.

6 years agoQuote a few backticks in docstrings.
Philipp Stephani [Sun, 1 Apr 2018 21:33:16 +0000 (23:33 +0200)]
Quote a few backticks in docstrings.

* lisp/emacs-lisp/macroexp.el (macroexp-progn, macroexp-let*)
(macroexp-if): Quote backtick in docstrings.

6 years agoFurther improve advice in make-tarball.txt
Paul Eggert [Sun, 1 Apr 2018 21:16:48 +0000 (14:16 -0700)]
Further improve advice in make-tarball.txt

See comments by Glenn Morris in:
https://lists.gnu.org/r/emacs-devel/2018-03/msg00968.html
* admin/make-tarball.txt: Bring back refcard advice.

6 years agoPort make-dist to tar 1.27 and earlier
Paul Eggert [Sun, 1 Apr 2018 20:53:15 +0000 (13:53 -0700)]
Port make-dist to tar 1.27 and earlier

Problem reported by Glenn Morris in:
https://lists.gnu.org/r/emacs-devel/2018-03/msg00984.html
* make-dist: Use --sort=name only if Tar supports it.

6 years ago* lisp/nxml/nxml-mode.el (nxml-sexp-element-flag): Set :version.
Glenn Morris [Sun, 1 Apr 2018 17:55:57 +0000 (10:55 -0700)]
* lisp/nxml/nxml-mode.el (nxml-sexp-element-flag): Set :version.

6 years ago; Merge from origin/emacs-26
Glenn Morris [Sun, 1 Apr 2018 14:50:39 +0000 (07:50 -0700)]
; Merge from origin/emacs-26

The following commits were skipped:

b87bd58 (origin/emacs-26) ; Auto-commit of loaddefs files.
9fee1b8 Minor copyedits of completion-at-point-functions documentation
748f0fd (completion-at-point-functions): Improve doc

6 years agoMerge from origin/emacs-26
Glenn Morris [Sun, 1 Apr 2018 14:50:39 +0000 (07:50 -0700)]
Merge from origin/emacs-26

af1624f * lisp/net/shr.el (shr-browse-url): Doc fix.  (Bug#30957)
3a451bd ; * doc/emacs/msdos.texi: Fix wording of last change.
3bc1e2f Mention `key-description' as inverse of `kbd' (Bug#30942)
e50196e Document return value of pcase (Bug#30425)
8a2466f * doc/emacs/macos.texi: Tweak grammar and capitalization.
9db62bf Distinguish free from non-free OSes
ff49d86 * doc/emacs/misc.texi (Amusements): Avoid non-printing charac...
5bab671 Fix xrefs in pdf Emacs manual

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 Apr 2018 11:28:42 +0000 (07:28 -0400)]
; Auto-commit of loaddefs files.

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 Apr 2018 10:25:39 +0000 (06:25 -0400)]
; Auto-commit of loaddefs files.

6 years agoFollowup to last change
Eli Zaretskii [Sun, 1 Apr 2018 09:45:37 +0000 (12:45 +0300)]
Followup to last change

* etc/NEWS: Mark nxml-sexp-element-flag entry as not needing
documentation updates.

* lisp/nxml/nxml-mode.el (nxml-mode, nxml-forward-balanced-item):
Doc fixes.

6 years agoChange the default value of nxml-sexp-element-flag.
Jostein Kjønigsen [Tue, 20 Mar 2018 06:15:17 +0000 (07:15 +0100)]
Change the default value of nxml-sexp-element-flag.

* lisp/nxml/nxml-mode.el (nxml-sexp-element-flag): Default value
is now t.

6 years agoMinor copyedits of completion-at-point-functions documentation
Eli Zaretskii [Sun, 1 Apr 2018 09:19:49 +0000 (12:19 +0300)]
Minor copyedits of completion-at-point-functions documentation

* lisp/minibuffer.el (completion-at-point-functions):
* doc/lispref/minibuf.texi (Completion in Buffers): Fix wording
and filling.

(cherry picked from commit a8ddd05d7d32946b892b9faaba6c9736ed2ad847)

6 years ago(completion-at-point-functions): Improve doc
Stefan Monnier [Tue, 27 Mar 2018 20:01:30 +0000 (16:01 -0400)]
(completion-at-point-functions): Improve doc

(cherry picked from commit b56c56f203f8b066dd71e6ae6a254121b3ac3f08)

6 years agoMinor copyedits of completion-at-point-functions documentation
Eli Zaretskii [Sun, 1 Apr 2018 09:19:49 +0000 (12:19 +0300)]
Minor copyedits of completion-at-point-functions documentation

* lisp/minibuffer.el (completion-at-point-functions):
* doc/lispref/minibuf.texi (Completion in Buffers): Fix wording
and filling.

6 years ago* lisp/net/shr.el (shr-browse-url): Doc fix. (Bug#30957)
Eli Zaretskii [Sun, 1 Apr 2018 09:09:54 +0000 (12:09 +0300)]
* lisp/net/shr.el (shr-browse-url): Doc fix.  (Bug#30957)

6 years agoSupport more separators in rmail-retry-failure
Eli Zaretskii [Sat, 31 Mar 2018 17:41:32 +0000 (20:41 +0300)]
Support more separators in rmail-retry-failure

* lisp/mail/rmail.el (mail-unsent-separator): Add a form of
separator that confused rmail-retry-failure due to additional
lines that start with a series of dashes.  (Bug#30965)

6 years ago; * doc/emacs/msdos.texi: Fix wording of last change.
Eli Zaretskii [Sat, 31 Mar 2018 08:16:05 +0000 (11:16 +0300)]
; * doc/emacs/msdos.texi: Fix wording of last change.

6 years ago; * admin/make-tarball.txt: Fix whitespace.
Eli Zaretskii [Sat, 31 Mar 2018 07:56:26 +0000 (10:56 +0300)]
; * admin/make-tarball.txt: Fix whitespace.

6 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 31 Mar 2018 07:53:56 +0000 (10:53 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

6 years agoMention `key-description' as inverse of `kbd' (Bug#30942)
Hong Xu [Sun, 25 Mar 2018 21:35:51 +0000 (14:35 -0700)]
Mention `key-description' as inverse of `kbd' (Bug#30942)

* lisp/subr.el (kbd): Add `key-description' as inverse of `kbd' in the
doc.

6 years agoDocument return value of pcase (Bug#30425)
Noam Postavsky [Sat, 31 Mar 2018 04:40:43 +0000 (00:40 -0400)]
Document return value of pcase (Bug#30425)

* doc/lispref/control.texi (Pattern matching case statement):
* lisp/emacs-lisp/pcase.el (pcase): State that pcase returns nil if no
patterns match.
(pcase-exhaustive): State that an error is signaled if no patterns
match.

6 years ago* doc/emacs/macos.texi: Tweak grammar and capitalization.
Paul Eggert [Sat, 31 Mar 2018 02:07:48 +0000 (19:07 -0700)]
* doc/emacs/macos.texi: Tweak grammar and capitalization.

6 years agoDistinguish free from non-free OSes
Richard Stallman [Sat, 31 Mar 2018 02:05:22 +0000 (19:05 -0700)]
Distinguish free from non-free OSes

6 years agoImprove doc for web pages; reproducible tarballs
Paul Eggert [Fri, 30 Mar 2018 23:11:45 +0000 (16:11 -0700)]
Improve doc for web pages; reproducible tarballs

* admin/make-tarball.txt: Make the tarballs more reproducible.
Fix instructions for web pages as best I can (they are still
incomplete).
* make-dist (default_gzip): Add --no-name for gzip.
(taropt): Add options to make the build more reproducible.

6 years agoDo not assume --with-file-notification
Paul Eggert [Fri, 30 Mar 2018 21:25:33 +0000 (14:25 -0700)]
Do not assume --with-file-notification

* src/fileio.c (report_file_notify_error) [!USE_FILE_NOTIFY]: Omit.

6 years agoCentralize Bug#30931 fix
Paul Eggert [Fri, 30 Mar 2018 21:23:55 +0000 (14:23 -0700)]
Centralize Bug#30931 fix

* src/marker.c (detach_marker): New function.
* src/editfns.c (save_restriction_restore):
* src/insdel.c (signal_before_change): Use it.

6 years agoFix another case of freed markers in the undo-list (Bug#30931)
Noam Postavsky [Fri, 30 Mar 2018 20:44:24 +0000 (16:44 -0400)]
Fix another case of freed markers in the undo-list (Bug#30931)

* src/alloc.c (free_marker): Remove.
* src/editfns.c (save_restriction_restore):
* src/insdel.c (signal_before_change): Detach the markers from the
buffer when we're done with them instead of calling free_marker on
them.
* test/src/editfns-tests.el (delete-region-undo-markers-1)
(delete-region-undo-markers-2): New tests.

6 years agoAdd Capital sharp s to 2 more Latin input methods
Eli Zaretskii [Fri, 30 Mar 2018 13:12:07 +0000 (16:12 +0300)]
Add Capital sharp s to 2 more Latin input methods

* lisp/leim/quail/latin-pre.el ("latin-prefix"):
* lisp/leim/quail/latin-post.el ("latin-postfix"): Support Capital
sharp s.  (Bug#30988)

6 years agoFix C-p and C-n when wrap-prefix is too wide
Eli Zaretskii [Fri, 30 Mar 2018 12:57:57 +0000 (15:57 +0300)]
Fix C-p and C-n when wrap-prefix is too wide

* src/xdisp.c (move_it_in_display_line_to): Avoid looping in
previous/next-line when wrap-prefix is set to a too-wide
stretch of whitespace.  (Bug#30432)

6 years agoSimplify represented filename handling (bug#30800)
Alan Third [Fri, 30 Mar 2018 11:25:15 +0000 (12:25 +0100)]
Simplify represented filename handling (bug#30800)

* src/nsfns.m (ns_set_represented_filename): Move function from
nsterm.m and set represented filename directly.
* src/nsterm.h (ns_set_represented_filename): Remove definition.
* src/nsterm.m (ns_set_represented_filename): Move function to
nsfns.m.
(x_free_frame_resources): Remove references to represented_frame.
(sendEvent): Don't set represented filename.

6 years agoImprove Tramp test performance
Michael Albinus [Fri, 30 Mar 2018 10:36:07 +0000 (12:36 +0200)]
Improve Tramp test performance

* lisp/net/tramp.el (tramp-backtrace): Improve performance.

* test/lisp/net/tramp-tests.el (tramp-test03-file-name-host-rules):
Skip for older Emacsen.
(tramp-test39-utf8): Remove instrumentation.

6 years agoFix CHECK_ALLOCATED_AND_LIVE abort during GC
Paul Eggert [Fri, 30 Mar 2018 06:00:23 +0000 (23:00 -0700)]
Fix CHECK_ALLOCATED_AND_LIVE abort during GC

* src/editfns.c (save_restriction_restore):
Wait for the GC to free the temporary markers (Bug#30931).

6 years agoPrefer \... to control chars in .el literals
Paul Eggert [Fri, 30 Mar 2018 00:41:11 +0000 (17:41 -0700)]
Prefer \... to control chars in .el literals

6 years ago* src/xterm.c (x_make_frame_visible): Fix typo in previous change.
Noam Postavsky [Thu, 29 Mar 2018 23:17:34 +0000 (19:17 -0400)]
* src/xterm.c (x_make_frame_visible): Fix typo in previous change.

6 years agoDon't wait for visible frames to become visible
Noam Postavsky [Thu, 29 Mar 2018 23:11:47 +0000 (19:11 -0400)]
Don't wait for visible frames to become visible

For discussion, see thread starting at
https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00807.html.
* src/xterm.c (x_make_frame_visible): Check FRAME_VISIBLE_P before
calling x_wait_for_event.

6 years agoNew experimental variable read-integer-overflow-as-float.
Paul Eggert [Thu, 29 Mar 2018 18:01:38 +0000 (11:01 -0700)]
New experimental variable read-integer-overflow-as-float.

Following a suggestion by Eli Zaretskii (Bug#30408#46).
* etc/NEWS: Mention it.
* src/lread.c (syms_of_lread): Add it.
(read1): Treat out-of-range integers as floats if
read-integer-overflow-as-float is non-nil.

6 years agoLisp reader now checks for integer overflow
Paul Eggert [Thu, 29 Mar 2018 17:16:29 +0000 (10:16 -0700)]
Lisp reader now checks for integer overflow

* doc/lispref/numbers.texi (Integer Basics), etc/NEWS:
Document this.
* src/lisp.h (S2N_IGNORE_TRAILING, S2N_OVERFLOW_TO_FLOAT):
New constants.
* src/lread.c (string_to_number): Change trailing bool arg to
integer argument with flags, to support S2N_OVERFLOW_TO_FLOAT.
All uses changed.
* test/src/editfns-tests.el (read-large-integer): New test.

6 years agoSupport Capital sharp S in German input methods
Eli Zaretskii [Thu, 29 Mar 2018 16:45:13 +0000 (19:45 +0300)]
Support Capital sharp S in German input methods

* lisp/leim/quail/latin-post.el ("german-postfix"):
* lisp/leim/quail/latin-pre.el ("german-prefix"): Add Capital
sharp S.  (Bug#30988)

* etc/NEWS: Mention the support of Capital sharp S.

6 years agoFix Bug#30946
Michael Albinus [Thu, 29 Mar 2018 13:59:11 +0000 (15:59 +0200)]
Fix Bug#30946

* doc/misc/tramp.texi (Multi-hops): Mention host name checks.

* lisp/net/tramp.el (tramp-set-syntax, tramp-dissect-file-name)
(tramp-debug-message, tramp-handle-shell-command):
* lisp/net/tramp-adb.el (tramp-adb-handle-shell-command):
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler)
(tramp-archive-dissect-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler): Adapt callees.

* lisp/net/tramp-compat.el (tramp-compat-user-error): Move defsubst ---

* lisp/net/tramp-sh.el (tramp-compute-multi-hops): Check for proper
host names in multi-hop.  (Bug#30946)

* lisp/net/tramp.el (tramp-user-error): ... here.  Make it a defun.

* test/lisp/net/tramp-tests.el (tramp-test03-file-name-host-rules):
New test.

6 years ago* src/keyboard.c (record_char, read_key_sequence): Copy raw events
Stefan Monnier [Thu, 29 Mar 2018 13:11:22 +0000 (09:11 -0400)]
* src/keyboard.c (record_char, read_key_sequence): Copy raw events

6 years agoTest notify handlers only if file notification
Paul Eggert [Wed, 28 Mar 2018 23:32:46 +0000 (16:32 -0700)]
Test notify handlers only if file notification

* test/lisp/files-tests.el:
(files-file-name-non-special-notify-handlers):
Skip if file notification is not available.

6 years agoPort recent org-clock fix to POSIX time_t
Paul Eggert [Wed, 28 Mar 2018 22:03:40 +0000 (15:03 -0700)]
Port recent org-clock fix to POSIX time_t

* lisp/org/org-clock.el (org-clock-special-range):
Don't assume support for time_t values less than 0, or less than
-2**31 for that matter (Bug#27736).

6 years agoUpdate from Gnulib
Paul Eggert [Wed, 28 Mar 2018 20:14:07 +0000 (13:14 -0700)]
Update from Gnulib

This incorporates:
2018-03-28 time_rz: fix workaround for Mac OS X 10.6 infloop
* m4/time_rz.m4: Copy from Gnulib.

6 years agoHandle C++17's constexpr keyword in if statements
Alan Mackenzie [Wed, 28 Mar 2018 19:39:30 +0000 (19:39 +0000)]
Handle C++17's constexpr keyword in if statements

* lisp/progmodes/cc-engine.el (c-after-conditional): Test for matches to
c-block-stmt-hangon-key.

* lisp/progmodes/cc-langs.el (c-block-stmt-hangon-kwds): New lang const.
(c-block-stmt-hangon-key): New lang const/var matching any element of the
above.

6 years ago* doc/emacs/misc.texi (Amusements): Avoid non-printing character.
Glenn Morris [Wed, 28 Mar 2018 19:00:58 +0000 (15:00 -0400)]
* doc/emacs/misc.texi (Amusements): Avoid non-printing character.

; Hey fellow kids, remember that gag from 2008?  Emacs does.

6 years agoReplace faulty non-matching regexp "\\<\\>" with "a\\`"
Alan Mackenzie [Wed, 28 Mar 2018 18:53:32 +0000 (18:53 +0000)]
Replace faulty non-matching regexp "\\<\\>" with "a\\`"

The regexp "\\<\\>", which is supposed never to match, actually matches, for
instance, where a Chinese character is directly followed by an ASCII letter.
So, replace it with "a\\`".

* lisp/progmodes/cc-defs.el (cc-fix, c-make-keywords-re)
* lisp/progmodes/cc-engine.el (c-beginning-of-statement-1)
(c-forward-<>-arglist-recur, c-forward-decl-or-cast-1)
(c-looking-at-decl-block)
* lisp/progmodes/cc-langs.el (c-assignment-op-regexp)
(c-block-comment-ender-regexp, c-block-comment-start-regexp)
(c-line-comment-start-regexp, c-doc-comment-start-regexp)
(c-decl-start-colon-kwd-re, c-type-decl-prefix-key)
(c-type-decl-operator-prefix-key, c-pre-id-bracelist-key)
(c-enum-clause-introduction-re, c-nonlabel-token-2-key)
* lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re)
(c-make-noise-macro-regexps):
Replace "\\<\\>" by "a\\`".

6 years agoFix xrefs in pdf Emacs manual
Glenn Morris [Wed, 28 Mar 2018 18:20:57 +0000 (14:20 -0400)]
Fix xrefs in pdf Emacs manual

* doc/emacs/fortran-xtra.texi (ForIndent Cont, ForIndent Num)
(Fortran Columns):
* doc/emacs/picture-xtra.texi (Rectangles in Picture):
Fix recent changes that neglected the splitting of the pdf manuals.

6 years agoRemove unstable tags in Tramp
Michael Albinus [Wed, 28 Mar 2018 17:06:42 +0000 (19:06 +0200)]
Remove unstable tags in Tramp

* test/lisp/net/tramp-tests.el (tramp-test39-utf8)
(tramp-test39-utf8-with-stat, tramp-test39-utf8-with-perl)
(tramp-test39-utf8-with-ls): Remove :unstable tag.

6 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 28 Mar 2018 16:38:22 +0000 (09:38 -0700)]
Merge from origin/emacs-26

9bff405 (origin/emacs-26) * doc/misc/org.texi (Installation): Fix clo...
613c9a5 Update Org to v9.1.9
1b075a9 ; Fix some tiny doc typos
441fe20 De-obsolete `if-let' and `when-let'
8696038 * lisp/htmlfontify.el (hfy-begin-span-handler): Doc fix.
930f7b1 * doc/lispref/functions.texi (Defining Functions): Improve in...
95ccf50 Fix crash after frame is freed on macOS (bug#30800)
45d0475 More manual editing
2acb9f0 Minor manual changes changes
d481cba * lisp/calculator.el (calculator-paste-decimals): Add version.
7d6c7d0 ; Use GNU not Gnu in docs
1bc4def More proofreading of the Emacs manual

Conflicts:
doc/misc/org.texi
etc/NEWS
lisp/org/org-clock.el

6 years agoImprove tramp--test-utf8
Michael Albinus [Wed, 28 Mar 2018 16:05:58 +0000 (18:05 +0200)]
Improve tramp--test-utf8

* test/lisp/net/tramp-tests.el (tramp--test-check-files):
Encode string when testing environment variables.
(tramp--test-utf8): Remove "TaiViet" test.

6 years agoReduce parallelism to Windows build
Phillip Lord [Wed, 28 Mar 2018 08:40:55 +0000 (09:40 +0100)]
Reduce parallelism to Windows build

* admin/nt/dist-build/build-zips.sh: Reduce make parallelism to 2.

6 years ago* doc/misc/org.texi (Installation): Fix clone commands.
Michael Albinus [Wed, 28 Mar 2018 08:38:26 +0000 (10:38 +0200)]
* doc/misc/org.texi (Installation): Fix clone commands.

6 years agoUpdate Org to v9.1.9
Rasmus [Tue, 27 Mar 2018 21:34:41 +0000 (23:34 +0200)]
Update Org to v9.1.9

Please note this is a bugfix release. See etc/ORG-NEWS for details.

6 years ago; Fix some tiny doc typos
Glenn Morris [Tue, 27 Mar 2018 21:02:04 +0000 (17:02 -0400)]
; Fix some tiny doc typos

6 years agoAvoid using unportable integer in org-clock
Paul Eggert [Tue, 27 Mar 2018 20:48:13 +0000 (13:48 -0700)]
Avoid using unportable integer in org-clock

* lisp/org/org-clock.el (org-clock--oldest-date): Avoid use of an
integer outside portable Emacs range.  Go back to using a simple
check, since decode-time should no longer infloop.

6 years agoUpdate from Gnulib
Paul Eggert [Tue, 27 Mar 2018 20:30:50 +0000 (13:30 -0700)]
Update from Gnulib

This incorporates:
2018-03-26 time_rz: work around Mac OS X 10.6 infloop
2018-03-20 euidaccess: Port to native Windows.
* lib/euidaccess.c, lib/time_rz.c, m4/time_rz.m4: Copy from Gnulib.

6 years ago(benchmark-run-compiled): Make it work like 'benchmark-run' again
Stefan Monnier [Tue, 27 Mar 2018 20:19:40 +0000 (16:19 -0400)]
(benchmark-run-compiled): Make it work like 'benchmark-run' again

* lisp/emacs-lisp/benchmark.el (benchmark-run): Add special case for
nil repetitions.

6 years ago(completion-at-point-functions): Improve doc
Stefan Monnier [Tue, 27 Mar 2018 20:01:30 +0000 (16:01 -0400)]
(completion-at-point-functions): Improve doc

6 years ago(read_key_sewuence): Use POSN in second event when needed (bug#30955)
Stefan Monnier [Tue, 27 Mar 2018 19:26:02 +0000 (15:26 -0400)]
(read_key_sewuence): Use POSN in second event when needed (bug#30955)

* src/keyboard.c (active_maps): Add arg 'second_event'.
(read_key_sequence): Pass it.

* lisp/mouse.el (mouse--click-1-maybe-follows-link): Modify event in place.

6 years ago* lisp/mouse.el: Remove redundant ':group's.
Stefan Monnier [Tue, 27 Mar 2018 19:22:42 +0000 (15:22 -0400)]
* lisp/mouse.el: Remove redundant ':group's.

6 years ago* test/lisp/emacs-lisp/bytecomp-tests.el
Glenn Morris [Tue, 27 Mar 2018 01:56:33 +0000 (21:56 -0400)]
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-test-featurep-warnings): New.

6 years ago* lisp/emacs-lisp/benchmark.el (benchmark-run): Allow variable.
Stefan Monnier [Tue, 27 Mar 2018 01:07:35 +0000 (21:07 -0400)]
* lisp/emacs-lisp/benchmark.el (benchmark-run): Allow variable.

(benchmark-run): Allow `repetitions` to be a variable rather than a constant.

6 years agoFix constant folding of overflows
Paul Eggert [Tue, 27 Mar 2018 00:03:54 +0000 (17:03 -0700)]
Fix constant folding of overflows

This suppresses some byte-code optimizations that were invalid in
the presence of integer overflows, because they meant that .elc
files assumed the runtime behavior of the compiling platform, as
opposed to the runtime platform.  Problem reported by Pip Cet in:
https://lists.gnu.org/r/emacs-devel/2018-03/msg00753.html
* lisp/emacs-lisp/byte-opt.el (byte-opt--portable-max)
(byte-opt--portable-min): New constants.
(byte-opt--portable-numberp, byte-opt--arith-reduce)
(byte-optimize-1+, byte-optimize-1-): New functions.
(byte-optimize-plus, byte-optimize-minus, byte-optimize-multiply)
(byte-optimize-divide): Avoid invalid optimizations.
(1+, 1-): Use new optimizers.
(byte-optimize-or, byte-optimize-cond): Simplify by using
remq instead of delq and copy-sequence.

6 years agoDe-obsolete `if-let' and `when-let'
Michael Heerdegen [Sat, 10 Mar 2018 15:39:41 +0000 (16:39 +0100)]
De-obsolete `if-let' and `when-let'

For the following release it is planned to make `if-let*' and
`when-let*' aliases for `if-let' and `when-let'.  For now we revert
declaring `if-let' and `when-let' obsolete and tweak the docstrings.

* lisp/emacs-lisp/subr-x.el (if-let*, when-let*): Make docstrings
refer to those of `if-let' and `when-let'.
(if-let, when-let): De-obsolete.  Rewrite documentation.

6 years ago* lisp/htmlfontify.el (hfy-begin-span-handler): Doc fix.
Glenn Morris [Mon, 26 Mar 2018 20:12:51 +0000 (16:12 -0400)]
* lisp/htmlfontify.el (hfy-begin-span-handler): Doc fix.

6 years agoTrivial fixes for last changes to package.el and marker.c
Stefan Monnier [Mon, 26 Mar 2018 18:29:49 +0000 (14:29 -0400)]
Trivial fixes for last changes to package.el and marker.c

* lisp/emacs-lisp/package.el (package-quickstart): Add missing version.
* src/marker.c (verify_bytepos): Fix typo.