1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-26 15:10:50 -08:00
Commit graph

130436 commits

Author SHA1 Message Date
Eli Zaretskii
ae490069ea Fix compilation on Debian GNU/Linux
* src/thread.h: Include sys/types.h, for ssize_t that regex.h
uses.  Reported by Robert Marshall <robert.marshall@codethink.co.uk>.
2016-12-09 18:04:27 +02:00
Eli Zaretskii
3ef50c1ff6 Fix subtle errors with let-binding of localized variables
* src/eval.c (do_specbind): Don't require a "symbol" that is
actually a cons cell, in order to call set-default, as there are
no longer such bindings.  This makes do_specbind work like the
pre-concurrency implementation in specbind for bindings of
forwarded symbols.  Use specpdl_kind to access the type of the
binding.
(specpdl_kind): New function.
2016-12-09 16:03:08 +02:00
Michael Albinus
57a77f833e Document file-name-quote, file-name-unquote and file-name-quoted-p
* doc/lispref/files.texi (File Name Expansion):
* etc/NEWS: Mention file-name-quote, file-name-unquote and
file-name-quoted-p.

* lisp/files.el (file-name-non-special): Revert using
file-name-quote, file-name-unquote and file-name-quoted-p.
2016-12-09 10:03:05 +01:00
Noam Postavsky
8f611e5e23 Fix bad quoting of python-shell-interpreter
`python-shell-calculate-command' was using `shell-quote-argument' as if
it was generating a shell command, but its callers don't pass the result
to a shell, and they expect to parse it with `split-string-and-unquote'.
This caused problems depending on the flavor of shell quoting in
effect (Bug#25025).

* lisp/progmodes/python.el (python-shell-calculate-command): Use
`combine-and-quote-strings' to quote the interpreter, so that it can be
parsed by `python-shell-make-comint' successfully using
`split-string-and-unquote'.
2016-12-09 00:14:48 -05:00
Paul Eggert
7f106f48e9 * src/lisp.h (struct terminal): Remove unnecessary forward decl. 2016-12-08 18:17:32 -08:00
Paul Eggert
f0a1e9ec3f Make read1 more reentrant
This is needed if ‘read’ is called soon after startup, before the
Unicode tables have been set up, and it reads a \N escape and
needs to look up a value the Unicode tables, a lookup that in turn
calls read1 recursively.  Although this change doesn’t make ‘read’
fully reentrant, it’s good enough to handle this case.
* src/lread.c (read_buffer_size, read_buffer): Remove static vars.
(grow_read_buffer): Revamp to use locals, not statics, and to
record memory allocation un the specpdl.  All callers changed.
(read1): Start with a stack-based buffer, and use the heap
only if the stack buffer is too small.  Use unbind_to to
free any heap buffer allocated.  Use bool for boolean.
Redo symbol loop so that only one call to grow_read_buffer
is needed.
(init_obarray): Remove no-longer-needed initialization.
2016-12-08 13:00:32 -08:00
Eli Zaretskii
54f52a1390 Fix compilation warnings
* src/thread.c (Fmake_thread): Call emacs_abort, to avoid
compilation warning.
2016-12-08 20:47:27 +02:00
Paul Eggert
162ba405ac Fix unlikely substitute-command-keys memory leak
* src/doc.c (Fsubstitute_command_keys):
Free buffer when unwinding.
2016-12-08 10:43:58 -08:00
Michael Albinus
c685e4c929 ; Fix last patch 2016-12-08 18:33:26 +01:00
Michael Albinus
b67fdee18b Add file-name-quoted-p, file-name-quote, file-name-unquote
* lisp/files.el (file-name-quoted-p, file-name-quote)
(file-name-unquote): New defsubst.
(find-file--read-only, find-file-noselect)
(file-name-non-special): Use them.
2016-12-08 18:00:10 +01:00
Eli Zaretskii
128cacda1c Add a NEWS entry. 2016-12-08 18:35:40 +02:00
Glenn Morris
e63c489dd4 Minor fix for symbol-file
* lisp/subr.el (symbol-file): Avoid false matches with "require"
elements in load-history.  (Bug#25109)
2016-12-07 23:18:36 -08:00
Glenn Morris
08decbd04b Doc fix for vc-git
* lisp/vc/vc-git.el (vc-git-region-history): Add a doc string.
2016-12-07 22:53:58 -08:00
Tino Calancha
af96803459 Fix Bug#24962
* lisp/buff-menu.el (list-buffers--refresh):
List buffers with name starting with " " if they visit a file.
* test/lisp/buff-menu-tests.el (buff-menu-24962):
Update test result as pass.
2016-12-08 13:46:25 +09:00
Tino Calancha
2766c607b0 ediff-fixup-patch-map: Improve prompt
* lisp/vc/ediff-ptch.el (ediff-fixup-patch-map):
Make clear in the prompt when we are applying a multi patch.
2016-12-08 11:32:02 +09:00
Glenn Morris
a6776f0823 Retain message logging in map-y-or-n-p
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p):
Stop disabling logging to Messages buffer.  (Bug#13326)
2016-12-07 20:25:36 -05:00
Glenn Morris
5415c8be60 Doc fix for recent change
* lisp/simple.el (region-modifiable-p): Doc fix.
2016-12-07 20:10:54 -05:00
Glenn Morris
75c9314cbf Quieten make-dist default operation
* make-dist: Add --verbose option.  Default to quieter operation.
2016-12-07 19:59:14 -05:00
Glenn Morris
5531e75385 Further improve make-dist checking
* make-dist: Print status messages when checking.
2016-12-07 19:45:48 -05:00
Glenn Morris
953bf67fbe Improve previous make-dist change
* make-dist: Let make check the info files more thoroughly.
2016-12-07 19:43:36 -05:00
Glenn Morris
129645a7a7 Make make-dist --snapshot do some sanity checks
* make-dist: Snapshot mode no longer disables checks.
Checks now includes checks for freshness.  (Bug#25084)
Checks now exits with an error if problems were found.
2016-12-07 19:13:05 -05:00
Tino Calancha
55c1937e52 Fix regression introduced by commit 7b1e97f
* lisp/ibuf-ext.el (ibuffer-decompose-filter): Use cdr instead
of cadr; required after commit 20f5a5b.
2016-12-08 07:27:36 +09:00
Paul Eggert
aed629d61c Put post-25 ChangeLog entries into ChangeLog.3
* ChangeLog.2: Copy from emacs-25 branch.
* ChangeLog.3: New file, with changes only in master.
* Makefile.in (CHANGELOG_HISTORY_INDEX_MAX): Bump from 2 to 3.
2016-12-07 12:53:56 -08:00
Paul Eggert
f15f6b5307 Merge from origin/emacs-25
eeecac7 Fix minor quoting problems in doc strings
2016-12-07 12:43:16 -08:00
Paul Eggert
fe6131b724 ; Merge from origin/emacs-25
The following commit was skipped:

da71c89 * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix docs...
2016-12-07 12:41:06 -08:00
Paul Eggert
c102a84a48 Merge from origin/emacs-25
35ce3fb Don't assume window-point and point are the same
2016-12-07 12:41:05 -08:00
Paul Eggert
33a2f93aad ; Merge from origin/emacs-25
The following commit was skipped:

a3487a8 Fix bug#25087
2016-12-07 12:41:05 -08:00
Paul Eggert
99e20f105a Merge from origin/emacs-25
ba2847f ; * lisp/vc/ediff-util.el (ediff-janitor): Fix last change.  ...
8b43f97 * lisp/vc/ediff-util.el (ediff-janitor): Doc fix.  (Bug#25046)
c20035c ; * doc/emacs/programs.texi (Man Page): Fix last change.
93d8346 Improve indexing of 'man'
2016-12-07 12:41:05 -08:00
Paul Eggert
e22eabd5bc ; Merge from origin/emacs-25
The following commits were skipped:

c491989 Port to Sun C 5.14
95eb641 Fix mail-combine-fields
2016-12-07 12:41:05 -08:00
Paul Eggert
e676b7b80b Merge from origin/emacs-25
d31298d Fix documentation of `window-combination-resize'
2086f4c Typo fixes in elisp manual
2016-12-07 12:41:04 -08:00
Paul Eggert
8cd0d5df81 ; Merge from origin/emacs-25
The following commit was skipped:

f6da597 ; Revert "Guard terminal par. in XTerm mouse mode"
2016-12-07 12:41:04 -08:00
Paul Eggert
c5532f5a5c Merge from origin/emacs-25
3980903 ; Update ChangeLog.2, etc/AUTHORS and ldef-boot.el for Emacs ...
5878abf Fix 'expand-file-name' during startup on MS-Windows
2016-12-07 12:40:43 -08:00
Paul Eggert
32b46fc82f ; Merge from origin/emacs-25
The following commit was skipped:

4606529 ; ChangeLog.2 update
2016-12-07 12:39:08 -08:00
Paul Eggert
fd6632b397 Merge from origin/emacs-25
9a857b9 * admin/authors.el (authors-renamed-files-alist): Addition.
6d27423 Tweak refcard note about documentation location
e46a134 Improve treatment of Fortran's "class is"
2016-12-07 12:39:08 -08:00
Paul Eggert
8209e03844 ; Merge from origin/emacs-25
The following commits were skipped:

3674317 Bump Emacs version to 25.1.90
938e316 ; Revert "Bump Emacs version"
596289b Bump Emacs version
dcfe4d1 ; ChangeLog.2 update
2016-12-07 12:39:08 -08:00
Paul Eggert
3ace6b1e85 Merge from origin/emacs-25
93c0f51 Handle TeX comments when making new paragraph
e0884f1 Restore keystroke echo in 'C-q'
a6213ce Improve documentation of 'current-word'
0828126 Fix a typo in an Eshell defcustom
2e361c7 Minor copyedits of electric-pair-mode
7499ee8 ; Minor copyedit in the Emacs manual
45b652b Fix documentation of 'invocation-directory'
7f43d7c * admin/authors.el (authors-aliases): Add an entry.
ba48880 ; Fix pl-refcard.tex
2016-12-07 12:39:07 -08:00
Paul Eggert
fa8dbb61a0 ; Merge from origin/emacs-25
The following commit was skipped:

d4e1549 Guard terminal parameter in XTerm mouse mode
2016-12-07 12:39:07 -08:00
Paul Eggert
401394d20b Merge from origin/emacs-25
7287e96 ; * src/lread.c (openp): Correct an inaccuracy in commentary.
2016-12-07 12:39:06 -08:00
Paul Eggert
9b9ab8fb8e ; Merge from origin/emacs-25
The following commit was skipped:

3f2b497 * etc/AUTHORS: Regenerate the AUTHORS file
2016-12-07 12:39:06 -08:00
Paul Eggert
c26605861e Merge from origin/emacs-25
3d63b48 Update ChangeLog files and authors.el
9d30264 Fix menu bindings of Dired 'A' and 'Q' commands
a725592 Avoid errors in shr-pixel-column due to dedicated windows
3138598 Update format-time-string documentation
2016-12-07 12:36:38 -08:00
Sam Steingold
4ab7c308e0 delete-trailing-whitespace: handle read-only text in buffer
* lisp/simple.el (region-modifiable-p): New function.
(delete-trailing-whitespace): Us it to avoid trying to delete read-only text.
2016-12-07 15:06:20 -05:00
Paul Eggert
eeecac7ab9 Fix minor quoting problems in doc strings 2016-12-07 11:31:16 -08:00
Eli Zaretskii
fa7d1f075f Fix network streams.
The original code messed up flags in fd_callback_data[], and also
didn't call add_process_read_fd for process-related file descriptors.
2016-12-07 21:01:40 +02:00
Paul Eggert
220ccda78b Fix --enable-gcc-warnings --with-ns on Fedora
* src/Makefile.in (NON_OBJC_CFLAGS): New macro.
(ALL_OBJC_CFLAGS): Use it.
(EMACS_CFLAGS): New macro, with most of the old ALL_CFLAGS.
(ALL_CFLAGS, ALL_OBJC_FLAGS): Use it.
2016-12-07 10:30:56 -08:00
Eli Zaretskii
16ac7c0fc9 Minimize spurious diffs from master. 2016-12-07 19:08:24 +02:00
Michael Albinus
f41097adf3 Fix problems in quoting Tramp file names
* lisp/net/tramp.el (tramp-get-remote-tmpdir): Add also hop to result.
(tramp-unquote-shell-quote-argument): New defun.
(tramp-shell-quote-argument):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-make-copy-program-file-name):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl)
(tramp-smb-shell-quote-argument): Use it.
2016-12-07 17:16:57 +01:00
Mark Oteiza
6d410fb03c ; Fix previous commit 2016-12-07 09:43:27 -05:00
Tino Calancha
909bce32d5 ibuffer-map-deletion-lines: Re-included it
It was deleted in previous commit, but it's referenced
by the macro 'define-ibuffer-op'.
* lisp/ibuffer.el (ibuffer-map-deletion-lines): Reinclude it.
2016-12-07 23:02:26 +09:00
Tino Calancha
bb90c250ad ibuffer-unmark-all: simplify code
* lisp/ibuffer.el (ibuffer-map-deletion-lines): Delete it.
(ibuffer-unmark-all): Simplify code.
2016-12-07 22:25:11 +09:00
Tino Calancha
e41e89d128 define-ibuffer-filter: Discard wrong filters
* lisp/ibuf-macs.el (define-ibuffer-filter): Do not store
in 'ibuffer-filtering-qualifiers' a wrong filter (Bug#25042).
* test/lisp/ibuffer-tests.el (ibuffer-test-Bug25042): Add test.
2016-12-07 22:02:54 +09:00