1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 04:10:27 -08:00
Commit graph

138058 commits

Author SHA1 Message Date
Lars Ingebrigtsen
3580950a3f Clean up Gnus manual reference to XEmacs variables
* doc/misc/gnus.texi (XVarious): Remove section about XEmacs
variables that have been removed.
2019-08-14 22:26:13 -07:00
Lars Ingebrigtsen
9754486c87 Minor Scroll Bars clarification
* doc/emacs/frames.texi (Scroll Bars): Clarify what we mean by
"customize" here (bug#14321).
2019-08-14 22:07:10 -07:00
Lars Ingebrigtsen
a5e7c6c617 Arrange custom-face-attributes closer to how heavy they are
* lisp/cus-face.el (custom-face-attributes): Arrange the weights
more in order of how heavy they are (bug#15526).
2019-08-14 20:22:36 -07:00
Lars Ingebrigtsen
6560607744 Use gnus-summary-button-forward in gnus-summary-mode-map
* lisp/gnus/gnus-sum.el (gnus-summary-mode-map): Use
`gnus-summary-button-forward' instead of the obsolete
`gnus-summary-widget-forward'.
2019-08-14 20:14:41 -07:00
Paul Eggert
2098e8afaf Remove INT_ADD_WRAPV bug workarounds
* src/alloc.c (free_cons):
* src/casefiddle.c (do_casify_multibyte_string):
* src/editfns.c (styled_format):
* src/image.c (png_load_body):
Remove recent workarounds for INT_ADD_WRAPV bugs since
the bugs have been fixed (Bug#37006).
2019-08-14 18:24:33 -07:00
Lars Ingebrigtsen
b898528fdc Add C-b/f/p/n keystrokes in `M-x snake'
* lisp/play/snake.el (snake-mode-map): Add the C-b/f/p/n in
addition to the cursor keys (bug#16720).
2019-08-14 18:20:04 -07:00
Paul Eggert
aa1411b20f Update from Gnulib
This incorporates:
2019-08-14 intprops: pacify picky GCC
2019-08-14 intprops: support unsigned *_WRAPV results
2019-08-12 verify: improve diagnostic quality in recent GCC
* lib/intprops.h, lib/verify.h:	Copy from Gnulib.
2019-08-14 18:13:54 -07:00
Lars Ingebrigtsen
370f07046b Add cl-def* forms to bovine/el.el
* lisp/cedet/semantic/bovine/el.el (lambda): Add the cl-def*
variations to allow semantic to find the definitions (bug#17005).
2019-08-14 18:03:41 -07:00
Lars Ingebrigtsen
bfb83e643f Don't alter function name face height in manoj-dark theme
* etc/themes/manoj-dark-theme.el (manoj-dark): Don't alter the
height of function name faces, because this makes many tabulated
modes not longer line up (bug#17042).
2019-08-14 17:59:13 -07:00
Lars Ingebrigtsen
d54eb7347f Respect the BUFFER parameter in `fill-flowed'
* lisp/mail/flow-fill.el (fill-flowed): `current-buffer' is always
non-nil, so respect the BUFFER parameter.  Also add a doc string.
2019-08-14 17:16:37 -07:00
Lars Ingebrigtsen
1a20553100 Output the maintainer and author(s) in the package description buffer
* lisp/emacs-lisp/package.el (describe-package-1): Output
maintainer and author(s) (bug#17573).
(package--print-email-button): New function.
2019-08-14 16:35:16 -07:00
Juri Linkov
cad5418f18 ; Fix typoes. 2019-08-15 00:06:07 +03:00
Eli Zaretskii
629068a89d Fix fetching URLs with stuff that looks like HTTP headers
* lisp/url/url-http.el (url-http-parse-headers): Narrow the
buffer to the headers at the beginning to make sure
url-handle-content-transfer-encoding uses the correct
headers.  (Bug#37023)
2019-08-14 17:53:14 +03:00
Paul Eggert
f4974d6fe6 Don’t increase consing_until_gc when out of memory
* src/alloc.c (memory_full): Don’t increase consing_until_gc.
Suggested by Eli Zaretskii (Bug#37006#46).
2019-08-13 12:29:13 -07:00
Paul Eggert
b80559be21 Let consing_until_gc exceed EMACS_INT_MAX
This builds on the previous patch.
* src/alloc.c (consing_until_gc): Now of type intmax_t,
since gc-cons-threshold can be up to INTMAX_MAX.  All uses changed.
* src/lisp.h (CONSING_CT_MAX, consing_ct): Remove.
2019-08-13 12:22:30 -07:00
Paul Eggert
a354736e1d Let consing_until_gc exceed INTPTR_MAX
Suggested by Eli Zaretskii (Bug#37006#46).
* src/alloc.c (consing_until_gc): Now of type consing_ct.
All uses changed, so gc-cons-threshold no longer saturates
against OBJECT_CT_MAX.
(object_ct): Move typedef here from lisp.h.
* src/lisp.h (consing_ct, CONSING_CT_MAX): New type and macro.
(OBJECT_CT_MAX): Remove.  Replace all uses with CONSING_CT_MAX.
2019-08-13 12:12:38 -07:00
Paul Eggert
8882761440 Fix GC threshold typo
Problem reported by Eli Zaretskii (Bug#37006#25).
* src/alloc.c (garbage_collect_1): Fix typo in threshold calc.
Go back to dividing by 10 since the numerator’s a constant now.
Problem introduced in 2019-07-21T02:40:03Z!eggert@cs.ucla.edu.
2019-08-13 10:04:01 -07:00
Eli Zaretskii
c0e720cdd9 Improve documentation of 'diff-font-lock-prettify'
* lisp/vc/diff-mode.el (diff-font-lock-prettify): Doc fix.

* etc/NEWS: Minor copyedits.
2019-08-13 18:16:51 +03:00
Eli Zaretskii
c90975f92f Fix initialization of user-defined fringe bitmaps in daemon mode
* src/fringe.c (gui_init_fringe): Rename from w32_init_fringe
or x_cr_init_fringe, and make unconditionally compiled; all
callers changed.  Do nothing if the frame's
redisplay_interface doesn't implement the define_fringe_bitmap
method.  Set up any user-defined fringe bitmaps in addition to
the standard bitmaps.
Suggested by Liam Quinlan <liamkquinlan@gmail.com> in
https://lists.gnu.org/archive/html/emacs-devel/2019-08/msg00259.html.

(w32_reset_fringes) [HAVE_NTGUI]: Do nothing if the frame's
redisplay_interface doesn't implement the
destroy_fringe_bitmap method.

* src/w32fns.c (Fx_create_frame): Call gui_init_fringe when
the first GUI frame is created for this session.
* src/dispextern.h (w32_init_fringe): Rename to
gui_init_fringe and make unconditional.
(x_cr_init_fringe): Remove prototype.
2019-08-13 17:49:51 +03:00
Eli Zaretskii
2b329ed420 ; Add commentary to recent changes
* src/image.c (png_load_body):
* src/editfns.c (styled_format):
* src/casefiddle.c (do_casify_multibyte_string):
* src/alloc.c (free_cons): Comment why we use a signed
temporary integer variable.  (Bug#37006)
2019-08-12 17:39:09 +03:00
Ó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