1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

138038 Commits

Author SHA1 Message Date
Óscar Fuentes
dbae38efc2 * lisp/password-cache.el: adapt test to change in password-in-cache-p 2019-08-12 16:22:34 +02:00
Michael Albinus
88006cf542 Quote file names properly in Tramp
* lisp/net/tramp.el (tramp-handle-file-truename)
(tramp-handle-insert-directory):
* lisp/net/tramp-adb.el (tramp-adb-handle-file-truename):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-sh-handle-insert-directory):
* lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-truename):
Use `tramp-compat-directory-name-p'.

* lisp/net/tramp.el (tramp-drop-volume-letter)
(tramp-handle-file-truename):
* lisp/net/tramp-adb.el (tramp-adb-handle-file-truename):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
(tramp-sh-handle-file-truename):
* lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-truename):
(tramp-sudoedit-handle-make-symbolic-link): Quote properly.

* lisp/net/tramp-compat.el (tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote): Add optional argument TOP.
2019-08-12 16:18:59 +02:00
Michael Albinus
f7b5e7d72d Handle symbolic links properly in Tramp gfvs methods
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-readable-p):
Handle symbolic links.
2019-08-12 16:18:17 +02:00
Michael Albinus
55d82625c1 Fix caching problem in Tramp smb method
* lisp/net/tramp-cache.el (tramp-flush-file-upper-properties):
Add "file-entries",
2019-08-12 16:17:39 +02:00
Paul Eggert
57fc1a5f7c Prefer signed when testing for signed overflow
* src/alloc.c (free_cons):
* src/casefiddle.c (do_casify_multibyte_string):
* src/editfns.c (styled_format):
* src/image.c (png_load_body):
Use signed arguments to INT_MULTIPLY_WRAPV etc.  This doesn’t fix
any bugs, but GCC emits better code when all args are signed.
Also, this removes the need for an if in free_cons (Bug#37006).
2019-08-11 17:10:48 -07:00
Óscar Fuentes
f01365f62c password-cache: differentiate null values from non-existent entries
* password-cache.el (password-in-cache-p, password-cache-add):
  properly detect non-existent entry.  (Bug#36834)
2019-08-12 01:43:19 +02:00
Eli Zaretskii
94644d862c Fix garbage collection
* src/alloc.c (free_cons): Avoid false positives in
INT_ADD_WRAPV.  (Bug#37006)
2019-08-11 19:23:23 +03:00
Eric Abrahamsen
73877cb3a7 Prompt for new sieve script names in sieve management
* lisp/net/sieve.el (sieve-edit-script): Otherwise the user ends up
with a script named '<new script>.sieve'.
2019-08-11 08:26:59 -07:00
Michael Albinus
95552e08db Retrieve start time from remote machine, use compat attrib functions
* lisp/net/tramp-compat.el (tramp-compat-file-attribute-access-time)
(tramp-compat-file-attribute-status-change-time): New defaliases.

* test/lisp/net/tramp-tests.el (tramp--test-start-time): New defvar.
(tramp--test-file-attributes-equal-p)
(tramp-test19-directory-files-and-attributes): Use it.
(tramp-test18-file-attributes)
(tramp--test-file-attributes-equal-p, tramp-test20-file-modes)
(tramp-test22-file-times, tramp--test-check-files):
Use `tramp-compat-file-attribute-*' functions.
2019-08-11 12:06:57 +02:00
Glenn Morris
252704ded4 Set custom :version for recently modified undo options
* lisp/cus-start.el (undo-limit, undo-strong-limit, undo-outer-limit):
Bump :version.
2019-08-10 22:59:00 -07:00
Stefan Kangas
75083b1568 * doc/emacs/calendar.texi (Time Intervals): Doc fix. 2019-08-10 22:35:57 +02:00
Stefan Kangas
94663726c0 Double undo limits
* src/undo.c (syms_of_undo) <undo_limit, undo_strong_limit>
<Vundo_outer_limit>: Double undo limits.  (Bug#31104)
2019-08-10 19:08:31 +02:00
Glenn Morris
7343474b79 Merge from origin/emacs-26
0860ac0 (origin/emacs-26) Improve documentation of features that use ...
fae1ff6 Fix docstrings in pong
82a2894 Improve doc strings of 'append-to-buffer' and friends
cb0403d Fix octave-mode ElDoc support
691790b Avoid Groff hanging on MS-Windows when invoked by "M-x man"
2019-08-10 08:44:31 -07:00
Glenn Morris
6bebfa77a9 ; Merge from origin/emacs-26
The following commit was skipped:

b83f83c Ignore pending_signals when checking for quits.
2019-08-10 08:44:31 -07:00
Glenn Morris
f47fc426df Merge from origin/emacs-26
e7818cb Fix nnmail-expiry-wait docs and custom :types
8b7c776 * lisp/simple.el (kill-do-not-save-duplicates): Doc fix.  (Bu...
2019-08-10 08:44:31 -07:00
Glenn Morris
ce26bb3539 ; Merge from origin/emacs-26
The following commits were skipped:

5a5ad99d Improve documentation of debugging Lisp syntax error
0148fc7 (emacs-26) ; Auto-commit of loaddefs files.
2019-08-10 08:44:31 -07:00
Eli Zaretskii
0860ac0e9d Improve documentation of features that use the fringes
* doc/emacs/display.texi (Fringes): Add cross-reference to
where indicate-empty-lines is described.
(Useless Whitespace): Add an @anchor for a more accurate
cross-reference in "Fringes".
2019-08-10 12:48:03 +03:00
Michael Albinus
2c5dd68018 Use a time offset when comparing times of local and remote machines
* test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p):
Use a time offset in order to compensate different times on local
and remote machines.
2019-08-10 11:34:13 +02:00
Mauro Aranda
fae1ff69c3 Fix docstrings in pong
* lisp/play/pong.el (pong-move-left pong-move-right): Refer to the
right bats and directions of movement.  (Bug#36959)
2019-08-10 11:53:18 +03:00
Mauro Aranda
7ff96f95d7 Fix pong collision detection
* lisp/play/pong.el (pong-update-game): If the ball hit the bat where
bats are positioned, draw again the bat cell in the old ball
position.  (Bug#20579).
Also, avoid changing the direction of the ball right after hitting the
bats, and improve the collision detection against the borders.
2019-08-10 11:50:08 +03:00
Alex Gramiak
e503e9d35f Set up defined_color_hook for the initial frame
* src/terminal.c (init_initial_terminal): Set up the
defined_color_hook.  This avoids crashes when running
in batch mode with code that manipulates colors.
(Bug#36019)
2019-08-10 11:45:41 +03:00
Philippe Schnoebelen
65e4ebdfb6 Support bool-vectors in cl-extra.el
* lisp/emacs-lisp/cl-extra.el (cl-coerce): Support bool-vector.

Copyright-paperwork-exempt: yes
2019-08-10 11:14:44 +03:00
Juri Linkov
721035d61c * lisp/frameset.el (frameset--minibufferless-last-p): Add comments (bug#36894) 2019-08-09 21:08:54 +03:00
Eli Zaretskii
495b33bb38 Fix highlighting in man pages displayed by "M-x man"
* lisp/man.el (Man-highlight-references0): Handle the case
when a section is divided between 2 or more chunks of text
received from the 'man' program.  (Bug#36927)
2019-08-09 16:51:14 +03:00
Eli Zaretskii
82a2894be4 Improve doc strings of 'append-to-buffer' and friends
* lisp/simple.el (append-to-buffer, prepend-to-buffer)
(copy-to-buffer): Doc fixes.
2019-08-09 10:31:39 +03:00
Eli Zaretskii
bf10b8c3e8 Fix doc strings modified in recent changes
* src/xfns.c (Fx_change_window_property)
(Fx_delete_window_property, Fx_window_property)
(Fx_window_property_attributes): Doc fixes.
2019-08-09 10:02:23 +03:00
Noah Friedman
d6713add69 Provide better target window consistency across x window property functions.
Use the argument name WINDOW-ID instead of SOURCE for same.
Revise docstrings to clarify semantics of FRAME and WINDOW-ID.

(Fx_change_window_property): Use `target_window' instead of `w'.
This is consistent with other related functions.
Finalize its value before blocking input.

(Fx_window_property):
(Fx_window_property_attributes): Use `window_id' instead of `source'.

(Fx_delete_window_property): New optional arg window_id.
2019-08-08 23:17:56 -07:00
Noah Friedman
5a904c477b (Fx_change_window_property): Rename SOURCE arg to WINDOW-ID 2019-08-08 21:52:37 -07:00
Noah Friedman
8f93dce7c0 (Fx_change_window_property): Add optional arg SOURCE.
This provides symmetry with Fx_window_property, so that the window
need not be an actual emacs frame.  This is useful for modifying
properties of parent windows (specified with --parent-id to emacs) or
generally assisting the window manager.
2019-08-08 21:47:46 -07:00
Stefan Kangas
0428d0e96b Use "python -m pdb" when "pdb" is missing in M-x pdb
* lisp/progmodes/gud.el (gud-pdb-command-name): Use "python -m pdb"
when "pdb" is missing.  (Bug#21521)
2019-08-08 20:07:37 -04:00
Noam Postavsky
b055ec0d85 Say how to enable event designators in the eshell manual
* doc/misc/eshell.texi (History): Mention that event designators need
to be enabled.
* etc/NEWS: Mark corresponding entry as documented in manual.
2019-08-08 19:35:53 -04:00
Mauro Aranda
cb0403d746 Fix octave-mode ElDoc support
* lisp/progmodes/octave.el (octave-eldoc-function-signatures): Fix the
regexp used, so no match happens when there is no defined function FN.
Also, tweak the regexp to support GNU Octave 4.2.x and newer.  (Bug#36459)
2019-08-08 23:26:00 +08:00
Michael Albinus
f9beb2bfa9 Work on Tramp backward compatibility
* lisp/net/tramp-adb.el (tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
(tramp-smb-handle-rename-file):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Use `tramp-compat-directory-name-p'.
2019-08-08 16:47:29 +02:00
Michael Albinus
78ddf6ba96 Improve time arithmetic in tramp--test-file-attributes-equal-p
* test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p):
Improve time arithmetic.
2019-08-08 15:42:45 +02:00
Michael Albinus
4084c16090 Suppress false alarm in Tramp
* lisp/net/tramp.el (tramp-dissect-file-name): Suppress false alarm.
2019-08-08 15:42:06 +02:00
Eli Zaretskii
691790b8ea Avoid Groff hanging on MS-Windows when invoked by "M-x man"
* lisp/man.el (Man-build-man-command): On MS-Windows, redirect
stdin of 'man' to the null device, to make sure Groff exits
immediately after formatting the man page.
2019-08-08 16:17:51 +03:00
Stefan Kangas
2c0f6c3540 Suppress interactive-only warnings in undo-tests.el (Bug#36565)
* test/src/undo-tests.el (undo-test-region-deletion)
(undo-test-region-example, undo-test-marker-adjustment-nominal)
(undo-test-region-t-marker, undo-test-marker-adjustment-moved)
(undo-test-region-mark-adjustment): Suppress interactive-only warnings
by using funcall-interactively.
2019-08-08 08:26:31 -04:00
Mattias Engdegård
d1ec33eaea Suppress relint errors in fortran.el
* lisp/progmodes/fortran.el (fortran-indent-to-column):
Suppress relint complaints about duplicated character in skip-set;
it's intentional and harmless.
2019-08-08 12:10:36 +02:00
Mattias Engdegård
f09dc0b81c Fix XTerm OSC 52 selection retrieval (bug#36879)
When asking XTerm for the selection via OSC 52, use ST as string
terminator in the request to get ST as terminator in the reply,
because BEL is messy to receive in many ways.

* lisp/term/xterm.el (gui-backend-get-selection):
Use ST as string terminator in request and reply.
Use a time-out when reading the reply.
2019-08-08 10:30:09 +02:00
Glenn Morris
d5622eb6ff Tests need to be moved when source files are
* test/lisp/obsolete/cl-tests.el: Move from test/lisp/emacs-lisp.
2019-08-07 09:24:15 -07:00
Philipp Stephani
b83f83ccd4 Ignore pending_signals when checking for quits.
pending_signals is often set if no quit is pending.  This results in
bugs in module code if the module returns but no quit is actually
pending.

* src/emacs-module.c (module_should_quit): Use QUITP macro to check
whether the caller should quit.

* src/eval.c: Remove obsolete comment.
2019-08-07 18:16:36 +02:00
Michael Albinus
2a82b55426 ; Still working on tramp--test-file-attributes-equal-p 2019-08-07 16:36:00 +02:00
Michael Albinus
2b6932b440 ; Instrument tramp--test-file-attributes-equal-p 2019-08-07 14:59:19 +02:00
Michael Albinus
25baa7d20c Continue to work on Bug#36940
* test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p):
Make the check more precise.  (Bug#36940)
2019-08-07 14:12:14 +02:00
Paul Eggert
220f16cab6 Re-port dump_bitset_clear to -fsanitize=undefined
* src/pdumper.c (dump_bitset_clear): Skip the memset if the
size is zero, because in that case the destination might be NULL.
This fixes a bug introduced in 2019-07-26T06:17:52Zeggert@cs.ucla.edu.
Add a comment to make the bug less likely to reoccur.
2019-08-06 18:39:58 -07:00
Stefan Monnier
d9d58555d9 * lisp/gnus/message.el (message-sendmail-f-is-evil): Revert recent change
(bug#36937)
2019-08-06 20:42:59 -04:00
Michael Albinus
998f3612f7 Fix Bug#36940
* test/lisp/net/tramp-tests.el (tramp--test-file-attributes-equal-p):
Make the check more precise.  (Bug#36940)
(tramp-test19-directory-files-and-attributes): Move some checks to
`tramp--test-file-attributes-equal-p'.
2019-08-06 21:47:57 +02:00
Alan Mackenzie
7f0de07b3a C++ Mode: Prevent End of statement being found after {} in "count << vec{} <<"
* lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): Check for
operators which cannot start a statement, which may follow a closing brace.
Don't recognise an end of statement in such a case.

* lisp/progmodes/cc-langs.el (c-operator-re, c-bin-tern-operators)
(c-unary-operators, c-non-after-{}-operators, c-non-after-{}-ops-re): New lang
consts and vars.
2019-08-06 16:49:29 +00:00
Eli Zaretskii
96e672364c Fix minor compilation problems on MS-Windows
* src/w32fns.c (Fdefault_printer_name): Fix size of local
buffer.
* src/image.c [WINDOWSNT]: Test __MINGW_MAJOR_VERSION as well
to shut up compiler warnings.
2019-08-06 17:53:03 +03:00
Mattias Engdegård
4ce9c6d0b5 Fix various Calc date conversions (bug#36822)
* lisp/calc/calc-forms.el (math-absolute-from-gregorian-dt):
Rewrite in a way that I understand, and that actually seems to work.
(math-absolute-from-julian-dt): Use Julian, not Gregorian, leap year
rules for counting days within a year.
(math-julian-date-beginning, math-julian-date-beginning-int):
Change constants to be consistent with their doc strings and the code:
use Rata Die epoch at Dec 31, 1 BC Gregorian proleptic, not Julian.
* doc/misc/calc.texi (Date Forms): Correct difference between Julian
Day and Rata Die.
* test/lisp/calc/calc-tests.el (calc-test-calendar): New test.
2019-08-06 13:59:28 +02:00