1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00
Commit Graph

133013 Commits

Author SHA1 Message Date
Basil L. Contovounesios
74ff5ade80 Minor simple.el simplifications (Bug#31211)
* lisp/simple.el (kill-append, push-mark, pop-mark):
Simplify conditionals and surrounding code.
2018-05-02 20:20:25 -04:00
Basil L. Contovounesios
f2c74543ed Fix off-by-one history pruning (bug#31211)
* lisp/subr.el (add-to-history): Clarify docstring.
Protect against negative history-length and unnecessary variable
modification, as per read_minibuf.

* lisp/ido.el (ido-record-command):
* lisp/international/mule-cmds.el (deactivate-input-method):
(set-language-environment-input-method):
* lisp/isearch.el (isearch-done):
* lisp/minibuffer.el (read-file-name-default):
* lisp/net/eww.el (eww-save-history):
* lisp/simple.el (edit-and-eval-command, repeat-complex-command):
(command-execute, kill-new, push-mark):
* src/callint.c (Fcall_interactively):
* src/minibuf.c (read_minibuf): Delegate to add-to-history.

* test/lisp/simple-tests.el (command-execute-prune-command-history):
* test/src/callint-tests.el
(call-interactively-prune-command-history): New tests.
2018-05-02 20:18:07 -04:00
Glenn Morris
05e9477ab5 * lisp/textmodes/ispell.el (ispell-use-framepop-p): Doc fix. 2018-05-02 15:39:30 -04:00
Glenn Morris
9de7e321b6 ; * lisp/auth-source.el (auth-sources): Fix a comment. 2018-05-02 15:29:53 -04:00
Michael Albinus
a5246dc02b Adapt Tramp for auth-source
* lisp/net/tramp.el (tramp-read-passwd): auth-source could return
cascaded functions.
2018-05-02 18:12:48 +02:00
Michael Albinus
8ae7c424c4 Fix some edge cases of tramp-smb
* lisp/net/tramp-smb.el (tramp-smb-errors):
Add "NT_STATUS_REVISION_MISMATCH".
(tramp-smb-handle-delete-directory): Check, that the directory
has been removed indeed.
(tramp-smb-get-localname): Add further checks on filename syntax.

* lisp/net/tramp.el (tramp-localname-regexp): Do not allow linefeeds.

* test/lisp/net/tramp-tests.el (tramp-smb-get-localname): Declare.
(auth-source-save-behavior): Set it to nil.
(tramp-test01-file-name-syntax): Extend, checking for linefeeds.
(tramp-test03-file-name-host-rules, tramp--test-utf8): Refine tests.
(tramp-test03-file-name-method-rules): New test.
(tramp--test-ignore-add-name-to-file-error): New defmacro.
(tramp-test21-file-links): Use it.
2018-05-02 12:31:51 +02:00
Glenn Morris
3e7ec620d4 ; Merge from origin/emacs-26
The following commits were skipped:

65ac277 (origin/emacs-26) Port --enable-gcc-warnings to GCC 8
4b10800 Advise CFLAGS= operand, not in environment, when configuring
2018-05-01 07:50:48 -07:00
Glenn Morris
62032f699a Merge from origin/emacs-26
71be806 ; * etc/DEBUG: Minor clarification.
4403f89 Update the Emacs FAQ
40b3317 * etc/DEBUG: Minor copyedits.
850ff18 Clarify wording of NS drag n drop documentation
343d70b1 Improve kill-related documentation (bug#31209)
0b43224 * lisp/simple.el (region-extract-function): Don't hide the 'n...
d6e2c59 Fix pre- and post-command-hook errors in term.el
6cf83131e * doc/lispref/display.texi (Glyphless Chars): Fix grammar.
88d178c Fix macOS drag n drop event documentation
2018-05-01 07:50:48 -07:00
Lars Ingebrigtsen
b3b4697ff8 `url-domain' doc clarification
* lisp/url/url-util.el (url-domain): Add an example to the doc
string.
2018-05-01 14:29:11 +02:00
Lars Ingebrigtsen
e859acb11c Rewrite `url-domain' to avoid network traffic
* lisp/url/url-util.el (url-domain): Don't talk DNS to determine
the domain, because this is slow.

* test/lisp/url/url-util-tests.el (url-domain-tests): Add tests
for `url-domain'.
2018-05-01 14:26:38 +02:00
Glenn Morris
539f588920 ; Auto-commit of loaddefs files. 2018-05-01 07:28:50 -04:00
Paul Eggert
65ac27783a Port --enable-gcc-warnings to GCC 8
Backport from master.
* lib-src/emacsclient.c (fail):
Do not dereference a null pointer.
* src/frame.c (delete_frame):
Add a decl with UNINIT to work around GCC bug 85563.
* src/menu.h (finish_menu_items):
Do not use attribute const.
* src/regex.c (analyze_first): Use FALLTHROUGH, not a comment.
2018-04-30 17:17:54 -07:00
Paul Eggert
4b10800b59 Advise CFLAGS= operand, not in environment, when configuring
Backport from master.
2018-04-30 10:14:01 -07:00
Glenn Morris
41f707d03c * test/src/process-tests.el (make-process/mix-stderr): Skip on hydra. 2018-04-30 12:51:17 -04:00
Stefan Monnier
bca6c43480 * lisp/net/socks.el: Use lexical-binding and process properties
Remove unneeded requires.  Better following commenting conventions.
(socks-connections): Remove (use process properties instead).
(socks-wait-for-state-change): Make it a function.
(open-network-stream): Use an advice when overriding.
(socks-send-command): Avoid string-make-unibyte.
(socks--open-network-stream): New function (extracted from
socks-open-network-stream).
(socks-open-network-stream): Rewrite using it.
2018-04-29 22:25:09 -04:00
Paul Eggert
bf12cc6c78 Advise CFLAGS= operand, not in environment, when configuring 2018-04-29 09:28:11 -07:00
Eli Zaretskii
71be806d01 ; * etc/DEBUG: Minor clarification. 2018-04-29 19:27:55 +03:00
Noam Postavsky
a0aac5741e Replace epg--gv-nreverse with (cl-callf nreverse ...)
* lisp/epg.el (epg--gv-nreverse): Remove.
(epg-list-keys): Replace it with (cl-callf nreverse ...).
2018-04-28 20:37:42 -04:00
Paul Eggert
8c3215e7a4 Port --enable-gcc-warnings to GCC 8
* configure.ac: Do not use GCC 8’s new -Wcast-align flag.
* lib-src/ebrowse.c (xmalloc):
* lib-src/emacsclient.c (xmalloc, xstrdup):
* lib-src/etags.c (xmalloc):
* lib-src/make-docfile.c (xmalloc):
* lib-src/movemail.c (xmalloc):
* src/dispnew.c (new_glyph_pool):
* src/regex.c (xmalloc):
* src/term.c (tty_menu_create):
* src/tparam.h (tparam):
Use ATTRIBUTE_MALLOC.  Also see GCC bug 85562.
* lib-src/emacsclient.c (fail):
Do not dereference a null pointer.
* src/frame.c (delete_frame):
Add a decl with UNINIT to work around GCC bug 85563.
* src/menu.h (finish_menu_items):
Do not use attribute const.
* src/regex.c (analyze_first): Use FALLTHROUGH, not a comment.
2018-04-28 16:56:48 -07:00
Paul Eggert
2b9ab8c8fb Update from Gnulib
This incorporates:
2018-04-27 manywarnings: port to GCC 8.0
* build-aux/config.sub, m4/manywarnings.m4: Copy from Gnulib.
2018-04-28 16:56:48 -07:00
Juri Linkov
bcee160038 * lisp/vc/add-log.el (change-log-mode-syntax-table): New defvar
that redefines syntax of quotes to "expression quote or prefix operator".
(Bug#31231)
2018-04-28 23:38:56 +03:00
Juri Linkov
f4eeb0f5ae * lisp/subr.el (dotimes): Deprecate RESULT field. (Bug#16206)
* doc/lispref/control.texi (Iteration):
* doc/misc/cl.texi (Iteration): Document deprecation of its use.
* doc/lispintro/emacs-lisp-intro.texi (dotimes):
* test/src/emacs-module-tests.el (multiply-string):
* test/lisp/filenotify-tests.el (file-notify-test07-many-events):
Place RESULT field after the form.
2018-04-28 23:20:33 +03:00
Eli Zaretskii
4403f89056 Update the Emacs FAQ
* doc/misc/efaq.texi (Latest version of Emacs): Update versions.
(New in Emacs 26): New node.

* admin/release-process: Mention the FAQ update as part of the
release.
2018-04-28 15:03:17 +03:00
Eli Zaretskii
40b3317046 * etc/DEBUG: Minor copyedits. 2018-04-28 14:28:24 +03:00
Eli Zaretskii
0b3bc05d15 * src/fns.c (Fstring_distance): Minor code reformatting. 2018-04-28 10:41:27 +03:00
Eli Zaretskii
a7a3918a16 Fix documentation and tests for 'string-distance'
* src/fns.c (Fstring_distance): Doc fix.

* doc/lispref/strings.texi (Text Comparison): Document
'string-distance'.

* etc/NEWS: Fix wording and mark as documented in the manuals.

* test/src/fns-tests.el (test-string-distance): Move from
subr-tests.el and rename.
2018-04-28 10:27:53 +03:00
Chen Bin
c6e6503900 New function 'string-distance'
* src/fns.c (Fstring_distance): New primitive.
(syms_of_fns): Defsubr it.

* test/lisp/subr-tests.el (subr-tests--string-distance): New test.

* etc/NEWS: Mention 'string-distance'.
2018-04-28 09:56:14 +03:00
Michael Albinus
4bc74dac28 ; Copyedits in etc/NEWS 2018-04-27 15:01:17 +02:00
Michael Albinus
caa93364d4 Manual update for Tramp
* doc/misc/tramp.texi (Password handling): Explain, how passwords
are saved permanently.

* etc/NEWS: auth-source Secret Service backend supports :create.
Tramp saves validated passwords.
2018-04-27 14:43:01 +02:00
Noam Postavsky
217202c084 * lisp/epa.el (epa-decrypt-file): Apply epa-pinentry-mode (Bug#30363). 2018-04-27 07:27:59 -04:00
Alan Third
850ff18016 Clarify wording of NS drag n drop documentation
* doc/emacs/macos.texi (Mac / GNUstep Events): Clarify wording of
ns-drag-n-drop description.
2018-04-26 20:55:55 +01:00
Lars Ingebrigtsen
5a5e4eb76a Strip most headers when forwarding messages
* lisp/gnus/message.el (message-forward-included-headers): Change
the default to exclude most messages.
(message-remove-ignored-headers): Make
message-forward-included-headers actually work -- it's a list of
regexps, not a list of strings.
2018-04-26 19:47:48 +02:00
Paul Eggert
4ee0919abf * etc/NEWS: Fix minor quoting and spacing bugs. 2018-04-26 09:07:59 -07:00
Noam Postavsky
1d75604ead Add missing calendar-dlet* (Bug#31267)
* lisp/calendar/calendar.el (calendar-generate-month): Use
calendar-dlet* around evaluation of calendar-date-echo-text.
2018-04-26 07:37:48 -04:00
Ivan Shmakov
66dbb787a2 Ensure woman2-roff-buffer restores functions on error (Bug#30908)
* lisp/woman.el (woman2-roff-buffer): Put the fallback paragraph
processing inside the protected part of the unwind-protect form,
rather than the cleanup forms.  Attempting to format paragraphs again
after an error has been signaled is unlikely to be helpful.  The
fallback processing should be triggered only in case the loop
terminated normally, but did not reach the end of the buffer for some
reason.
2018-04-26 07:37:48 -04:00
Noam Postavsky
b8aa7ecf54 Fix cl-print for circular sublists (Bug#31146)
* lisp/emacs-lisp/cl-print.el (cl-print-object) <cons>: Push each
element of list being printed onto cl-print--currently-printing.
* test/lisp/emacs-lisp/cl-print-tests.el (cl-print-circle-2): New
test.
2018-04-26 07:37:48 -04:00
Paul Eggert
a92e7b4ef6 Don’t set print-escape-newlines in the minibuffer
This appears to be an unnecessary and possibly-confusing
revenant from ancient code (Bug#31251).  See thread containing:
https://lists.gnu.org/r/emacs-devel/2018-04/msg00654.html
* src/minibuf.c (read_minibuf): Do not set print-escape-newlines.
* src/print.c (syms_of_print): Do not defsym print-escape-newlines
or print-escape-control-characters, as these symbols are not used
in C code.
2018-04-25 12:25:58 -07:00
Glenn Morris
28930785d7 * lisp/foldout.el (outline-minor-mode): Remove pointless check. 2018-04-25 14:45:30 -04:00
Glenn Morris
8c50334ad7 speedbar: remove support for missing custom.el
* lisp/speedbar.el (speedbar-file-regexp)
(speedbar-ignored-directory-regexp): Remove support for no custom.el.
2018-04-25 14:43:18 -04:00
Glenn Morris
bb902bf6a5 * lisp/progmodes/sql.el (comint-line-beginning-position):
Remove pre-21 fallback definition.
2018-04-25 14:41:41 -04:00
Glenn Morris
6e65b1e8a9 * lisp/net/eudc.el (split-string): Remove pre-21 fallback definition. 2018-04-25 14:40:28 -04:00
Basil L. Contovounesios
532f5fb387 Do not call interprogram-paste-function repeatedly
* lisp/simple.el (current-kill): Disable interprogram-paste-function
so that kill-new doesn't call it repeatedly when
save-interprogram-paste-before-kill is enabled.  (bug#31209)
2018-04-25 07:37:32 -04:00
Glenn Morris
cab400aacd socks.el: remove pre-21 compatibility code
* lisp/net/socks.el (socks-split-string): Remove.
(socks-nslookup-host): Just use split-string.
2018-04-24 21:13:00 -04:00
Basil L. Contovounesios
343d70b10e Improve kill-related documentation (bug#31209)
* doc/lispref/text.texi (Low-Level Kill Ring): Fix typo under
current-kill.  Mention interprogram-paste-function under kill-new
and kill-append.
* lisp/simple.el (save-interprogram-paste-before-kill, kill-new)
(kill-append-merge-undo, kill-append): Touch-up docstrings.
2018-04-24 20:58:15 -04:00
Paul Eggert
1a6f595736 * src/minibuf.c (read_minibuf): Add a FIXME comment. 2018-04-24 15:50:17 -07:00
Stefan Monnier
0b432248d8 * lisp/simple.el (region-extract-function): Don't hide the 'nil' case. 2018-04-24 14:06:20 -04:00
Glenn Morris
449751a02f ; * etc/NEWS: Fix typo. 2018-04-24 13:32:49 -04:00
Lars Ingebrigtsen
c7290da0a1 (add-to-invisibility-spec): Further doc tweak
* lisp/subr.el (add-to-invisibility-spec): Tweak doc fix from
previous patch.
2018-04-24 17:23:53 +02:00
Lars Ingebrigtsen
400153f085 Doc fix for `*-*-invisibility-spec'
* lisp/subr.el (add-to-invisibility-spec)
(remove-from-invisibility-spec): Make the doc string say what
happens if `buffer-invisibility-spec' is an atom (bug#30171).
2018-04-24 17:20:15 +02:00
Lars Ingebrigtsen
a29677a031 libxml-parse-*-region calling convention fix
* lisp/subr.el (libxml-parse-xml-region)
(libxml-parse-html-region): Adjust the calling convention to note
that the final parameter is optional.
2018-04-24 16:46:42 +02:00