Noam Postavsky [Thu, 25 Jan 2018 05:37:50 +0000 (00:37 -0500)]
Test and fix "/:" quoted file name handlers (Bug#30243)
Some w32 specific problems were discovered, but only worked around, as
these are not serious, and not the focus of this bug fix:
- The w32 implementation of `insert-directory doesn't handle a nil
SWITCHES argument.
- `dired-compress-file' does not operate correctly if the unquoted
filename contains a ":" (e.g., C:/foo/bar).
* lisp/files.el (file-name-non-special): Strip the "/:" from
`default-directory' for `temporary-file-directory' operation; both
arguments to `file-name-completion', `file-name-all-completion', and
`file-equal-p' operations; `buffer-file-name' for
`make-auto-save-file-name' and 'set-visited-file-modtime' operations.
Don't touch any operands of `file-notify-rm-watch' and
`file-notify-valid-p' as they receive descriptors; not file
names (this is not sufficient to fix these operations for "/:" quoted
file names though, these are fixed in a later commit).
* test/lisp/files-tests.el (files-tests--with-temp-file): Give it a
`debug' property.
(files-tests--with-temp-non-special): New helper macro.
(files-tests--file-name-non-special--subprocess): Simplify.
(files-tests-file-name-non-special-quote-unquote)
(files-file-name-non-special-notify-handlers)
(files-file-name-non-special-handlers)
(files-tests-file-name-non-special-access-file)
(files-tests-file-name-non-special-add-name-to-file)
(files-tests-file-name-non-special-byte-compiler-base-file-name)
(files-tests-file-name-non-special-copy-directory)
(files-tests-file-name-non-special-copy-file)
(files-tests-file-name-non-special-delete-directory)
(files-tests-file-name-non-special-delete-file)
(files-tests-file-name-non-special-diff-latest-backup-file)
(files-tests-file-name-non-special-directory-file-name)
(files-tests-file-name-non-special-directory-files)
(files-tests-file-name-non-special-directory-files-and-attributes)
(files-tests-file-name-non-special-dired-uncache)
(files-tests-file-name-non-special-dired-compress-handler)
(files-tests-file-name-non-special-expand-file-name)
(files-tests-file-name-non-special-file-accessible-directory-p)
(files-tests-file-name-non-special-file-acl)
(files-tests-file-name-non-special-file-attributes)
(files-tests-file-name-non-special-file-directory-p)
(files-tests-file-name-non-special-file-equal-p)
(files-tests-file-name-non-special-file-executable-p)
(files-tests-file-name-non-special-file-exists-p)
(files-tests-file-name-non-special-file-in-directory-p)
(files-tests-file-name-non-special-file-local-copy)
(files-tests-file-name-non-special-file-modes)
(files-tests-file-name-non-special-file-name-all-completions)
(files-tests-file-name-non-special-file-name-as-directory)
(files-tests-file-name-non-special-file-name-case-insensitive-p)
(files-tests-file-name-non-special-file-name-completion)
(files-tests-file-name-non-special-file-name-directory)
(files-tests-file-name-non-special-file-name-nondirectory)
(files-tests-file-name-non-special-file-name-sans-versions)
(files-tests-file-name-non-special-file-newer-than-file-p)
(files-tests-file-name-non-special-file-ownership-preserved-p)
(files-tests-file-name-non-special-file-readable-p)
(files-tests-file-name-non-special-file-regular-p)
(files-tests-file-name-non-special-file-remote-p)
(files-tests-file-name-non-special-file-selinux-context)
(files-tests-file-name-non-special-file-symlink-p)
(files-tests-file-name-non-special-file-truename)
(files-tests-file-name-non-special-file-writable-p)
(files-tests-file-name-non-special-find-backup-file-name)
(files-tests-file-name-non-special-get-file-buffer)
(files-tests-file-name-non-special-insert-directory)
(files-tests-file-name-non-special-insert-file-contents)
(files-tests-file-name-non-special-load)
(files-tests-file-name-non-special-make-auto-save-file-name)
(files-tests-file-name-non-special-make-directory)
(files-tests-file-name-non-special-make-directory-internal)
(files-tests-file-name-non-special-make-nearby-temp-file)
(files-tests-file-name-non-special-make-symbolic-link)
(files-tests-file-name-non-special-rename-file)
(files-tests-file-name-non-special-set-file-acl)
(files-tests-file-name-non-special-set-file-modes)
(files-tests-file-name-non-special-set-file-selinux-context)
(files-tests-file-name-non-special-set-file-times)
(files-tests-file-name-non-special-set-visited-file-modtime)
(files-tests-file-name-non-special-shell-command)
(files-tests-file-name-non-special-start-file-process)
(files-tests-file-name-non-special-substitute-in-file-name)
(files-tests-file-name-non-special-temporary-file-directory)
(files-tests-file-name-non-special-unhandled-file-name-directory)
(files-tests-file-name-non-special-vc-registered)
(files-tests-file-name-non-special-write-region): New tests.
Paul Eggert [Thu, 1 Feb 2018 17:20:13 +0000 (09:20 -0800)]
Update from gnulib
This includes:
2018-01-31 environ: Fix link error on 64-bit Cygwin
2018-01-27 Fix malfunction of socket functions on HP-UX in 64-bit mode
2018-01-26 manywarnings: fix maintainer comment
2018-01-23 Merge strftime.c changes from glibc
* build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex:
* lib/gnulib.mk.in, lib/nstrftime.c, lib/unistd.in.h, m4/extensions.m4:
* m4/manywarnings.m4: Update.
Paul Eggert [Thu, 1 Feb 2018 17:10:55 +0000 (09:10 -0800)]
* src/xfns.c: Make some non-exported vars static.
Michael Albinus [Thu, 1 Feb 2018 14:50:10 +0000 (15:50 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Thu, 1 Feb 2018 14:49:18 +0000 (15:49 +0100)]
Adapt tramp-tests.el according to Bug#30243
* test/lisp/net/tramp-tests.el (tramp--test-emacs27-p): New defun.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test21-file-links, tramp-test24-file-acl)
(tramp-test25-file-selinux, tramp--test-check-files): Use it.
Glenn Morris [Thu, 1 Feb 2018 12:27:10 +0000 (07:27 -0500)]
; Auto-commit of loaddefs files.
Michael Albinus [Thu, 1 Feb 2018 07:53:08 +0000 (08:53 +0100)]
* lisp/files.el (get-free-disk-space): Wrap body with `save-match-data'.
Several `*-insert-directory' functions could fail otherwise.
Michael Albinus [Thu, 1 Feb 2018 07:40:46 +0000 (08:40 +0100)]
* lisp/net/tramp-archive.el (tramp-archive-run-real-handler): New defun.
(tramp-archive-file-name-handler): Use it.
Glenn Morris [Wed, 31 Jan 2018 21:15:01 +0000 (16:15 -0500)]
automerge: adjust meaning of -d option
* admin/automerge (nocd): New variable, replacing $dir.
(usage, -d): Option -d no longer takes an argument.
Glenn Morris [Wed, 31 Jan 2018 20:05:14 +0000 (15:05 -0500)]
automerge: add option to work in specific directory
* admin/automerge (usage): Mention -d.
(dir): New variable.
(-d): New option.
(main): If requested, cd to specified directory.
Glenn Morris [Wed, 31 Jan 2018 17:54:26 +0000 (12:54 -0500)]
automerge: add option to start with a reset
* admin/automerge (usage): Mention -r.
(reset): New variable.
(-r): New option.
(main): If requested, do a reset and pull.
Glenn Morris [Wed, 31 Jan 2018 15:50:23 +0000 (07:50 -0800)]
Merge from origin/emacs-26
22922c7 (origin/emacs-26) * doc/emacs/entering.texi (Entering Emacs):...
59657c4 Document 'window-at-side-p' in the Elisp manual
2b35ed0 Document external-debugging-output in the Elisp Manual (Bug#2...
db6564c Fix scroll-margin docstring (Bug#13791)
732d1b9 Clarify that `ansi-term' is almost the same as `term' (Bug#18...
f706c59 Update manual description of locate-file (Bug#23650)
1602262 Clarify effect of print-gensym (Bug#27776)
53e9fa2 * lisp/custom.el (defcustom): Fix docstring (Bug#27891).
607cc4e Define cl-type-definition button type as needed (Bug#28899)
9e6889c Emphasize that GPG passphrase caching is temporary (Bug#29907)
4b5711b Fix @examples in cc-mode.info, where lines were getting glued...
71961f1 Minor change in "Mode Line" section of Emacs manual
55a2b76 More fixes in the Emacs manual
Eli Zaretskii [Wed, 31 Jan 2018 14:52:12 +0000 (16:52 +0200)]
* doc/emacs/entering.texi (Entering Emacs): Fix last change.
Michael Albinus [Wed, 31 Jan 2018 14:02:46 +0000 (15:02 +0100)]
Fix Bug#30293
* lisp/net/tramp-archive.el (tramp-archive-file-name-for-operation):
New defsubst.
(tramp-archive-file-name-archive, tramp-archive-file-name-localname):
New defuns.
(tramp-archive-file-name-handler, tramp-archive-dissect-file-name)
(tramp-archive-handle-not-implemented): Use them. (Bug#30293)
* test/lisp/net/tramp-archive-tests.el (tramp-archive-test-directory):
New defconst.
(tramp-archive-test01-file-name-syntax): Extend test.
(tramp-archive-test05-expand-file-name-non-archive-directory):
New test. (Bug#30293)
* test/lisp/net/tramp-archive-resources/foo.iso/foo: New file.
Martin Rudalics [Wed, 31 Jan 2018 08:35:15 +0000 (09:35 +0100)]
Document 'window-at-side-p' in the Elisp manual
* doc/lispref/windows.texi (Windows and Frames): Document
'window-at-side-p'.
Noam Postavsky [Sun, 28 Jan 2018 23:16:48 +0000 (18:16 -0500)]
Document external-debugging-output in the Elisp Manual (Bug#24051)
* doc/lispref/streams.texi (Output Streams): List
external-debugging-output.
* src/print.c (Fexternal_debugging_output): Quote `print' in
docstring.
Noam Postavsky [Mon, 29 Jan 2018 23:49:46 +0000 (18:49 -0500)]
Fix scroll-margin docstring (Bug#13791)
* src/xdisp.c (syms_of_xdisp) <scroll-margin>: Explain that entering
the margin may trigger any sort of auto scrolling, not recentering
specifically.
Noam Postavsky [Mon, 29 Jan 2018 01:17:43 +0000 (20:17 -0500)]
Clarify that `ansi-term' is almost the same as `term' (Bug#18106)
* lisp/term.el (ansi-term): Clarify that it's almost the same as `term'.
Noam Postavsky [Sun, 28 Jan 2018 22:51:35 +0000 (17:51 -0500)]
Update manual description of locate-file (Bug#23650)
* doc/lispref/files.texi (Locating Files): Add example of predicate
when searching for a directory.
Noam Postavsky [Sun, 28 Jan 2018 21:57:11 +0000 (16:57 -0500)]
Clarify effect of print-gensym (Bug#27776)
* src/print.c (syms_of_print) <print-gensym>: Clarify that use of #N#
and #N= constructs depends on the value of `print-circle'.
Noam Postavsky [Sun, 28 Jan 2018 21:53:50 +0000 (16:53 -0500)]
* lisp/custom.el (defcustom): Fix docstring (Bug#27891).
Noam Postavsky [Sun, 28 Jan 2018 18:59:06 +0000 (13:59 -0500)]
Define cl-type-definition button type as needed (Bug#28899)
* lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor): Require
`cl-extra' before using the `cl-type-definition' button type.
Noam Postavsky [Sun, 28 Jan 2018 17:34:51 +0000 (12:34 -0500)]
Emphasize that GPG passphrase caching is temporary (Bug#29907)
* doc/misc/epa.texi (Caching Passphrases): Clarify that caching is
temporary.
(GnuPG version compatibility): Fix typo.
Glenn Morris [Wed, 31 Jan 2018 02:43:28 +0000 (21:43 -0500)]
automerge: handle upstream changes during operation
* admin/automerge (merge): New function, split from pre-existing code.
(main): If upstream changed during building and testing,
reset local and try merging again.
Stefan Monnier [Tue, 30 Jan 2018 22:37:20 +0000 (17:37 -0500)]
* test/lisp/mouse-tests.el: Fix tests broken by mouse.el change
* test/lisp/mouse-tests.el (bug23288-use-return-value)
(bug23288-translate-to-mouse-2): Don't rely as much on details of the
implementation, so it also works with the new code.
Michael Albinus [Tue, 30 Jan 2018 19:09:20 +0000 (20:09 +0100)]
Simplify last change in tramp-archive
Alan Mackenzie [Tue, 30 Jan 2018 18:09:49 +0000 (18:09 +0000)]
Fix @examples in cc-mode.info, where lines were getting glued together.
This happened because of false @c's in macro lines.
* /doc/misc/cc-mode.texi (Line-up Functions): Remove the unneeded @c from
macros sssTBasicOffset, sssTsssTBasicOffset, and hereFn.
Stefan Monnier [Tue, 30 Jan 2018 17:41:29 +0000 (12:41 -0500)]
* lisp/mouse.el: Rework the mouse-1-click remapping
Avoid peeking ahead at the next event because this had undesirable effects,
such as making 'this-single-command-raw-keys' return bogus information.
(mouse--last-down): New variable.
(mouse--down-1-maybe-follows-link): Don't do the remapping here.
Instead, just keep track of the time when the down happened.
(mouse--down-1-maybe-follows-link): Do the remapping here.
(key-translation-map): Add bindings for (double-)mouse-1.
Stefan Monnier [Tue, 30 Jan 2018 16:57:40 +0000 (11:57 -0500)]
* lisp/help.el: Rework describe-key's handling of up and double clicks
Use lexical-binding.
(help--binding-undefined-p): New function, extracted from help--analyze-key.
(help--analyze-key): Use it.
(help--filter-info-list): New function.
(describe-key-briefly): Change calling convention.
Handle a list of key sequences now.
(help--binding-locus): Remove unused var 'found'.
(help--read-key-sequence): Rename from help-read-key-sequence.
Almost complete rewrite, with a different return value.
(help-downify-mouse-event-type): Remove.
(describe-key): Change calling convention.
Handle a list of key sequences now.
Michael Albinus [Tue, 30 Jan 2018 16:34:02 +0000 (17:34 +0100)]
Fix Bug#30262
* lisp/net/tramp-archive.el (tramp-archive-hash): Document (changed)
layout.
(tramp-archive-dissect-file-name): Merge with
`tramp-archive-local-copy', which has been removed by this.
(tramp-archive-cleanup-hash): Adapt to changed
`tramp-archive-hash'. (Bug#30262)
* lisp/net/tramp-gvfs.el (tramp-gvfs-unmount): Flush
connection properties.
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test01-file-name-syntax)
(tramp-archive-test02-file-name-dissect)
(tramp-archive-test16-directory-files)
(tramp-archive-test26-file-name-completion): Adapt to changed
test file.
(tramp-archive-test08-file-local-copy): Be more robust in cleanup.
* test/lisp/net/tramp-archive-resources/foo.tar.gz: Adapt to
extended test.
Eli Zaretskii [Tue, 30 Jan 2018 16:24:08 +0000 (18:24 +0200)]
Minor change in "Mode Line" section of Emacs manual
* doc/emacs/screen.texi (Mode Line): Mention tooltips shown when
hovering the mouse over the mode line. Suggested by Eduardo
Mercovich <eduardo@mercovich.net> in emacs-manual-bugs@gnu.org.
Eli Zaretskii [Tue, 30 Jan 2018 16:09:28 +0000 (18:09 +0200)]
More fixes in the Emacs manual
* doc/emacs/screen.texi (Mode Line): Fix markup and
cross-references.
(Menu Bar): Correct inaccurate description.
* doc/emacs/macos.texi (Mac OS / GNUstep, Mac / GNUstep Events):
* doc/emacs/frames.texi (Scroll Bars):
* doc/emacs/emacs.texi (Top):
* doc/emacs/ack.texi (Acknowledgments): Fix spelling of "macOS".
* doc/emacs/misc.texi (Invoking emacsclient)
(emacsclient Options): Fix markup of 'emacsclient'. Suggested by
Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.
Glenn Morris [Tue, 30 Jan 2018 15:50:25 +0000 (07:50 -0800)]
Merge from origin/emacs-26
bc8dc37 (origin/emacs-26) Minor copyedits in "Distribution" chapter o...
1c7a936 Minor copyedits in "Entering" chapter of Emacs manual.
1d4498b Minor wording change in the Emacs manual
2bf49e7 Fix a typo in the Emacs manual
f3546a2 Improve the "Basic" chapter of the Emacs manual
691431e Resurrect lost text in lispref
956807b * lisp/emacs-lisp/rx.el (rx): Fix the definition of 'blank'.
7d90d2e Proofread os.texi and files.texi
490c736 Minor improvements in the "International" chapter of Emacs ma...
79252d3 Minor improvement in "Text" chapter of Emacs manual
Eli Zaretskii [Tue, 30 Jan 2018 15:30:26 +0000 (17:30 +0200)]
Minor copyedits in "Distribution" chapter of the Emacs manual
* doc/emacs/emacs.texi (Distrib): Minor wording changes.
Suggested by oldgaro <oldgaro@protonmail.com> in
emacs-manual-bugs@gnu.org.
Eli Zaretskii [Tue, 30 Jan 2018 15:20:14 +0000 (17:20 +0200)]
Minor copyedits in "Entering" chapter of Emacs manual.
* doc/emacs/entering.texi (Entering Emacs): Add a cross-reference
to MS-Windows startup procedures. Clarify wording. Suggested by
Francis Wright <f.j.wright@live.co.uk> in emacs-manual-bugs@gnu.org.
Eli Zaretskii [Tue, 30 Jan 2018 15:04:12 +0000 (17:04 +0200)]
Minor wording change in the Emacs manual
* doc/emacs/screen.texi (Screen): Minor wording change. Suggested
by Wesley Ellis <ellisgen@gmail.com> in emacs-manual-bugs@gnu.org.
Stefan Monnier [Tue, 30 Jan 2018 14:55:09 +0000 (09:55 -0500)]
* lisp/subr.el (atomic-change-group): Fix return value
Suggested by Jarosław Rzeszótko <jrzeszotko@gmail.com>.
Eli Zaretskii [Tue, 30 Jan 2018 14:53:25 +0000 (16:53 +0200)]
Fix a typo in the Emacs manual
* doc/emacs/custom.texi (Customization Groups): Fix a typo.
Reported by Jonathan Kyle Mitchell <kyle@jonathanmitchell.org> in
emacs-manual-bugs@gnu.org.
Eli Zaretskii [Tue, 30 Jan 2018 14:31:27 +0000 (16:31 +0200)]
Improve the "Basic" chapter of the Emacs manual
* doc/emacs/basic.texi (Inserting Text): De-confuse text.
(Position Info): Add a cross-reference to where
display-line-numbers-mode is described. Reported by Joshua
Branson <jbranso@fastmail.com> in emacs-manual-bugs@gnu.org.
Eli Zaretskii [Tue, 30 Jan 2018 13:13:18 +0000 (15:13 +0200)]
Resurrect lost text in lispref
* doc/lispref/files.texi (File Attributes): Resurrect
inadvertently lost text.
Glenn Morris [Tue, 30 Jan 2018 07:01:11 +0000 (23:01 -0800)]
Recognize more system descriptions in report-emacs-bug
* lisp/mail/emacsbug.el (report-emacs-bug--os-description):
New function, split from report-emacs-bug. Also parse the
standard /etc files that can contain release information.
(report-emacs-bug): Call report-emacs-bug--os-description.
Philipp Stephani [Mon, 29 Jan 2018 23:05:58 +0000 (00:05 +0100)]
* lisp/emacs-lisp/rx.el (rx): Fix the definition of 'blank'.
Paul Eggert [Mon, 29 Jan 2018 18:35:53 +0000 (10:35 -0800)]
Proofread os.texi and files.texi
Eli Zaretskii [Mon, 29 Jan 2018 17:47:50 +0000 (19:47 +0200)]
Minor improvements in the "International" chapter of Emacs manual
* doc/emacs/mule.texi (File Name Coding): Stop enumerating all the
versions of MS-Windows.
(Modifying Fontsets, Unibyte Mode, Bidirectional Editing): Improve
wording. Reported by Francis Wright <f.j.wright@live.co.uk> in
emacs-manual-bugs@gnu.org.
Paul Eggert [Mon, 29 Jan 2018 17:42:42 +0000 (09:42 -0800)]
Simplify Fcall_interactively
* src/callint.c (Fcall_interactively): Use C99 constructs to
simplify the code a bit. Stop worrying about circa-1990
compiler bugs.
Eli Zaretskii [Mon, 29 Jan 2018 16:39:04 +0000 (18:39 +0200)]
Minor improvement in "Text" chapter of Emacs manual
* doc/emacs/text.texi (Words): Improve wording. Reported by
Marcin Borkowski <mbork@mbork.pl> in
http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00784.html.
Glenn Morris [Mon, 29 Jan 2018 15:50:21 +0000 (07:50 -0800)]
Merge from origin/emacs-26
8d45000 (origin/emacs-26) Fix some issues in the emacs/lispref manuals
194ded5 Fix multiple spaces in Emacs manual
57a5461 * lisp/files.el (save-some-buffers): Doc fix. (Bug#30215)
231474f Adjudicate comments to "International" chapter of Emacs manual
Glenn Morris [Mon, 29 Jan 2018 15:50:21 +0000 (07:50 -0800)]
; Merge from origin/emacs-26
The following commit was skipped:
0510a78 Revert "Signal error for symbol names with strange quotes (Bu...
Glenn Morris [Mon, 29 Jan 2018 15:50:21 +0000 (07:50 -0800)]
Merge from origin/emacs-26
6415b2d Allow read-passwd to hide characters inserted by C-y. (Secur...
8cb4ffb * etc/PROBLEMS: Document issues with double-buffering. (Bug#...
fd10070 * lisp/window.el (window-largest-empty-rectangle): Fix grammar.
e1a4403 Minor changes in the Emacs manual
372fda6 Improve the "Files" chapter of the Emacs manual
9afc86d Improve the "Search" chapter of the Emacs manual
22f98b3 * src/indent.c (Findent_to): Doc fix. (Bug#30260)
085ee43 Improve documentation of 'edebug-defun'
4dd1b33 Mention crashes due to Noto Serif Kannada fonts
tino calancha [Mon, 29 Jan 2018 13:31:50 +0000 (22:31 +0900)]
* test/lisp/simple-tests.el (simple-tests-async-shell-command-30280): Add test
Glenn Morris [Mon, 29 Jan 2018 02:10:50 +0000 (18:10 -0800)]
* configure.ac: Improve recent libtof version test.
Glenn Morris [Mon, 29 Jan 2018 02:07:03 +0000 (18:07 -0800)]
; * test/lisp/emacs-lisp/cl-preloaded-tests.el: Fix copyright notice.
Juri Linkov [Sun, 28 Jan 2018 21:59:02 +0000 (23:59 +0200)]
* lisp/simple.el: Move definitions shell-command-saved-pos
and shell-command-dont-erase-buffer closer to their usage.
Juri Linkov [Sun, 28 Jan 2018 21:48:11 +0000 (23:48 +0200)]
* lisp/simple.el (upcase-dwim, downcase-dwim): Add region-noncontiguous-p
to the calls of region functions to support rectangular regions.
Juri Linkov [Sun, 28 Jan 2018 21:27:32 +0000 (23:27 +0200)]
* lisp/tar-mode.el (tar-summarize-buffer): Let-bind `create-lockfiles' to nil
instead of `buffer-file-truename'. (Bug#30215)
* lisp/image-mode.el (image-toggle-display-image): Idem.
Philipp Stephani [Sun, 28 Jan 2018 19:39:58 +0000 (20:39 +0100)]
Add missing module types to cl--typeof-types.
* lisp/emacs-lisp/cl-preloaded.el (cl--typeof-types): Add module
types.
* test/src/emacs-module-tests.el (emacs-module-tests--generic): New
helper function.
(module-function-object, mod-test-userptr-fun-test): Test that type
dispatching works with module types.
Philipp Stephani [Sun, 28 Jan 2018 19:20:07 +0000 (20:20 +0100)]
Test that module functions are functions.
* test/src/emacs-module-tests.el (module-function-object): Verify that
a module function is treated as a function.
Martin Rudalics [Sun, 28 Jan 2018 18:27:39 +0000 (19:27 +0100)]
Fix some issues in the emacs/lispref manuals
* doc/emacs/basic.texi (Continuation Lines):
* doc/emacs/building.texi (GDB User Interface Layout):
* doc/emacs/dired.texi (Misc Dired Features):
* doc/emacs/maintaining.texi (Identifier Search):
* doc/emacs/mark.texi (Using Region):
* doc/emacs/misc.texi (Document View, DocView Conversion):
* doc/emacs/modes.texi (Major Modes):
* doc/emacs/mule.texi (Input Methods, Unibyte Mode):
* doc/emacs/sending.texi (Mail Methods): Replace @code by
@kbd.
* doc/emacs/frames.texi (Text-Only Mouse):
* doc/lispref/maps.texi (Standard Keymaps): Replace @kbd by
@key.
* doc/lispref/compile.texi (Compiler Errors): Write
non-@code{nil} instead of non-nil.
* doc/lispref/debugging.texi (Internals of Debugger):
'backtrace' is not a command. 'debugger-stack-frame-as-list'
is an option.
* doc/lispref/display.texi (Size of Displayed Text):
'window-lines-pixel-dimensions' has a last argument 'left'.
* doc/lispref/display.texi (Attribute Functions):
'set-face-underline' and 'set-face-inverse-video' are
commands.
(Tooltips): 'tooltip-frame-parameters' is an option.
(Bidirectional Display): 'bidi-paragraph-direction' is an
option.
* doc/lispref/frames.texi (Cursor Parameters): 'cursor-type'
is an option.
(Input Focus): Argument FRAME of 'x-focus-frame' is not
optional.
(Child Frames): Both arguments of 'frame-ancestor-p' are
non-optional. 'iconify-child-frame' is an option.
* doc/lispref/os.texi (Killing Emacs):
'kill-emacs-query-functions' is an option.
* doc/lispref/windows.texi (Mouse Window Auto-selection):
'mouse-autoselect-window' is an option.
Philipp Stephani [Sun, 28 Jan 2018 18:25:48 +0000 (19:25 +0100)]
* src/lisp.h: Tell developers to add new types to cl--typeof-types.
Philipp Stephani [Thu, 21 Dec 2017 17:25:49 +0000 (18:25 +0100)]
Prevent name clashes between CL structures and builtin types
* lisp/emacs-lisp/cl-preloaded.el (cl-struct-define): Don't allow
structures with the same names as builtin types.
(cl--typeof-types, cl--all-builtin-types): Move from cl-generic.el and
rename.
(cl--struct-name-p): New helper function.
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Don't allow structures
with the same names as builtin types.
* lisp/emacs-lisp/cl-generic.el (cl--generic-typeof-generalizer)
(cl-generic-generalizers): Adapt to name change.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-defstruct/builtin-type):
* test/lisp/emacs-lisp/cl-preloaded-tests.el
(cl-struct-define/builtin-type): New unit tests.
* etc/NEWS: Document changed behavior.
Alan Mackenzie [Sun, 28 Jan 2018 17:53:07 +0000 (17:53 +0000)]
Fix some errors in c-display-defun-name when the type is "struct {..}", etc.
Also fix some errors with c-display-defun-name when there are nested classes.
* lisp/progmodes/cc-cmds.el (c-in-function-trailer-p): Deal with a struct {..}
being merely the type of a function.
(c-where-wrt-brace-construct): Deal with a struct {..} being merely the type
of a function. Rearrange the order of some Lisp forms. Insert a check for
c-protection-key ("private", etc.) alongside the checking for a label.
(c-defun-name-1): New function extracted form c-defun-name, which works within
the existing restriction. Don't regard 'at-function-end as being within the
defun any more. Recognize "struct", etc., with the new
c-defun-type-name-decl-key rather than c-type-prefix-key. Make the
recognition of a normal function more accurate.
(c-defun-name): Part left after extracting the above function. It now just
widens and calls c-defun-name-1.
(c-declaration-limits-1): New function extracted from c-declaration-limits,
which works within the existing restriction. Move LIM back one block to
account for the possibility of struct {..} as a function type. Check we're
not inside a declaration without braces.
(c-declaration-limits): Part left after extracting the above function. It now
just narrows to an enclosing decl block and calls c-declaration-limits-1.
(c-defun-name-and-limits): New function which identifies the name and limits
of the most nested enclosing declaration or macro.
(c-display-defun-name): Use c-defun-name-and-limits rather than two separate
functions (which didn't always agree on which function).
* lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): If we have struct
{..} as the type of a function, go back over this, too.
* lisp/progmodes/cc-langs.el (c-defun-type-name-decl-kwds)
(c-defun-type-name-decl-key): New lang const/var.
Eli Zaretskii [Sun, 28 Jan 2018 17:29:07 +0000 (19:29 +0200)]
Fix multiple spaces in Emacs manual
* doc/emacs/search.texi (Lax Search): Fix multiple consecutive
spaces in printed manual.
Eli Zaretskii [Sun, 28 Jan 2018 17:22:17 +0000 (19:22 +0200)]
* lisp/files.el (save-some-buffers): Doc fix. (Bug#30215)
Eli Zaretskii [Sun, 28 Jan 2018 17:14:14 +0000 (19:14 +0200)]
Adjudicate comments to "International" chapter of Emacs manual
* doc/emacs/mule.texi (International Chars)
(Language Environments, Input Methods, Defining Fontsets)
(Modifying Fontsets): Minor wording changes and typo fixes.
Reported by Francis Wright <f.j.wright@live.co.uk> in
emacs-manual-bugs@gnu.org.
Noam Postavsky [Sun, 28 Jan 2018 15:23:18 +0000 (10:23 -0500)]
Revert "Signal error for symbol names with strange quotes (Bug#2967)"
That commit did not make the corresponding change to printing, thus
breaking the (eq (read (prin1-to-string SYM)) SYM) invariant for those
symbols. It's too late in the release cycle to change printing
behavior, therefore revert the reader change.
Don't merge to master, the print function will be updated there (see
"Fix round tripping of read->print for symbols with strange quotes").
Noam Postavsky [Tue, 23 Jan 2018 23:50:23 +0000 (18:50 -0500)]
Fix round tripping of read->print for symbols with strange quotes
Since 2017-07-22 "Signal error for symbol names with strange
quotes (Bug#2967)", symbol names beginning with certain quote
characters require an escaping backslash. However, the corresponding
change for printing missed, so that (eq (read (prin1-to-string SYM))
SYM) does not give `t' for such symbols.
* src/character.c (confusable_symbol_character_p): New function,
extracted from test `read1'.
* src/lread.c (read1): Use it.
* src/print.c (print_object): Use it to print a backslash for symbols
starting with characters that `read1' requires to be escaped.
* test/src/print-tests.el (print-read-roundtrip): New test.
* etc/NEWS.26:
* etc/NEWS: Clarify the announcement for the earlier reader
change (Bug#30217).
Simen Heggestøyl [Sun, 28 Jan 2018 14:35:46 +0000 (15:35 +0100)]
Shorten CSS hex colors when possible
* lisp/textmodes/css-mode.el (css--format-hex): New function for
shortening CSS hex colors when possible.
(css--named-color-to-hex, css--rgb-to-named-color-or-hex): Use it.
* test/lisp/textmodes/css-mode-tests.el (css-test-format-hex): New
tests for 'css--format-hex'.
(css-test-named-color-to-hex, css-test-cycle-color-format): Adjust for
the changes to 'css--named-color-to-hex' and
'css--rgb-to-named-color-or-hex'.
Simen Heggestøyl [Sun, 28 Jan 2018 12:03:05 +0000 (13:03 +0100)]
Fix off-by-one error in 'css--hex-to-rgb'
* lisp/textmodes/css-mode.el (css--hex-to-rgb): Fix off-by-one error.
* test/lisp/textmodes/css-mode-tests.el (css-test-hex-to-rgb): Add
regression tests for the above fix.
tino calancha [Sun, 28 Jan 2018 04:05:54 +0000 (13:05 +0900)]
Code refactoring assoc-delete-all assq-delete-all
* lisp/subr.el (assoc-delete-all): Add optional arg TEST.
(assq-delete-all): Use assoc-delete-all.
* test/lisp/subr-tests.el (subr-tests--assoc-delete-all)
(subr-tests--assq-delete-all): New tests.
* doc/lispref/lists.texi (Association Lists): Document
assoc-delete-all in the manual.
; * etc/NEWS: Announce assoc-delete-all.
Alan Mackenzie [Sat, 27 Jan 2018 22:02:45 +0000 (22:02 +0000)]
Allow read-passwd to hide characters inserted by C-y. (Security fix.)
This fixes bug #30186. The with-silent-modifications was there to prevent
records of text property manipulations being put into buffer-undo-list. These
had been causing a significant slowdown in CC Mode with C-_ after a large
C-y. This CC Mode problem has since been solved by a different workaround.
* lisp/subr.el (remove-yank-excluded-properties): Remove the invocation of
with-silent-modifications around the text property manipulations.
Simen Heggestøyl [Sat, 27 Jan 2018 17:03:49 +0000 (18:03 +0100)]
Fix indentation bug with multi-line CSS values
* lisp/textmodes/css-mode.el (css-smie-rules): Fix indentation of
multi-line CSS values that are separated by spaces.
* test/manual/indent/css-mode.css: Add a test case for the fix.
Alan Third [Tue, 9 Jan 2018 23:47:56 +0000 (23:47 +0000)]
Allow configure to find Homebrew installed imagemagick
* configure.ac: Add the imagemagick pkgconfig dir to pkg-config's
search path.
Eli Zaretskii [Sat, 27 Jan 2018 15:26:29 +0000 (17:26 +0200)]
* etc/PROBLEMS: Document issues with double-buffering. (Bug#30088)
Charles A. Roelli [Sat, 27 Jan 2018 13:52:03 +0000 (14:52 +0100)]
* lisp/window.el (window-largest-empty-rectangle): Fix grammar.
Eli Zaretskii [Sat, 27 Jan 2018 12:06:02 +0000 (14:06 +0200)]
Minor changes in the Emacs manual
* doc/emacs/search.texi (Search Customizations): Minor wording
change.
* doc/emacs/files.texi (Customize Save): Add a cross-reference
for batch mode.
Eli Zaretskii [Sat, 27 Jan 2018 11:17:24 +0000 (13:17 +0200)]
Improve the "Files" chapter of the Emacs manual
* doc/emacs/files.texi (File Shadowing): Rearrange text to explain
the notion of shadowing before describing the commands. Suggested
by Will Korteland <emacs-devel@korte.land> in
emacs-manual-bugs@gnu.org.
Eli Zaretskii [Sat, 27 Jan 2018 10:53:29 +0000 (12:53 +0200)]
Improve the "Search" chapter of the Emacs manual
* doc/emacs/search.texi (Regexps, Regexp Backslash): Improve and
clarify wording.
(Search Customizations): Fix a typo. Reported by Will Korteland
<emacs-devel@korte.land> in emacs-manual-bugs@gnu.org.
Eli Zaretskii [Sat, 27 Jan 2018 10:11:28 +0000 (12:11 +0200)]
* src/indent.c (Findent_to): Doc fix. (Bug#30260)
Eli Zaretskii [Sat, 27 Jan 2018 10:01:54 +0000 (12:01 +0200)]
Improve documentation of 'edebug-defun'
* doc/lispref/edebug.texi (Instrumenting): Document a workaround
for a failure to instrument due to unknown macros. (Bug#30243)
(Bug#10577)
Eli Zaretskii [Sat, 27 Jan 2018 09:18:59 +0000 (11:18 +0200)]
Mention crashes due to Noto Serif Kannada fonts
* etc/PROBLEMS: Mention crashes due to Noto Serif Kannada fonts,
and the respective workarounds. (Bug#30193)
Martin Rudalics [Sat, 27 Jan 2018 07:29:18 +0000 (08:29 +0100)]
In bindings.el fix check whether mode line can be dragged
* lisp/bindings.el (mode-line-default-help-echo): Use check
whether mode line can be dragged from 'mouse-drag-mode-line'.
Glenn Morris [Sat, 27 Jan 2018 03:53:20 +0000 (19:53 -0800)]
Workaround a libotf crash with Kannada font (bug#30193)
* configure.ac (HAVE_OTF_KANNADA_BUG): New define.
* src/xfaces.c (syms_of_xfaces) <Vface_ignored_fonts>:
Add problematic Kannada font if necessary.
Glenn Morris [Sat, 27 Jan 2018 03:18:23 +0000 (19:18 -0800)]
; * test/lisp/textmodes/fill-tests.el: Fix copyright years.
Noah Friedman [Sat, 27 Jan 2018 02:52:19 +0000 (18:52 -0800)]
Bring emacs-buffer.gdb up to date with recent lisp.h changes.
Noam Postavsky [Mon, 11 Dec 2017 23:53:34 +0000 (18:53 -0500)]
Raise limit of regexp repetition (Bug#24914)
* src/regex.h (RE_DUP_MAX): Raise limit to 2^16-1.
* etc/NEWS: Announce it.
* doc/lispref/searching.texi (Regexp Backslash): Document it.
* test/src/regex-tests.el (regex-repeat-limit): Test it.
* src/regex.h (reg_errcode_t): Add REG_ESIZEBR code.
* src/regex.c (re_error_msgid): Add corresponding entry.
(GET_INTERVAL_COUNT): Return it instead of the more generic REG_EBADBR
when encountering a repetition greater than RE_DUP_MAX.
* lisp/isearch.el (isearch-search): Don't convert errors starting with
"Invalid" into "incomplete". Such errors are not incomplete, in the
sense that they cannot be corrected by appending more characters to
the end of the regexp. The affected error messages are:
- REG_BADPAT "Invalid regular expression"
- \\(?X:\\) where X is not a legal group number
- \\_X where X is not < or >
- REG_ECOLLATE "Invalid collation character"
- There is no code to throw this.
- REG_ECTYPE "Invalid character class name"
- [[:foo:] where foo is not a valid class name
- REG_ESUBREG "Invalid back reference"
- \N where N is referenced before matching group N
- REG_BADBR "Invalid content of \\{\\}"
- \\{N,M\\} where N < 0, M < N, M or N larger than max
- \\{NX where X is not a digit or backslash
- \\{N\\X where X is not a }
- REG_ERANGE "Invalid range end"
- There is no code to throw this.
- REG_BADRPT "Invalid preceding regular expression"
- We never throw this. It would usually indicate a "*" with no
preceding regexp text, but Emacs allows that to match a literal
"*".
Noam Postavsky [Sat, 27 Jan 2018 01:45:38 +0000 (20:45 -0500)]
Merge from emacs-26
463f96b481 * doc/lispref/searching.texi: Document regexp repetition l...
08a6195571 ; test/README: Document TEST_LOAD_EL parameter.
7bbea90b1a * src/syntax.c (char-syntax): Warn about ignoring text pro...
50fcbb5f61 ; * src/process.c (Fprocess_contact): Fix docstring typo.
81ae9c8c05 Load mm-util as needed for url-file and url-data (Bug#30258)
5a1ee67ae1 Another minor copyedit in the manual's "Scroll Bars"
226a651e9e Minor fix in documentation of 'equal'
b26786c8d9 * lisp/dired-x.el (dired-guess-shell-alist-user): Doc fix....
5699a824f0 Minor rewording in Emacs manual's "Help Mode" node
f35ff0156e Fixes for Emacs manual in frames.texi
6cd4e8dcc5 * doc/misc/cl.texi (Efficiency Concerns): Fix 2012-10-27 t...
1412cf3edd Fix a few issues with latest GTK scaling changes
59db8dca03 Use scaled coordinates when calling into GTK
2892f05792 Scale monitor dimensions obtained from GTK
Noam Postavsky [Mon, 11 Dec 2017 23:52:52 +0000 (18:52 -0500)]
* doc/lispref/searching.texi: Document regexp repetition limit.
Noam Postavsky [Thu, 4 Jan 2018 00:14:05 +0000 (19:14 -0500)]
; test/README: Document TEST_LOAD_EL parameter.
Noam Postavsky [Thu, 6 Apr 2017 00:16:30 +0000 (20:16 -0400)]
* src/syntax.c (char-syntax): Warn about ignoring text properties (Bug#22765).
Noam Postavsky [Thu, 14 Dec 2017 12:46:51 +0000 (07:46 -0500)]
; * src/process.c (Fprocess_contact): Fix docstring typo.
Noam Postavsky [Fri, 26 Jan 2018 14:04:47 +0000 (09:04 -0500)]
Load mm-util as needed for url-file and url-data (Bug#30258)
* lisp/url/url-file.el (url-file):
* lisp/url/url-misc.el (url-data): Require `mm-util' before calling
`mm-disable-multibyte'.
* test/lisp/url/url-file-resources/file.txt:
* test/lisp/url/url-file-tests.el:
* test/lisp/url/url-misc-tests.el: New tests.
Stefan Monnier [Fri, 26 Jan 2018 21:37:29 +0000 (16:37 -0500)]
* lisp/emacs-lisp/cl-preloaded.el: Update cl-slot-descriptor name.
Francesco Potortì [Fri, 26 Jan 2018 14:11:33 +0000 (16:11 +0200)]
Fix a typo in rmail.el
* lisp/mail/rmail.el (rmail-simplified-subject): Fix a typo in the
regexp. (Bug#29659)
Eli Zaretskii [Fri, 26 Jan 2018 13:48:30 +0000 (15:48 +0200)]
Another minor copyedit in the manual's "Scroll Bars"
* doc/emacs/frames.texi (Scroll Bars): Mention that up/down and
left/right buttons may be absent from the toolkit scroll bars.
Reported by Robert Pluim <rpluim@gmail.com> in
emacs-manual-bugs@gnu.org.
Eli Zaretskii [Fri, 26 Jan 2018 10:38:07 +0000 (12:38 +0200)]
Minor fix in documentation of 'equal'
* doc/lispref/objects.texi (Equality Predicates): Correct the
conditions for equality of unibyte and multibyte strings.
(Bug#30218)
Eli Zaretskii [Fri, 26 Jan 2018 10:18:25 +0000 (12:18 +0200)]
Minor fix for "M-x pdb"
* lisp/progmodes/gud.el (gud-pdb-marker-regexp): Add @ and SPC to
the regexp. (Bug#30208)
Andy Moreton [Fri, 26 Jan 2018 10:09:42 +0000 (12:09 +0200)]
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.
Eli Zaretskii [Fri, 26 Jan 2018 09:51:50 +0000 (11:51 +0200)]
* lisp/dired-x.el (dired-guess-shell-alist-user): Doc fix. (Bug#30192)
Eli Zaretskii [Fri, 26 Jan 2018 09:43:05 +0000 (11:43 +0200)]
Minor rewording in Emacs manual's "Help Mode" node
* doc/emacs/help.texi (Help Mode): Minor rewording of description
of 'help-follow-symbol'. Suggested by Richard Stallman
<rms@gnu.org> in emacs-manual-bugs@gnu.org.
Eli Zaretskii [Fri, 26 Jan 2018 09:25:24 +0000 (11:25 +0200)]
Fixes for Emacs manual in frames.texi
* doc/emacs/frames.texi (Scroll Bars, Mouse Commands)
(Window Dividers): Minor clarifications and spelling/markup
changes. Suggested by Robert Pluim <rpluim@gmail.com> in
emacs-manual-bugs@gnu.org.