1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

131898 commits

Author SHA1 Message Date
Stefan Monnier
c9a268552c * lisp/emacs-lisp/cl-preloaded.el: Update cl-slot-descriptor name. 2018-01-26 16:37:29 -05:00
Francesco Potortì
606c94f47d Fix a typo in rmail.el
* lisp/mail/rmail.el (rmail-simplified-subject): Fix a typo in the
regexp.  (Bug#29659)
2018-01-26 16:11:33 +02:00
Eli Zaretskii
2b46ac7cee Minor fix for "M-x pdb"
* lisp/progmodes/gud.el (gud-pdb-marker-regexp): Add @ and SPC to
the regexp.  (Bug#30208)
2018-01-26 12:18:25 +02:00
Andy Moreton
e08f241658 Fix emacs-module-tests to work out of build tree
* test/Makefile.in (test_module_dir): Build the test module library in
a subdirectory of the build directory (not the source tree).
(MODULE_CFLAGS): Fix location of emacs-module.h header file.
(test_module): Move built library out of the source tree.
* test/src/emacs-module-tests.el (mod-test-file): Locate the test module
library relative to the running Emacs executable.
2018-01-26 12:09:42 +02:00
Stefan Monnier
62e4148a39 * lisp/emacs-lisp/gv.el (char-table-range): Add gv-setter. 2018-01-25 19:20:49 -05:00
Juri Linkov
2e777582e0 * lisp/arc-mode.el (archive-extract): Let-bind `create-lockfiles' to nil
to prevent directory time modification by lock_file on visiting
a file from archive.  (Bug#30215)
(archive-summarize): Let-bind `create-lockfiles' to nil
instead of `buffer-file-truename'.
2018-01-25 23:40:52 +02:00
Stefan Monnier
9107cf30c0 Replace (default-value 'enable-multibyte-characters) with t
Since Emacs-24, (default-value 'enable-multibyte-characters) can't be
changed any more, so we can remove all code which checks this value.

* lisp/x-dnd.el (x-dnd-handle-file-name):
* lisp/w32-fns.el (w32-set-default-process-coding-system):
* lisp/textmodes/ispell.el (ispell-send-string):
* lisp/term/internal.el (dos-codepage-setup):
* lisp/tar-mode.el (tar-header-block-tokenize, tar--extract):
* lisp/startup.el (command-line):
* lisp/server.el (server-process-filter):
* lisp/net/browse-url.el (browse-url-file-url):
* lisp/menu-bar.el (menu-bar-options-menu, menu-bar-describe-menu):
* lisp/mail/sendmail.el (mail-setup):
* lisp/mail/rmail.el (rmail-mode, rmail-get-new-mail):
* lisp/mail/rfc2047.el (rfc2047-encode-message-header):
* lisp/mail/emacsbug.el (report-emacs-bug):
* lisp/international/mule-diag.el (mule-diag):
* lisp/files.el (find-file-noselect-1):
* lisp/dos-fns.el (dos-set-default-process-coding-system):
* lisp/arc-mode.el (archive-mode):
* lisp/international/mule-cmds.el (mule-menu-keymap)
(set-default-coding-systems, set-language-info)
(set-language-environment, standard-display-european-internal)
(set-locale-environment): Simplify code.
2018-01-25 13:35:37 -05:00
Michael Albinus
f44b50ffc9 * lisp/simple.el (shell-command-to-string):
Call `shell-command' in order to respect file name handlers.
2018-01-25 15:29:38 +01:00
Michael Albinus
421e2fb791 * lisp/net/trampver.el: Simplify version check. 2018-01-25 12:44:29 +01:00
Juri Linkov
a84c3810b5 * lisp/dired.el (dired-internal-do-deletions): Remove nreverse
to compensate the changes that added nreverse to dired-do-delete
and dired-do-flagged-delete in 9ecbdee (bug#30162)
2018-01-24 23:44:09 +02:00
Stefan Monnier
bb2364205e * lisp/net/tramp.el: Require trampver here instead of...
* lisp/net/tramp-compat.el: ... there.
2018-01-24 14:49:39 -05:00
Glenn Morris
686c83a473 * admin/automerge: Disable rebasing. 2018-01-24 14:44:39 -05:00
Marcin Borkowski
96de0503cd Merge branch 'fix/bug-20871-cur' 2018-01-24 10:32:40 +01:00
Glenn Morris
109da684c5 Avoid kill-emacs-hook errors hanging batch mode
* src/emacs.c (Fkill_emacs): Prevent errors from kill-emacs-hook
hanging Emacs in batch mode.  (Bug#29955)
2018-01-23 20:55:09 -05:00
Philipp Stephani
4c998b4e4f Add unit test for Bug#30005.
* test/src/callint-tests.el (call-interactively/embedded-nulls): New
unit test.
2018-01-23 23:41:15 +01:00
Stefan Monnier
18139139c9 Remove final uses of 'cl' in lisp/net
* lisp/net/pop3.el: Use lexical-binding and cl-lib.
(pop3-write-to-file): Remove unused var 'start'.
(pop3-make-date): Remove unused var 'sign'.

* lisp/net/rfc2104.el: Use lexical-binding and cl-lib.

* lisp/net/shr-color.el: Use lexical-binding and cl-lib.

* lisp/net/sieve-manage.el: Use lexical-binding and cl-lib.
2018-01-23 14:42:43 -05:00
Stefan Monnier
e41c1dc99e * lisp/net/imap.el: Use lexical-binding and cl-lib
Require packages instead of autoloading their functions.
(imap-send-command): Remove unused vars 'stream' and 'eol'.
(imap-parse-response): Use pcase.
(imap-parse-fetch): Remove unused arg 'response'.

* lisp/format-spec.el: Don't require CL.
2018-01-23 14:13:50 -05:00
Stefan Monnier
5ed5f548aa * lisp/gnus/message.el: Tweak header font-lock and ecomplete completion
(message-font-lock-make-header-matcher): Delete.
(message-match-to-eoh): New function to replace it.
(message-font-lock-keywords): Use it.
(message-strip-forbidden-properties): Remove redundant binding.
(message-goto-body): Avoid called-interactively-p, only use
push-mark when called interactively.
(message-goto-body-1): Merge into message-goto-body.  Redefine as alias.
(message-goto-eoh): Call message-goto-body interactively.
(message--in-tocc-p): New function, extracted from message-display-abbrev.
(message-ecomplete-capf): New function.
2018-01-23 13:55:35 -05:00
Stefan Monnier
f2918640bf * lisp/ecomplete.el: Add completion-table; use lexical-binding and cl-lib
Also remove redundant :group args.
(ecomplete-database-file): Use locate-user-emacs-file.
(ecomplete-completion-table): New completion table.
(completion-category-defaults): Set default behavior for that table.
2018-01-23 12:14:48 -05:00
Eli Zaretskii
6d836771da Support null characters in interactive specs
* src/callint.c (Fcall_interactively): Support 'interactive'
specifications with embedded null characters.  (Bug#30005)
2018-01-23 17:48:08 +02:00
Stefan Monnier
0a75af9156 * lisp/emacs-lisp/ert.el (describe-symbol-backends): Add ourselves
(ert-describe-test): Return the description text as well.
Remove left over version check.
* lisp/help-mode.el (describe-symbol-backends): Add docstring.
2018-01-22 22:00:55 -05:00
Philipp Stephani
2df391c202 Add a regression test for Bug#30004.
* test/src/callint-tests.el
(call-interactively/incomplete-multibyte-sequence): New unit test.
2018-01-22 23:56:21 +01:00
Philipp Stephani
3558d96b60 * src/nsterm.m (x_set_offset): Remove unused variable 'screens'. 2018-01-22 23:29:09 +01:00
Juri Linkov
71e458505f Restore isearch correctly after M-e in special modes (bug#30187)
* lisp/isearch.el (isearch-suspended): New defvar.
(with-isearch-suspended): Set isearch-suspended to t
at the beginning, then set it back to nil at the end.

* lisp/comint.el (comint-history-isearch-backward)
(comint-history-isearch-backward-regexp): Set global value of
comint-history-isearch to t.
(comint-history-isearch-end): Reevaluate
comint-history-isearch when isearch-edit-string finishes.

* lisp/dired-aux.el (dired-isearch-filenames)
(dired-isearch-filenames-regexp): Set global value of
dired-isearch-filenames to t.
(dired-isearch-filenames-end): Reevaluate
dired-isearch-filenames when isearch-edit-string finishes.
2018-01-23 00:14:10 +02:00
Paul Eggert
4aabb425db ; Spelling fix 2018-01-22 08:50:06 -08:00
Paul Eggert
35675bb93f Merge from origin/emacs-26
1fc98ed073 ; Spelling fix
bb396a369c Update Org to v9.1.6
fa582153f7 Use text-pixels values only when saving framesets (Bug#30141)
6b01b9475d Minor improvement in section "Pages" of the usere manual
e8c8bd3de2 Minor improvements in user manual
26b8b92e63 Improve the "Mark" chapter of the user manual
759569fe40 Improve the "Buffers" chapter of the user manual
c2e6d121ff * lisp/term.el (term-send-input): Fix text duplication in ...
854a1c0a61 Improve "Buffers" in the user manual

# Conflicts:
#	etc/NEWS
2018-01-22 08:43:54 -08:00
Paul Eggert
1fc98ed073 ; Spelling fix 2018-01-22 08:42:29 -08:00
Rasmus
bb396a369c Update Org to v9.1.6
Please note this is a bugfix release. See etc/ORG-NEWS for details.
2018-01-22 16:02:55 +01:00
Michael Albinus
c42959cc20 Fix byte-compiler warning in tramp-sh.el
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Use `set-process-coding-system' rather than interactive
`set-buffer-process-coding-system'.

* lisp/net/tramp.el (tramp-default-user-alist)
(tramp-default-host-alist): Fix docstring.
2018-01-22 15:07:56 +01:00
Aaron Jensen
fa582153f7 Use text-pixels values only when saving framesets (Bug#30141)
* lisp/frameset.el (frameset-persistent-filter-alist): Specify
that text-pixels values are by default only saved by framesets
so the parameter is not set when restoring (Bug#30141).
2018-01-22 10:52:32 +01:00
Michael Albinus
d0fd9809d7 Finish changes in autorevert from commit 530bb2dc68
* lisp/autorevert.el (auto-revert-buffers):
Check `auto-revert-timer' being a timerp.

* test/lisp/filenotify-tests.el (file-notify-test04-autorevert):
Adapt test in order to cover changed behavior of autorevert.
2018-01-22 09:12:16 +01:00
Juri Linkov
b3fb0d47c1 * lisp/vc/add-log.el (change-log-next-buffer): Check file for nil. 2018-01-21 23:48:32 +02:00
Juri Linkov
afba4ccb8b New function read-answer (bug#30073)
* lisp/emacs-lisp/map-ynp.el (read-answer): New function.
(read-answer-short): New defcustom.

* lisp/dired.el (dired-delete-file): Use read-answer.
(dired--yes-no-all-quit-help): Remove function.
(dired-delete-help): Remove defconst.

* lisp/subr.el (assoc-delete-all): New function.
2018-01-21 23:45:43 +02:00
Lars Ingebrigtsen
9ae0e4aa1a (archive-rar-summarize): Adjust parsing to be more permissive
* lisp/arc-mode.el (archive-rar-summarize): Adjust parsing to
be more permissive.

The previous code would stop parsing if we had a directory entry or a
negative ratio as seen from the output of lsar on Debian jessie:

  0. D----    16221659  -----  Nr20  2005-12-24 19:30  foo/
  4. -----      466509  -0.0%  Nr20  2005-12-24 19:19  foo/bar.jpg
2018-01-21 21:42:05 +01:00
Alan Mackenzie
c965e5a641 Handle C99 Compound Literals in return statements and argument lists.
* lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): Recognize
a brace list when preceded by "return" or inside parentheses, either
immediately after the "(" or following a comma.
(c-looking-at-inexpr-block): Test c-has-compound-literals rather than hard
coded C++ Mode.
(c-guess-basic-syntax, CASE 7B): Test additionally for not being just inside a
parenthesis or being at a Java "new" keyword.  CASE 9: Remove the simple
minded test on the contents of a block to determine a brace list.

* lisp/progmodes/cc-langs.el (c-has-compound-literals): New lang const and lang var.
2018-01-21 18:29:26 +00:00
Eli Zaretskii
6b01b9475d Minor improvement in section "Pages" of the usere manual
* doc/emacs/text.texi (Pages): Improve wording.  Suggested by Will
Korteland <emacs-devel@korte.land> in emacs-manual-bugs@gnu.org.
2018-01-21 19:55:46 +02:00
Eli Zaretskii
e8c8bd3de2 Minor improvements in user manual
* doc/emacs/trouble.texi (Emergency Escape, Contributing): Clarify
text.  Suggested by Jonathan Kyle Mitchell <kyle@jonathanmitchell.org>
in emacs-manual-bugs@gnu.org
2018-01-21 19:45:14 +02:00
Eli Zaretskii
26b8b92e63 Improve the "Mark" chapter of the user manual
* doc/emacs/mark.texi (Setting Mark, Marking Objects): Improve and
clarify wording.  Suggested by John Cummings <john@rootabega.net>
in emacs-manual-bugs@gnu.org.
2018-01-21 19:36:57 +02:00
Eli Zaretskii
759569fe40 Improve the "Buffers" chapter of the user manual
* doc/emacs/buffers.texi (Several Buffers): Correct description of
prefix arguments.  Clarify "bury".
(Buffer Menus): Clarify wording.  Reported by John Cummings
<john@rootabega.net> in emacs-manual-bugs@gnu.org.
2018-01-21 19:27:37 +02:00
Simen Heggestøyl
cff45e6f4e Parse percent values in CSS alpha components
* lisp/textmodes/css-mode.el (css--rgb-color): Support parsing percent
values in the alpha component.

* test/lisp/textmodes/css-mode-tests.el
(css-test-rgb-to-named-color-or-hex, css-test-rgb-parser): Update for
the above changes.
2018-01-21 14:20:56 +01:00
tino calancha
c2e6d121ff * lisp/term.el (term-send-input): Fix text duplication in docstring 2018-01-21 13:34:55 +09:00
Paul Eggert
64c8467386 Fix tempfile creation when byte compiling
This improves on the recent fix for master failing to build
on FreeBSD.  Suggested by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2018-01/msg00600.html
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
Put tempfile next to the target file, as was the original intent.
2018-01-20 19:18:49 -08:00
Michael Albinus
f0c1277af5 Extend tramp-test02-file-name-dissect* tests
* test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect)
(tramp-test02-file-name-dissect-simplified)
(tramp-test02-file-name-dissect-separate): Test also
`tramp-default-method-alist', `tramp-default-user-alist' and
`tramp-default-host-alist'.
2018-01-21 00:14:33 +01:00
Eli Zaretskii
854a1c0a61 Improve "Buffers" in the user manual
Suggested by John Cummings <john@rootabega.net> in
emacs-manual-bugs@gnu.org:
* doc/emacs/buffers.texi (Select Buffer): Add cross-references to
"Windows" and "Frames".
(Misc Buffer, Kill Buffer): Use BUFFER consistently in commands
that accept buffer names.
(Select Buffer): Improve description of "M-g M-g".  Improve
wording.
(Misc Buffer, Kill Buffer): Improve wording.
(Kill Buffer): Fix the response required by kill-some-buffers.
Mention customizable options that control what clean-buffer-list
does.
(Several Buffers): More detail about
'Buffer-menu-unmark-all-buffers'.
2018-01-20 21:37:30 +02:00
Jarosław Rzeszótko
3a34d14630 * lisp/ielm.el: Bring up the debugger when requested
Copyright-paperwork-exempt: yes

(ielm-eval-input): Don't catch errors during evaluation
of the expression if debug-on-error is set.
2018-01-20 12:51:06 -05:00
Glenn Morris
60d5a13d28 Merge from origin/emacs-26
cfc94fd (origin/emacs-26) Don't mention 'vc-stay-local' in the user m...
8ce430b Fix a typo in calendar.texi
bb748b3 Minor improvement in wording of the Emacs manual
b603aff Revert "Fix tempfile creation when byte compiling"
4fd446e Fix tempfile creation when byte compiling
7f48a11 Improve the Emacs manual as suggested in emacs-manual-bugs
728ded0 * lisp/emacs-lisp/bytecomp.el: Tweak last change
c6c05e2 Unbreak building Emacs on FreeBSD
a41ad3d Don't unnecessarily use non-ASCII characters in C sources
c28d4b6 Portability fixes in emacs-module-tests
1d50c18 Add tests for term.el
2018-01-20 08:23:30 -08:00
Glenn Morris
194c530034 ; Merge from origin/emacs-26
The following commit was skipped:

5472568 Handle split AnSiT messages for term.el (Bug#17231)
2018-01-20 08:23:30 -08:00
Glenn Morris
ec6ef1e38b Merge from origin/emacs-26
297dc41 * configure.ac (emacs_config_features): Add threads.

Conflicts:
	configure.ac
2018-01-20 08:23:30 -08:00
Michael Albinus
530bb2dc68 Use file notification in autorevert also for recreated files
* lisp/autorevert.el (auto-revert-mode)
(global-auto-revert-mode, auto-revert-notify-add-watch)
(auto-revert-notify-handler, auto-revert-handler): Do not use
buffer local `auto-revert-use-notify' anymore.

* test/lisp/autorevert-tests.el
(auto-revert-test02-auto-revert-deleted-file): Adapt test in
order to check, that file notification is reenabled when possible.
2018-01-20 16:26:02 +01:00
Eli Zaretskii
cfc94fd245 Don't mention 'vc-stay-local' in the user manual
* doc/emacs/vc1-xtra.texi (CVS Options):
* doc/emacs/maintaining.texi (VC Directory Buffer): Remove
references to 'vc-stay-local', which no longer exists.
(Bug#30138)
2018-01-20 14:44:01 +02:00