1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-03 20:24:29 +00:00

133228 Commits

Author SHA1 Message Date
Eli Zaretskii
bbe2cadc54 Fix encoding of characters when using GB18030 fonts
* lisp/international/fontset.el (font-encoding-alist): Fix the
GB18030 entry to encode characters correctly when passing them to
the xfont back-end.  (Bug#31315)  See also
http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg00754.html.
2018-05-05 11:45:37 +03:00
Eli Zaretskii
91a68b5f61 ; * msdos/INSTALL: Add info about GCC versions. 2018-05-04 18:12:32 +03:00
Eli Zaretskii
7ddcc9ab1a Document 'custom-group'
* doc/lispref/customize.texi (Group Definitions): Document the
'custom-group' property.
2018-05-04 18:00:02 +03:00
Eli Zaretskii
58f9e15a49 A minor addition to etc/DEBUG
* etc/DEBUG: Add a note for macOS users who get error messages
when trying to run GDB.
2018-05-04 17:43:29 +03:00
Daniel Pittman
4590414265 Avoid errors in ispell.el when Enchant returns empty extra chars
* lisp/textmodes/ispell.el (ispell--get-extra-word-characters):
Handle the case of empty extra characters returned by the
Enchant '-lsmod' command. (Bug#31344)

Copyright-paperwork-exempt: yes
2018-05-04 17:37:10 +03:00
Eli Zaretskii
d0d75f9b4e Make 'ispell-initialize-spellchecker-hook' work again
* lisp/textmodes/ispell.el (ispell-base-dicts-override-alist):
Defvar it to allow dynamic binding.  (Bug#31341)
2018-05-04 17:25:33 +03:00
Noam Postavsky
7b1026cbf4 * make-dist: Don't fail if building --without-makeinfo. 2018-05-04 07:43:51 -04:00
Noam Postavsky
b90ce66d32 Handle selected_window change in prepare_menu_bars (Bug#31312)
* src/xdisp.c (redisplay_internal): Check selected_window after
calling prepare_menu_bars, since it can call lisp hooks.
2018-05-03 20:58:06 -04:00
Phillip Lord
cbb9c78de0 Fix windows snapshot building
* admin/nt/dist-build/build-zips.sh: Fix broken if statement
2018-05-03 22:14:13 +01:00
Phillip Lord
a2003f9663 * admin/nt/dist-build/build-zips.sh: Support building of branches 2018-05-03 21:15:12 +01:00
Eli Zaretskii
79ad0b3b2d ; * INSTALL: Fix Emacs version number. (Bug#31358) 2018-05-03 21:19:07 +03:00
Paul Eggert
ef1deb48f4 More porting to GCC 8 of --enable-gcc-warnings
* lwlib/lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu):
* lwlib/lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance):
* lwlib/lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]:
No longer const.
* src/emacs-module.c: Ignore -Wcast-function-type.
2018-05-03 11:17:32 -07:00
Eli Zaretskii
91de88bfeb Fix report-emacs-bug via mailclient on MS-Windows
* lisp/net/browse-url.el (browse-url-default-windows-browser):
On MS-Windows, call url-unhex-string only for file:// URLs.
(Bug#31351)
2018-05-03 21:04:17 +03:00
Marco Wahl
8a6521260d Fix next-page for dired (Bug#31061)
* lisp/textmodes/page-ext.el (next-page): Don't go back any pages if
COUNT is 0.  For negative COUNT, end with point just after the last
delimiter.

Co-authored-by: Noam Postavsky <npostavs@gmail.com>
2018-05-02 20:35:20 -04:00
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
Paul Eggert
f4b5ff20a6 Port collation tests to glibc 2.27
* test/src/fns-tests.el (fns-tests-collate-strings)
(fns-tests-collate-sort): Don’t make unportable assumptions
about how en_US.UTF-8 collation works.  These assumptions
are not true on Fedora 28, which ships with glibc 2.27.
2018-05-02 11:46:03 -07: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