Commit graph

132576 commits

Author SHA1 Message Date
Eli Zaretskii
6dbf88e276 Fix the MSDOS build
* msdos/sed2v2.inp (HAVE_SBRK): Define to 1.
2018-12-11 14:17:57 +08:00
Michael Albinus
267b82797b Fix commit c24c5dc4a4
* lisp/net/tramp.el (tramp-handle-substitute-in-file-name): Drop volume
letter of localname substitution.  Reported by Chris Zheng
<chriszheng99@gmail.com>.
2018-12-11 14:17:57 +08:00
Michael Albinus
b6d216c768 Tag tramp-test39-utf8* as :unstable
* test/lisp/net/tramp-tests.el (tramp-test39-utf8)
(tramp-test39-utf8-with-stat, tramp-test39-utf8-with-perl)
(tramp-test39-utf8-with-ls): Tag the tests as :unstable.
2018-12-11 14:17:57 +08:00
Michael Albinus
aa16566f85 Fix Bug#30904
* lisp/net/tramp.el (tramp-dissect-file-name): Adapt docstring.  (Bug#30904)
2018-12-11 14:17:57 +08:00
Eric Abrahamsen
5f36db72fe Improve warning and error messages
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-read,
  (eieio-persistent-validate/fix-slot-value): Indicate exactly what
  went wrong.
2018-12-11 14:17:57 +08:00
Eric Abrahamsen
8671f0320e Adjust eieio persistence tests for expected failure
* test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
 (eieio-test-persist-hash-and-vector,
  eieio-test-persist-interior-lists): Persistence does not currently
 handle deeply-nested objects. Expect current failures, and mark for
 future fixes.
2018-12-11 14:17:57 +08:00
Eric Abrahamsen
9d4baa3de6 Let eieio-persistent-read read what object-write has written
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
  `object-write' may quote lists inside hash tables and vectors, so
  unquote those lists here.

This patch allows the eieio-persistent write/restore process to
perform a clean round trip. It only handles a very specific and
limited range of object structures, but at least the write and read
procedures match.
2018-12-11 14:17:57 +08:00
Eric Abrahamsen
b4377a3433 Handle possible classtype values in eieio-persistent-read
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
  The function `eieio-persistent-slot-type-is-class-p' could return
  either a single class, or a list of classes.
2018-12-11 14:17:57 +08:00
Pierre Téchoueyres
a1b7a1edb0 Add new tests for eieio persistence
* test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el:
  (hash-equal): New comparison test for hash-tables.
  (persist-test-save-and-compare): Use test for hash-tables.
  (eieio-test-persist-hash-and-vector,
  eieio-test-persist-interior-lists): New tests.
2018-12-11 14:17:56 +08:00
Glenn Morris
1955afe0fc * lisp/gnus/gnus-cloud.el (gnus-cloud-synced-files): Fix doc & type. 2018-12-11 14:17:56 +08:00
Glenn Morris
5502f96b1a * lisp/ibuf-ext.el (ibuffer-never-search-content-mode): Fix type. 2018-12-11 14:17:56 +08:00
Paul Eggert
e3bcd115d2 Port data-tests-popcnt to 32-bit Emacs
* test/src/data-tests.el (data-tests-popcnt):
Don’t assume Emacs integers can represent 32-bit quantities.
Change to a simple and straightforward approach, since runtime
performance is not important here.
2018-12-11 14:17:56 +08:00
Glenn Morris
b74e19e759 * lisp/play/fortune.el (fortune-in-buffer): Revert previous nonsense. 2018-12-11 14:17:56 +08:00
Glenn Morris
d74261fb74 * doc/lispref/windows.texi (Selecting Windows): Fix a typo. 2018-12-11 14:17:56 +08:00
Charles A. Roelli
91bdd5a4f0 Provide completion in vc-git-stash-* commands
* lisp/vc/vc-git.el (vc-git-stash-read-history)
(vc-git-stash-read): New history variable and function.
(vc-git-stash-show, vc-git-stash-apply, vc-git-stash-pop): Update
their interactive specifications.
2018-12-11 14:17:56 +08:00
Charles A. Roelli
4a6cf41144 * doc/lispref/internals.texi (Writing Emacs Primitives): Fix grammar. 2018-12-11 14:17:56 +08:00
Paul Eggert
246460c157 Add tests for Bug#30408
* test/src/editfns-tests.el (format-%d-large-float)
(format-%x-large-float, format-%o-invalid-float): New tests.
2018-12-11 14:17:56 +08:00
Glenn Morris
8d80db1230 Quieten eieio-test compilation
* test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el:
Remove obsolete name args where not being explicitly tested.
2018-12-11 14:17:56 +08:00
Glenn Morris
ff16207830 ; * autogen.sh: Comment. 2018-12-11 14:17:56 +08:00
Glenn Morris
e31b2771e7 * lisp/play/fortune.el (fortune-in-buffer): Unadvertise no-op arg. 2018-12-11 14:17:56 +08:00
Alan Mackenzie
590166c829 Firm up documentation of generalized variables
* doc/lispref/variables.texi (Generalized Variables)
(Setting Generalized Variables): Define a generalized variable as something
setf can write to.  Remove the insinuation that hackers have poor memories.
State explicitly that the list of GVs given is complete.  Remove the
suggestion that `setf' has superseded, or is in the process of superseding,
`setq'.  Make minor corrections to the English.
2018-12-11 14:17:53 +08:00
Eli Zaretskii
36a0cfe805 Improve documentation of Auto-Revert mode
* doc/emacs/files.texi (Reverting): Mention that Aut-Revert
applies to Dired buffers as well.  Suggested by Michael Albinus
<michael.albinus@gmx.de> in emacs-manual-bugs@gnu.org.
2018-12-11 14:17:53 +08:00
Eli Zaretskii
19ed17602e Improvements in dired.texi
* doc/emacs/dired.texi (Dired): Mention that Dired works with
remote directories.
(Dired Enter): ls-lisp is used on some remote systems as well.
(Dired Navigation): Mention and index the command names.
(Dired Deletion): Document the 'always' value of
dired-recursive-deletes.  Mention the alternative deletion method.
(Marks vs Flags): Fix spelling of Auto-Revert mode.  Document what
marking does on a subdirectory header line.
(Operating on Files): Document that 'Z' uses gzip or compress.
(Comparison in Dired): Mention ediff-files.
(Misc Dired Features): Fix a typo.  Suggested by Michael Albinus
<michael.albinus@gmx.de> in emacs-manual-bugs@gnu.org.
2018-12-11 14:17:53 +08:00
Noam Postavsky
3b5438f388 Revert "Support all perl variable declarators and prefixes"
It highlights normal variable names in perl programs (Bug#30812).
* lisp/progmodes/perl-mode.el (perl-imenu-generic-expression)
(perl-font-lock-keywords-2): Restore values prior to Bug#27613 fix.

Don't merge to master, we will fix Bug#27613 properly there (it's too
close to release to do that on emacs-26).
2018-12-11 14:17:53 +08:00
Glenn Morris
45237016f7 * lisp/isearch.el (isearch-pre-command-hook): Replace cl-lib function.
As a preloaded file, isearch.el cannot require cl-lib at runtime.
2018-12-11 14:17:53 +08:00
Alan Mackenzie
7325e18625 * cc-engine.el (c-looking-at-or-maybe-in-bracelist): Remove pessimization 2018-12-11 14:17:53 +08:00
Eli Zaretskii
cbea6b19f4 Avoid redisplay problems with too wide wrap-prefix
* src/xdisp.c (display_line): Avoid looping in redisplay when
wrap-prefix is set to a too-wide stretch of whitespace.
(Bug#30432)
2018-12-11 14:17:53 +08:00
Paul Eggert
7387d26ef9 Port to 32-bit sparc64
Problem reported by Ulrich Mueller; fix suggested by Eli Zaretskii
and Andreas Schwab (Bug#30855).
* src/alloc.c (mark_memory): Call mark_maybe_object only on
pointers that are properly aligned for Lisp_Object.
2018-12-11 14:17:53 +08:00
Paul Eggert
d219c99fc6 Autoupdate from Gnulib 2018-12-11 14:17:53 +08:00
Paul Eggert
16fc8574bb ; Rewrap doc string 2018-12-11 14:17:53 +08:00
Michael Albinus
aa2ebecbdb Extend Tramp's UTF8 tests
* test/lisp/net/tramp-tests.el (tramp--test-utf8):
Apply more exhaustive tests.
2018-12-11 14:17:53 +08:00
Aaron Jensen
98cca7258d Better support for 'transpose-chars' in Flyspell mode
* lisp/textmodes/flyspell.el (flyspell-post-command-hook): Check
word  before previous point location after 'transpose-chars'.
(Bug#30813)
2018-12-11 14:17:52 +08:00
Robert Pluim
f1168aa5f1 Correct Info link markup
* lisp/gnus/gnus-agent.el (gnus-agent-auto-agentize-methods):
Correct markup for Info link.
* src/minibuf.c (Fcompleting_read): Likewise.
2018-12-11 14:17:52 +08:00
Nick Helm
06a984e14e Improve documentation of 'with-help-window'
* doc/lispref/help.texi (Help Functions): Change variable name
to 'buffer-or-name'.

* lisp/help.el (with-help-window): Change variable name to
'buffer-or-name' and rewrite the doc string, adding reference
to 'help-window-setup'.  (Bug#30792)
2018-12-11 14:17:52 +08:00
Eli Zaretskii
a5db603125 Minor improvements in building.texi
* doc/emacs/building.texi (Compilation Shell): Mention that this
section is for local compilation buffers.
(Compilation, Compilation Mode): Mention that 'g' is bound to
'recompile' in compilation buffers.
(Grep Searching): Add a cross-reference to "Compilation Mode".
Suggested by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.
2018-12-11 14:17:52 +08:00
Alex Branham
3b15508659 * lisp/textmodes/bibtex.el (bibtex-mark-entry): activate mark 2018-12-11 14:17:52 +08:00
Andrew G Cohen
751ecf3eb1 Set gnus-newsgroup-selection in the summary buffer
* lisp/gnus/nnselect.el (nnselect-retrieve-headers,
  nnselect-request-thread): Ensure that gnus-newsgroup-selection is
  set locally in the summary buffer.
2018-12-11 14:17:52 +08:00
Paul Eggert
b2b31ae8bd ; Spelling fix 2018-12-11 14:17:52 +08:00
Paul Eggert
44c15fe009 ; Spelling fix 2018-12-11 14:17:52 +08:00
Paul Eggert
bda66bd2ae Improve port to NetBSD tzalloc
Problem reported by Valery Ushakov (Bug#30738#22).
* src/editfns.c (HAVE_TZALLOC_BUG): New macro.
(tzlookup): Use it.  Compile on all platforms, not just on NetBSD.
2018-12-11 14:17:52 +08:00
Glenn Morris
d5087f9e7e ; * test/lisp/info-xref-tests.el: Remove stray line from previous. 2018-12-11 14:17:52 +08:00
Glenn Morris
a3605b6477 * test/lisp/info-xref-tests.el (info-xref-test-emacs-manuals): New. 2018-12-11 14:17:52 +08:00
Paul Eggert
24e07c4070 Tune time zone 0
* src/editfns.c (tzlookup): Treat time zone 0 like t, for speed.
Suggested by Valery Ushakov (Bug#30738#19).
2018-12-11 14:17:52 +08:00
Eli Zaretskii
15d031ea3f * doc/emacs/building.texi (Starting GUD): Mention 'guiler'. 2018-12-11 14:17:52 +08:00
Eli Zaretskii
abe37f8438 Yet more proofreading of the Emacs manual
* doc/emacs/building.texi (Compilation, Grep Searching)
(Debuggers, GUD Customization, Source Buffers)
(Breakpoints Buffer, Threads Buffer): Minor fixes and updates.
Suggested by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.
2018-12-11 14:17:52 +08:00
Charles A. Roelli
fe4af1c543 Normalize and fix some mistakes in NS-related commentary
* lisp/term/ns-win.el (ns-insert-working-text): Normalize
commentary.
(x-file-dialog): Fix indentation.

* src/nsfns.m (ns_get_window, interpret_services_menu)
(x_set_background_color, x_set_icon_name, x_set_tool_bar_lines)
(x_set_icon_type, x_set_mouse_color, Fx_create_frame)
(ns_window_is_ancestor, Fns_popup_font_panel)
(Fx_display_visual_class, Fns_font_name, Fns_do_applescript)
(ns_screen_name, compute_tip_xy, Fns_mouse_absolute_pixel_position)
(handlePanelKeys): Normalize commentary (also in top-level
declarations) and remove two outdated comments (one in
Fx_create_frame, the other in compute_tip_xy).

* src/nsterm.h (NSApplication, NSWindow, ns_bitmap_record):
* src/nsselect.m:
* src/nsmenu.m (ns_update_menubar, addItemWithWidgetValue:)
(runMenuAt:forFrame:keymaps:, ns_menu_show, free_frame_tool_bar)
(update_frame_tool_bar, init)
(initWithContentRect:styleMask:backing:defer:)
(initFromContents:isQuestion:, timeout_handler:)
(Fmenu_or_popup_active_p):
* src/nsimage.m (initFromXBM, initFromXBMWithDepth):
* src/nsgui.h:
* src/nsfont.m (ns_spec_to_descriptor, ns_descriptor_to_entity)
(ns_charset_covers, ns_get_req_script, ns_findfonts)
(nsfont_list_family, nsfont_open, nsfont_encode_char)
(nsfont_draw, ns_uni_to_glyphs, ns_glyph_metrics)
(syms_of_nsfont): Normalize commentary (also in top-level
declarations).

* src/nsterm.m (ns_init_locale, ns_retain_object)
(ns_screen_margins_ignoring_hidden_dock, ns_unfocus, NSImageView)
(x_make_frame_visible, x_iconify_frame, x_destroy_window)
(x_set_undecorated, x_set_no_focus_on_map, x_set_z_group)
(ns_index_color, ns_get_color, ns_lisp_to_color)
(note_mouse_movement, scrollbar, ns_scroll_run)
(ns_draw_fringe_bitmap, ns_draw_window_cursor)
(ns_draw_text_decoration, ns_draw_relief)
(ns_dumpglyphs_box_or_relief, ns_dumpglyphs_image)
(ns_dumpglyphs_stretch, ns_draw_glyph_string, ns_send_appdefined)
(ns_check_menu_open, ns_read_socket, ns_select, ns_run_loop_break)
(ns_set_vertical_scroll_bar, ns_set_horizontal_scroll_bar)
(ns_string_to_lispmod, ns_default, ns_initialize_display_info)
(ns_delete_display, ns_term_init, sendEvent:)
(applicationDidFinishLaunching:, applicationDidBecomeActive:)
(fd_handler:, setWindowClosing:, keyDown:, insertText:)
(mouseDown:, mouseMoved:, updateFrameSize:)
(windowWillResize:toSize:, windowDidResize:, windowDidResignKey:)
(initFrameFromEmacs:, toggleFullScreen:, toolbarClicked:)
(writeSelectionToPasteboard:types:, setMiniwindowImage:)
(scrollerWidth, initFrame🪟, setFrame:, repeatScroll:)
(ns_xlfd_to_fontname, syms_of_nsterm): Normalize commentary (also in
top-level declarations), and in ns_get_color, replace a Gmane link
with one from lists.gnu.org, which does not require JS to view the
message.
2018-12-11 14:17:52 +08:00
Paul Eggert
73f9e1d167 * doc/emacs/rmail.texi: Fix broken link. 2018-12-11 14:17:52 +08:00
Paul Eggert
d448a996d7 ; Spelling fix 2018-12-11 14:17:52 +08:00
Paul Eggert
1ac09583c0 Fix recently-added POP doc glitch
* doc/emacs/rmail.texi (Remote Mailboxes):
POP3 → POP, when talking about POP in general.
2018-12-11 14:17:52 +08:00
Karl Fogel
b3c36c49b5 Revert move of interactive `transpose-regions' to Lisp
This reverts my commit 3a3aa0e056 of 2018-03-18 at 21:43:18 UTC.
I thought consensus had been reached, but it had not: Eli Zaretskii
felt the pre-3a3aa0e056a situation was fine and would not like to
see it changed without at least further discussion.
2018-12-11 14:17:52 +08:00