Commit graph

135386 commits

Author SHA1 Message Date
Glenn Morris
83a9133e35 Merge from origin/emacs-26
ff9c962 ; * lisp/ldefs-boot.el: Update.
b4a251c * ; ChangeLog.3 update
d3104e3 * etc/AUTHORS: Update.
a19bfb7 Remove .art from the default list of ImageMagick extensions
6985caa Fix input after setting x-wait-for-event-timeout nil
715388a Fix two warnings in eshell.texi
d49cdd9 * lisp/minibuffer.el (completion-table-dynamic): Improve docs...
5dc4e51 * lisp/emacs-lisp/debug.el (debug-on-variable-change): Doc fi...
76ef805 Fix a typo in ELisp manual
b5e66f4 Update citations of Internet RFCs
57ece2a Fix handling of manpage references divided by hyphenation
7ad0cd6 * doc/misc/eshell.texi: Fix some @ref's.
12b7940 Fix a typo in lispref/syntax.texi

# Conflicts:
#	lisp/gnus/nnrss.el
#	lisp/mail/ietf-drums.el
2019-02-20 12:07:22 -08:00
Nicolas Petton
ff9c962079
; * lisp/ldefs-boot.el: Update. 2019-02-20 17:52:24 +01:00
Nicolas Petton
b4a251c5c8
* ; ChangeLog.3 update 2019-02-20 17:51:38 +01:00
Nicolas Petton
d3104e3c00
* etc/AUTHORS: Update. 2019-02-20 17:50:45 +01:00
Tassilo Horn
ae77728d14 Fix missing interactive spec
* lisp/json.el (json-pretty-print-buffer-ordered): Add interactive
  spec "P" which has been missing.
2019-02-20 16:57:43 +01:00
Michael Albinus
29db0dd311 Improve connection hand-shaking in tramp-adb.el
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
Send an additional RET.
2019-02-20 15:59:18 +01:00
Stefan Monnier
74240f2312 * lisp/progmodes/sql.el (sql-is-indent-available): Remove
(sql-indent-enable): Check (fboundp 'sqlind-minor-mode) without
wondering which file might provide it.
(sql-read-connection): η-reduce 'car'.
2019-02-20 09:25:54 -05:00
Martin Rudalics
15a2b2c071 Fix handling of MINIBUF argument in 'walk-window-tree'
* lisp/window.el (walk-window-tree): Handle MINIBUF argument
as advertised when FRAME is minibuffer-only.
(window--resize-apply-p, window--sanitize-window-sizes)
(delete-other-windows, split-window-sensibly): Call
'walk-window-tree' with suitable MINIBUF argument.
2019-02-20 11:17:23 +01:00
Glenn Morris
a19bfb7a5e Remove .art from the default list of ImageMagick extensions
It seems that .art files can be non-image files that
ImageMagick mistakenly treats as extremely large images.
Real .art images seem rare.
* lisp/image.el (imagemagick-enabled-types): Remove ART.  (Bug#22289)
2019-02-19 22:04:19 -08:00
Glenn Morris
712661b4ab * lisp/progmodes/sql.el: Fix use of string-empty-p in recent change. 2019-02-19 17:02:16 -05:00
Eli Zaretskii
6985caa86e Fix input after setting x-wait-for-event-timeout nil
* src/w32term.c (x_make_frame_visible): Call unblock_input
before returning early.  (Bug#34575)
2019-02-19 20:58:53 +02:00
Charles A. Roelli
9f7212ad42 Simplify easy-mmode-define-navigation
* lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
Simplify a one-argument call to "or" and use buffer-narrowed-p instead
of checking that condition by hand.
2019-02-19 19:54:44 +01:00
Michael Albinus
0a6c4479cf Implement access-file in Tramp
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist)
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
Add `access-file'.

* lisp/net/tramp-archive.el (tramp-archive-handle-access-file):
* lisp/net/tramp.el (tramp-handle-access-file): New defun.
(tramp-condition-case-unless-debug): Add declaration.
(tramp-handle-insert-directory):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
* lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
Check, whether directory is accessible.

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test17-insert-directory)
(tramp-archive-test18-file-attributes):
* test/lisp/net/tramp-tests.el (tramp-test17-insert-directory)
(tramp-test18-file-attributes): Test error cases.
2019-02-19 14:00:17 +01:00
João Távora
e8b6cc9a99 cycle-sort-function prevails in completion-all-sorted-completions
* lisp/minibuffer.el (completion-all-sorted-completions): If
completion table has cycle-sort-function, that prevails over other
sorting strategies.
2019-02-19 09:11:28 +00:00
João Távora
55478e4ad7 switch-to-buffer's completion table uses its own sorting
* src/minibuf.c (Finternal_complete_buffer): Add
Qcycle_sort_function to completion table's metadata.
(syms_of_minibuf): New symbol Qcycle_sort_function.
2019-02-19 09:11:28 +00:00
Martin Rudalics
715388acec Fix two warnings in eshell.texi
* doc/misc/eshell.texi (Built-ins, Globbing): Fix `.' or `,'
must follow @xref, not `f' warnings.
2019-02-19 09:55:51 +01:00
Michael R. Mauger
3700375334 Merge branch 'wallet' 2019-02-18 23:31:21 -05:00
Michael R. Mauger
1a6bcc91e3 * lisp/progmodes/sql.el: Added password wallet using
`auth-source' package.
(sql-auth-source-search-wallet): New function.
(sql-password-wallet): New variable.
(sql-password-search-wallet-function): New variable.
(sql-get-login): Handle password wallet search.
(sql-product-interactive): Handle password function.
* test/lisp/progmodes/sql-test.el: Test wallet changes.
(sql-test-login-params): New test variable.
(with-sql-test-connect-harness): New macro to wrap test
configuration around calls to `sql-connect'.
(sql-test-connect, sql-test-connect-password-func)
(sql-test-connect-wallet-server-database)
(sql-test-connect-wallet-database)
(sql-test-connect-wallet-server): New ERT tests.
* etc/NEWS: Updated SQL Mode descriptions.
2019-02-18 23:15:54 -05:00
Stefan Monnier
3f6e4c1ce5 * lisp/mh-e/mh-acros.el (mh-defstruct): Minor simplification 2019-02-18 23:11:25 -05:00
Stefan Monnier
a755dc13ab * lisp/erc/erc.el (erc-version-string): Remove, unused 2019-02-18 22:49:30 -05:00
Michael R. Mauger
ed1e805af7 * lisp/progmodes/sql.el defensive programming
(sql-statement-regexp): if 'ansi' dialect is not defined, use "select"
(sql-interactive-mode): establish process sentinel iff there is a
process. Default values for :prompt-regexp and :prompt-length.
(sql-product-interactive): only check process status iff there is a
process.
2019-02-18 21:52:36 -05:00
Stefan Monnier
e66d5a1c45 * lisp/elec-pair.el: Do modify+undo more carefully
(electric-pair-inhibit-if-helps-balance): Use the undo system
instead of undoing by hand.
2019-02-18 19:00:44 -05:00
Paul Eggert
a812ed215c Speed up cl-list-length
* lisp/emacs-lisp/cl-extra.el (cl-list-length): Use ‘length’
to do the real work; this is simpler and uses a better algorithm.
2019-02-18 14:52:37 -08:00
Paul Eggert
5d46862440 Minor profiler improvements
* src/profiler.c (evict_lower_half, record_backtrace)
(setup_cpu_timer, cmpfn_profiler, hashfn_profiler):
Assume C99.  Use bool for boolean.
(timer_getoverrun): Remove; simplify use to not need it.
(Fprofiler_cpu_start): Any negative return from setup_cpu_timer fails.
(Fprofiler_cpu_stop): Simplify initialization.
2019-02-18 14:43:19 -08:00
Stefan Monnier
e6f8ddbb3b * lisp/emacs-lisp/cl-lib.el (cl-endp): Move to cl-seq.el
Use 'cl-check-type'.
2019-02-18 13:16:57 -05:00
Stefan Monnier
d49cdd92fc * lisp/minibuffer.el (completion-table-dynamic): Improve docstring 2019-02-18 13:00:44 -05:00
Ken Brown
eccfdaff5b Use 'timer_getoverrun' on Cygwin when possible
* configure.ac: Add a check for the 'timer_getoverrun' function.

* src/profiler.c [CYGWIN] : Define 'timer_getoverrun' as a
macro only on versions of Cygwin where it is not already
defined as a function.
2019-02-18 12:16:06 -05:00
David Pathakjee
5dc4e51e51 * lisp/emacs-lisp/debug.el (debug-on-variable-change): Doc fix. (Bug#34518)
Copyright-paperwork-exempt: yes
2019-02-18 19:13:04 +02:00
Stefan Monnier
2ede38ce4b * lisp/vc/smerge-mode.el (smerge-change-buffer-confirm): New var
(smerge-vc-next-conflict): Obey it.  Save buffer before going to
the next.  Don't emit message when vc-find-conflicted-file can't find
other conflicted file.

* lisp/vc/vc-hooks.el: Use lexical-binding.

* lisp/vc/vc.el: Remove redundant :groups.
(vc-find-conflicted-file): Autoload.
2019-02-18 09:43:59 -05:00
Konstantin Kharlamov
2eecaa2897 * lisp/vc/smerge-mode.el (smerge-vc-next-conflict): New command
Copyright-paperwork-exempt: yes
2019-02-18 09:15:08 -05:00
Michael Albinus
b05702d7eb Increase timeout on emba for Tramp
* test/lisp/net/tramp-tests.el
(tramp--test-shell-command-to-string-asynchronously):
Increase timeout on emba.
2019-02-18 10:54:45 +01:00
Paul Eggert
287dd6baa3 * src/fns.c: Fix comment. 2019-02-18 00:18:35 -08:00
Paul Eggert
9cb2cb9725 emacs-init-time outputs more digits now
* lisp/time.el (emacs-init-time): Output more digits;
formerly this was always outputting "0.0 seconds" for me
because the number of seconds was less than 0.1.
2019-02-17 23:17:37 -08:00
Paul Eggert
43f6fd434d * lisp/emacs-lisp/cl-lib.el (cl-endp): Remove stray 'x. 2019-02-17 21:35:55 -08:00
Juri Linkov
4f24b4a6df * lisp/tar-mode.el (tar--try-jka-compr): Remove. (Bug#34251)
(tar-extract): Call archive-try-jka-compr instead of tar--try-jka-compr.

* lisp/arc-mode.el (archive-try-jka-compr): Call set-buffer-multibyte
after erase-buffer.
2019-02-17 23:07:43 +02:00
Alan Mackenzie
adeea448bc Fontify C function identifiers in parentheses correctly (e.g. in lisp.h)
Fix handling of CC Mode's syntactic WS cache.  Make noise-macro option
variables buffer local.

* lisp/progmodes/cc-engine.el (c-put-is-sws, c-put-in-sws, c-remove-is-sws)
(c-remove-in-sws c-remove-is-and-in-sws): Add edebug specs.
(c-invalidate-sws-region-before): Add a `beg' parameter.  Handle noise
macros like other literals.
(c-invalidate-sws-region-after-del): Move the adjustment of (cdr
c-sws-lit-limits) due to buffer change to c-invalidate-sws-region-after.
(c-invalidate-sws-region-after-ins): Move (goto-char end) to the correct
place.
(c-invalidate-sws-region-after): Adjust (cdr c-sws-lit-limits) due to buffer
change.  Handle noise macros.
(c-backward-sws): Set simple-ws-beg appropriately when the start point is in
the middle of a noise macro.
(c-forward-decl-or-cast-1): Recognize a function identifier being declared in
parentheses.

* lisp/promodes/cc-mode.el (c-before-change): Supply a `beg' argument to
c-invalidate-sws-region-before.

* lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re)
(c-noise-macro-name-re, c-noise-macro-names, c-noise-macro-with-parens-names):
Make these buffer local variables.
2019-02-17 18:57:10 +00:00
Alan Mackenzie
7898568bbb * Put INLINE and ATTRIBUTE_NO_SANITIZE_UNDEFINED into c-noise-macro-names
* .dir-locals (entry for c-mode): Put the two strings into
c-noise-macro-names.
2019-02-17 18:33:54 +00:00
Eli Zaretskii
76ef80591b Fix a typo in ELisp manual
* doc/lispref/abbrevs.texi (Abbrev Table Properties): Fix a
typo.  (Bug#34508)
2019-02-17 17:30:40 +02:00
Paul Eggert
b5e66f46a6 Update citations of Internet RFCs
For example, RFC 822 has been obsoleted by RFC 2822, which in
turn has been obsoleted by RFC 5322.
* doc/emacs/ack.texi, doc/lispref/os.texi:
* doc/misc/emacs-mime.texi, doc/misc/gnus-coding.texi:
* doc/misc/gnus.texi, doc/misc/sc.texi:
* lisp/calendar/parse-time.el, lisp/gnus/gnus-cite.el:
* lisp/gnus/gnus-util.el, lisp/gnus/message.el:
* lisp/gnus/mm-bodies.el, lisp/gnus/nnrss.el:
* lisp/mail/feedmail.el, lisp/mail/ietf-drums.el:
* lisp/mail/mail-extr.el, lisp/mail/mail-utils.el:
* lisp/mail/mailclient.el, lisp/mail/mailheader.el:
* lisp/mail/rfc2047.el, lisp/mail/rfc822.el, lisp/mail/rmail.el:
* lisp/mail/sendmail.el, lisp/mail/smtpmail.el:
* lisp/mail/supercite.el, lisp/mh-e/mh-e.el:
* lisp/mh-e/mh-utils.el, lisp/net/imap.el:
* lisp/net/newst-backend.el, lisp/org/org-id.el:
* lisp/ps-samp.el, lisp/simple.el, lisp/url/url-util.el:
Update RFC citations.
2019-02-16 12:00:02 -08:00
Paul Eggert
5c158d1320 * src/lread.c (readevalloop): Simplify via suffix_p. 2019-02-16 10:18:07 -08:00
Eli Zaretskii
2208c01264 * lisp/startup.el (load--user-init-file): Support early-init.elc as well. 2019-02-16 16:52:53 +02:00
Stefan Monnier
6b7b85b60e * lisp/startup.el: Rename load-user-init-file
Remove redundant :groups.
(startup--load-user-init-file): Rename from load-user-init-file.
2019-02-16 09:19:33 -05:00
Mattias Engdegård
478bbf7c80 Prevent over-eager rx character range condensation
`rx' incorrectly considers character ranges between ASCII and raw bytes to
cover all codes in-between, which includes all non-ASCII Unicode chars.
This causes (any "\000-\377" ?Å) to be simplified to (any "\000-\377"),
which is not at all the same thing: [\000-\377] really means
[\000-\177\200-\377] (Bug#34492).

* lisp/emacs-lisp/rx.el (rx-any-condense-range): Split ranges going
from ASCII to raw bytes.
* test/lisp/emacs-lisp/rx-tests.el (rx-char-any-raw-byte): Add test case.
* etc/NEWS: Mention the overall change (Bug#33205).
2019-02-16 12:43:32 +01:00
Eli Zaretskii
57ece2a052 Fix handling of manpage references divided by hyphenation
* lisp/man.el (Man-reference-regexp): Accept a newline as part
of a manpage name only if it's preceded by a hyphen.  (Bug#34286)
(Man-translate-references): Adapt to change in
'Man-reference-regexp'.
(Man-default-man-entry): Support references divided between
two lines by an ASCII hyphen.  This is a left-over from fixing
bug#6289.
2019-02-16 11:51:25 +02:00
Paul Eggert
aff0c58506 Port tramp-adb to various 'touch' platforms
* lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times):
Try nanoseconds first, then plain seconds, then touch -t.
2019-02-16 09:27:53 +01:00
Gregor Zattler
7ad0cd6f1e * doc/misc/eshell.texi: Fix some @ref's.
Copyright-paperwork-exempt: yes
2019-02-16 09:28:35 +02:00
Eli Zaretskii
3d9a56f000 Fix 'early-init-file' value when file is missing
* lisp/startup.el (command-line): Pass 'early-init.el', with
an explicit .el extension, to load-user-init-file.
Reported by Radon Rosborough <radon.neon@gmail.com> in
http://lists.gnu.org/archive/html/emacs-devel/2019-01/msg00314.html.
2019-02-16 09:15:40 +02:00
Eli Zaretskii
12b794044a Fix a typo in lispref/syntax.texi
* doc/lispref/syntax.texi (Syntax Table Internals): Fix a
typo.  (Bug#34495)
2019-02-16 09:05:19 +02:00
Stefan Monnier
f390147f7b * lisp/progmodes/cc-engine.el: Remove unneeded require of 'cl' 2019-02-15 19:07:20 -05:00
Stefan Monnier
fd0ab0b9bd Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs into trunk 2019-02-15 18:34:38 -05:00