]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoMinor improvements in building.texi
Eli Zaretskii [Tue, 20 Mar 2018 09:34:14 +0000 (11:34 +0200)]
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.

6 years ago* lisp/textmodes/bibtex.el (bibtex-mark-entry): activate mark
Alex Branham [Fri, 19 Jan 2018 18:54:00 +0000 (12:54 -0600)]
* lisp/textmodes/bibtex.el (bibtex-mark-entry): activate mark

6 years agoSet gnus-newsgroup-selection in the summary buffer
Andrew G Cohen [Tue, 20 Mar 2018 05:28:21 +0000 (13:28 +0800)]
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.

6 years ago; Spelling fix
Paul Eggert [Tue, 20 Mar 2018 01:55:14 +0000 (18:55 -0700)]
; Spelling fix

6 years ago; Spelling fix
Paul Eggert [Tue, 20 Mar 2018 01:53:21 +0000 (18:53 -0700)]
; Spelling fix

6 years agoImprove port to NetBSD tzalloc
Paul Eggert [Mon, 19 Mar 2018 23:49:09 +0000 (16:49 -0700)]
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.

6 years ago; * test/lisp/info-xref-tests.el: Remove stray line from previous.
Glenn Morris [Mon, 19 Mar 2018 21:08:46 +0000 (17:08 -0400)]
; * test/lisp/info-xref-tests.el: Remove stray line from previous.

6 years ago* test/lisp/info-xref-tests.el (info-xref-test-emacs-manuals): New.
Glenn Morris [Mon, 19 Mar 2018 20:57:28 +0000 (16:57 -0400)]
* test/lisp/info-xref-tests.el (info-xref-test-emacs-manuals): New.

6 years agoTune time zone 0
Paul Eggert [Mon, 19 Mar 2018 20:29:22 +0000 (13:29 -0700)]
Tune time zone 0

* src/editfns.c (tzlookup): Treat time zone 0 like t, for speed.
Suggested by Valery Ushakov (Bug#30738#19).

6 years ago* doc/emacs/building.texi (Starting GUD): Mention 'guiler'.
Eli Zaretskii [Mon, 19 Mar 2018 20:01:55 +0000 (22:01 +0200)]
* doc/emacs/building.texi (Starting GUD): Mention 'guiler'.

6 years agoYet more proofreading of the Emacs manual
Eli Zaretskii [Mon, 19 Mar 2018 19:53:52 +0000 (21:53 +0200)]
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.

6 years agoNormalize and fix some mistakes in NS-related commentary
Charles A. Roelli [Mon, 19 Mar 2018 19:16:19 +0000 (20:16 +0100)]
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:window:, 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.

6 years ago* doc/emacs/rmail.texi: Fix broken link.
Paul Eggert [Mon, 19 Mar 2018 18:44:07 +0000 (11:44 -0700)]
* doc/emacs/rmail.texi: Fix broken link.

6 years ago; Spelling fix
Paul Eggert [Mon, 19 Mar 2018 18:41:40 +0000 (11:41 -0700)]
; Spelling fix

6 years agoFix recently-added POP doc glitch
Paul Eggert [Mon, 19 Mar 2018 18:41:24 +0000 (11:41 -0700)]
Fix recently-added POP doc glitch

* doc/emacs/rmail.texi (Remote Mailboxes):
POP3 → POP, when talking about POP in general.

6 years agoRevert move of interactive `transpose-regions' to Lisp
Karl Fogel [Mon, 19 Mar 2018 17:21:03 +0000 (12:21 -0500)]
Revert move of interactive `transpose-regions' to Lisp

This reverts my commit 3a3aa0e056a 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.

6 years agoFix frame resize flicker on macOS (bug#30699)
Alan Third [Mon, 19 Mar 2018 15:04:40 +0000 (15:04 +0000)]
Fix frame resize flicker on macOS (bug#30699)

* src/nsterm.h (ns_enable_screen_updates): New function.
* src/nsterm.m (ns_enable_screen_updates):
(ns_disable_screen_updates): New functions.
(disable_screen_updates_count): Count of number of times we've called
NSDisableScreenUpdates.
(x_set_window_size): Disable screen updates when not in a live resize
loop.
* src/xdisp.c (redisplay_internal): Reenable screen updates when
redisplay doesn't complete due to a popup.
(unwind_redisplay): Reenable screen updates.

6 years agoMore proofreading of the Emacs manual
Eli Zaretskii [Mon, 19 Mar 2018 15:18:47 +0000 (17:18 +0200)]
More proofreading of the Emacs manual

* doc/emacs/macos.texi (Mac / GNUstep Basics): Fix typos.  Improve
indexing.
(Mac / GNUstep Basics, Mac / GNUstep Customization)
(Mac / GNUstep Events): Improve indexing.

* doc/emacs/rmail.texi (Rmail): Mention Gnus.
(Rmail Basics, Rmail Scrolling): Improve cross-references and
indexing.
(Rmail Motion): Minor improvements.
(Rmail Inbox): Remove outdated text about Babyl format.
(Rmail Files): Formatting changes.  Comment out
set-rmail-inbox-list in the table of commands, as it is commented
out in the text that follows.
(Rmail Output, Rmail Labels, Rmail Reply, Rmail Make Summary):
Minor copyedits.
(Rmail Summary Edit): Document
rmail-summary-scroll-between-messages.
(Rmail Editing): Improve indexing.
(Movemail): Fix typos.
(Remote Mailboxes): Use "POP3" rather than "POP".

6 years agoPrint top time consuming tests if advised
Michael Albinus [Mon, 19 Mar 2018 11:58:45 +0000 (12:58 +0100)]
Print top time consuming tests if advised

* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
New argument HIGH.  Print top-running tests.

* test/Makefile.in (check-doit): Use ${SUMMARIZE_TESTS}.

* test/README: Explain SUMMARIZE_TESTS.

6 years agoFollowup to last change in browse-url.el
Eli Zaretskii [Mon, 19 Mar 2018 09:17:20 +0000 (11:17 +0200)]
Followup to last change in browse-url.el

* lisp/net/browse-url.el (browse-url-emacs): Doc fix to follow up
the previous change.  (Bug#30673)

* etc/NEWS: Mention the change in 'browse-url-emacs'.

6 years agoAllow 'browse-url-emacs' to fetch URL in the selected window
Pierre Téchoueyres [Thu, 1 Mar 2018 21:22:05 +0000 (22:22 +0100)]
Allow 'browse-url-emacs' to fetch URL in the selected window

* lisp/net/browse-url.el (browse-url-emacs): Use same-window argument.
(Bug#30673)

6 years agoFix typo in the Emacs manual's VC chapter
Simen Heggestøyl [Mon, 19 Mar 2018 09:01:01 +0000 (10:01 +0100)]
Fix typo in the Emacs manual's VC chapter

* doc/emacs/maintaining.texi (VC Directory Buffer): Fix a typo.

6 years agoVarious follow-ups for early init file changes
Radon Rosborough [Sat, 3 Mar 2018 05:06:53 +0000 (21:06 -0800)]
Various follow-ups for early init file changes

* doc/emacs/custom.texi (Early Init File): Add more details about
which variables must be set in the early init file rather than the
regular init file.  See
https://lists.nongnu.org/archive/html/bug-gnu-emacs/2018-02/msg00827.html

* lisp/emacs-lisp/package.el (package-enable-at-startup): Update
docstring to note that packages are now made available before loading
the init file, rather than afterwards.  See
https://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00632.html
(package-load-list): Refer to "making available" rather than "loading"
for packages.  See
https://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00298.html

* lisp/startup.el (command-line): Call `custom-reevaluate-setting' on
predefined variables before loading the early init file and before
`package-initialize' is called.  This prevents
`Info-default-directory-list' from being unbound when
`package-initialize' tries to access it during startup.  See
https://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00545.html

* lisp/emacs-lisp/package.el (package-initialize): Issue a warning
if called twice.
See: https://lists.gnu.org/archive/html/emacs-devel/2018-02/msg00626.html
     https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00301.html

6 years agoPass json-readtable-error data as a list (bug#30489)
Basil L. Contovounesios [Fri, 16 Feb 2018 17:11:49 +0000 (17:11 +0000)]
Pass json-readtable-error data as a list (bug#30489)

* lisp/json.el (json-readtable-dispatch): Fix error data.
* test/lisp/json-tests.el (test-json-read): Check error data is a
list.

6 years ago* lisp/url/url-handlers.el: No need for subr-x at run-time.
Glenn Morris [Sun, 18 Mar 2018 22:27:57 +0000 (15:27 -0700)]
* lisp/url/url-handlers.el: No need for subr-x at run-time.

6 years agoMove interactive `transpose-regions' to Lisp
Karl Fogel [Sun, 18 Mar 2018 21:43:18 +0000 (16:43 -0500)]
Move interactive `transpose-regions' to Lisp

Define `transpose-regions' in Lisp, because its complex interactive
spec was ungainly in C, and change the C version to non-interactive
`transpose-regions-internal'.  The Lisp function is just a wrapper
around the C function, which still does all the work.

* lisp/simple.el (transpose-regions): New wrapper function, with
  interactive spec taken from old C `transpose-regions'.

* src/editfns.c (Ftranspose_regions): Rename to...
  (Ftranspose_regions_internal): ...here, and remove interactive spec.

Discussion on Emacs Devel:

  From: Karl Fogel
  To: Emacs Development
Cc: Richard Copley, Charles A. Roelli
  Subject: Re: [Emacs-diffs] master b88e7c8: \
           Make transpose-regions interactive (Bug#30343)
  Date: Fri, 16 Mar 2018 10:23:31 -0500
  Message-ID: <87po44jb7w.fsf@red-bean.com>

  https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00555.html

6 years agoFix compilation warnings in subr-x-tests.el
Nicolas Petton [Sun, 18 Mar 2018 21:21:30 +0000 (22:21 +0100)]
Fix compilation warnings in subr-x-tests.el

* test/lisp/emacs-lisp/subr-x-tests.el (subr-x-test-if-let*-false)
(subr-x-test-when-let*-false): Make tests simpler and compiler warning
free.

6 years ago* lisp/url/url-handlers.el: Require subr-x.
Nicolas Petton [Sun, 18 Mar 2018 19:44:57 +0000 (20:44 +0100)]
* lisp/url/url-handlers.el: Require subr-x.

6 years agoAdd URL handler for file-name-directory (Bug#30444)
Nicolas Petton [Tue, 13 Mar 2018 21:07:08 +0000 (22:07 +0100)]
Add URL handler for file-name-directory  (Bug#30444)

* lisp/url/url-handlers.el (url-handler-file-name-directory): New
function which handles special cases for `file-name-directory' and
URLs.
* test/lisp/url/url-handlers-test.el: New file.  Add tests for
`url-handler-file-name-directory'.

6 years ago* lisp/emacs-lisp/ert.el (ert-run-tests-batch): Print selector.
Michael Albinus [Sun, 18 Mar 2018 09:01:37 +0000 (10:01 +0100)]
* lisp/emacs-lisp/ert.el (ert-run-tests-batch): Print selector.

6 years agoOptimize tramp-tests.el
Michael Albinus [Sat, 17 Mar 2018 14:10:46 +0000 (15:10 +0100)]
Optimize tramp-tests.el

* test/lisp/net/tramp-tests.el (tramp--test-expensive-test):
Make it a defsubst.  Adapt all callees.
(tramp--test-print-duration): New defmacro.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test21-file-links, tramp--test-special-characters):
Run some parts only if expensive tests are enabled.  (Bug#30807)

6 years agoIn frameset save pixel values with frame-resize-pixelwise non-nil (Bug#30141)
Aaron Jensen [Sat, 17 Mar 2018 09:58:17 +0000 (10:58 +0100)]
In frameset save pixel values with frame-resize-pixelwise non-nil  (Bug#30141)

* lisp/frameset.el (frameset--record-relationships): Replace
check for text width/height and replace with check for
frame-resize-pixelwise.  (Bug#30141)

6 years agoPrint test timings unconditionally
Michael Albinus [Sat, 17 Mar 2018 09:25:22 +0000 (10:25 +0100)]
Print test timings unconditionally

* lisp/emacs-lisp/ert.el (ert-batch-print-duration): Remove.
(ert-run-tests-batch): Adapt accordingly.

* test/Makefile.in:
* test/README: Remove TEST_PRINT_TEST_DURATION.

6 years agoExplicitly require cl-lib where needed
Glenn Morris [Sat, 17 Mar 2018 00:41:17 +0000 (20:41 -0400)]
Explicitly require cl-lib where needed

Rather than relying on the byte-compiler happening to use it.
* lisp/completion.el, lisp/ffap.el, lisp/loadhist.el:
* lisp/userlock.el, lisp/emacs-lisp/debug.el, lisp/emacs-lisp/rx.el:
* lisp/emacs-lisp/testcover.el, lisp/mail/rfc2231.el:
* lisp/net/newst-treeview.el, lisp/net/puny.el:
* lisp/net/tramp-archive.el, lisp/net/tramp-gvfs.el:
* lisp/net/tramp-sh.el, lisp/net/tramp-smb.el, lisp/org/org-ctags.el:
* lisp/org/org-macs.el, lisp/progmodes/grep.el:
* lisp/progmodes/perl-mode.el, lisp/progmodes/ruby-mode.el:
* lisp/textmodes/dns-mode.el, lisp/textmodes/mhtml-mode.el:
* lisp/vc/pcvs-parse.el: Explicitly require cl-lib as needed.

6 years agocedet: remove obsolete name args to constructors
Glenn Morris [Sat, 17 Mar 2018 00:34:27 +0000 (20:34 -0400)]
cedet: remove obsolete name args to constructors

* lisp/cedet/ede/proj-archive.el, lisp/cedet/ede/proj-aux.el:
* lisp/cedet/ede/proj-elisp.el, lisp/cedet/ede/proj-info.el:
* lisp/cedet/ede/proj-misc.el, lisp/cedet/ede/proj-obj.el:
* lisp/cedet/ede/proj-shared.el, lisp/cedet/ede/simple.el:
* lisp/cedet/ede/source.el, lisp/cedet/semantic/:
* lisp/cedet/semantic/analyze.el, lisp/cedet/semantic/complete.el:
* lisp/cedet/semantic/db-javascript.el:
* lisp/cedet/semantic/db-ref.el, lisp/cedet/semantic/debug.el:
* lisp/cedet/semantic/ede-grammar.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/scope.el:
* lisp/cedet/semantic/texi.el, lisp/cedet/semantic/bovine/:
* lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/bovine/debug.el, lisp/cedet/srecode/:
* lisp/cedet/srecode/extract.el, lisp/cedet/srecode/map.el:
* lisp/cedet/srecode/srt-mode.el:
Remove obsolete name args to constructors.

6 years agoImprove word motion docs (Bug#30815)
Noam Postavsky [Wed, 14 Mar 2018 02:17:43 +0000 (22:17 -0400)]
Improve word motion docs (Bug#30815)

* doc/lispref/positions.texi (Word Motion): Fix reference to
`char-script-table'.
* lisp/simple.el (backward-word):
* src/syntax.c (forward-word): Mention `char-script-table' and add
link to the 'Word Motion' manual section.

6 years agoQuieten semantic re-compilation when .elc already exist
Glenn Morris [Fri, 16 Mar 2018 17:44:13 +0000 (13:44 -0400)]
Quieten semantic re-compilation when .elc already exist

* lisp/cedet/semantic/db-find.el, lisp/cedet/semantic/util.el:
Add some function declarations.

6 years ago* lisp/gnus/gnus-registry.el: Add missing compile-time requirement.
Glenn Morris [Fri, 16 Mar 2018 17:42:49 +0000 (13:42 -0400)]
* lisp/gnus/gnus-registry.el: Add missing compile-time requirement.

6 years agoFix 'posn-at-point' when line numbers are displayed
Eli Zaretskii [Fri, 16 Mar 2018 17:15:33 +0000 (19:15 +0200)]
Fix 'posn-at-point' when line numbers are displayed

* src/xdisp.c (pos_visible_p): For the leftmost glyph, adjust the X
coordinate due to line-number display.  (Bug#30834)

6 years agoAnother followup to fixing 'window-text-pixel-width'
Eli Zaretskii [Fri, 16 Mar 2018 16:11:07 +0000 (18:11 +0200)]
Another followup to fixing 'window-text-pixel-width'

* src/xdisp.c (Fwindow_text_pixel_size): Adjust the return value
when we stop one buffer position short of TO.  (Bug#30746)

6 years agoOptimize "make check" and "make check-maybe"
Michael Albinus [Fri, 16 Mar 2018 15:19:10 +0000 (16:19 +0100)]
Optimize "make check" and "make check-maybe"

* lisp/emacs-lisp/ert.el (ert-run-tests-batch): Print summary duration.

* test/Makefile.in (TEST_LOAD_EL): Set default to "no" for
targets all, check, and check-maybe.  (Bug#30807)

* test/README: Reflect recent changes in Makefile.

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test99-libarchive-tests): Tag it :unstable.

6 years agoCall enchant-lsmod correctly when Enchant is installed with a suffix
Reuben Thomas [Fri, 16 Mar 2018 10:50:21 +0000 (10:50 +0000)]
Call enchant-lsmod correctly when Enchant is installed with a suffix

* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Cope with a
version suffix on the binary name, so enchant-2 is converted to
enchant-lsmod-2, not enchant-2-lsmod.

6 years agoSuppress warnings about obsolete generics (bug#25556)
Glenn Morris [Fri, 16 Mar 2018 05:57:39 +0000 (01:57 -0400)]
Suppress warnings about obsolete generics (bug#25556)

* lisp/Makefile.in (MAIN_FIRST): New variable.
(compile-main): Put some files at the head of the queue.

6 years agoReplace some obsolete uses of filter-buffer-substring-functions
Glenn Morris [Fri, 16 Mar 2018 00:23:09 +0000 (20:23 -0400)]
Replace some obsolete uses of filter-buffer-substring-functions

* lisp/org/org-agenda.el (org-agenda-mode):
* lisp/org/org-indent.el (org-indent-mode):
Replace filter-buffer-substring-functions, obsolete since 24.4.

6 years ago* lisp/emulation/cua-base.el (cua-paste): Quieten compilation.
Glenn Morris [Fri, 16 Mar 2018 00:20:24 +0000 (20:20 -0400)]
* lisp/emulation/cua-base.el (cua-paste): Quieten compilation.

6 years ago* lisp/progmodes/verilog-mode.el (verilog-mode): Quieten compilation.
Glenn Morris [Thu, 15 Mar 2018 17:29:30 +0000 (13:29 -0400)]
* lisp/progmodes/verilog-mode.el (verilog-mode): Quieten compilation.

6 years agoImprove port to NetBSD tzalloc
Paul Eggert [Thu, 15 Mar 2018 16:35:33 +0000 (09:35 -0700)]
Improve port to NetBSD tzalloc

Problem reported by Valery Ushakov (Bug#30738#13).
* src/editfns.c (tzlookup) [__NetBSD_Version__ < 700000000]:
If tzalloc fails for any reason other than memory exhaustion,
assume it’s because NetBSD 6 does not support tzalloc on
POSIX-format TZ strings, and fall back on tzdb if possible.

6 years ago* test/lisp/ses-tests.el: Quieten compilation.
Glenn Morris [Thu, 15 Mar 2018 16:32:50 +0000 (12:32 -0400)]
* test/lisp/ses-tests.el: Quieten compilation.

6 years ago* lisp/pcomplete.el (pcomplete-here): Move before first reference.
Glenn Morris [Thu, 15 Mar 2018 16:32:22 +0000 (12:32 -0400)]
* lisp/pcomplete.el (pcomplete-here): Move before first reference.

6 years agoImprove robustness in tramp-sh.el
Michael Albinus [Thu, 15 Mar 2018 15:11:14 +0000 (16:11 +0100)]
Improve robustness in tramp-sh.el

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Wrap both echo calls in parentheses, in order to avoid double prompt.

6 years agoSupport variable-unquoting syntax in bat-mode
Eli Zaretskii [Thu, 15 Mar 2018 13:23:01 +0000 (15:23 +0200)]
Support variable-unquoting syntax in bat-mode

* lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Fontify
argument numbers in %~n.  Suggested by Jostein Kjønigsen
<jostein@secure.kjonigsen.net> in emacs-devel.

* test/lisp/progmodes/bat-mode-tests.el
(bat-test-fontification-iter-var-1): Update the test to check also
the %~n construct.

6 years agoFix mouse-set-point when line numbers are displayed
Eli Zaretskii [Thu, 15 Mar 2018 13:13:50 +0000 (15:13 +0200)]
Fix mouse-set-point when line numbers are displayed

* src/xdisp.c (move_it_to): Initialize the line_number_produced_p
flag before iterating on a new line.  (Bug#30818)

6 years agoFix an error in tramp-archive-test42-auto-load
Michael Albinus [Thu, 15 Mar 2018 10:32:50 +0000 (11:32 +0100)]
Fix an error in tramp-archive-test42-auto-load

* test/lisp/net/tramp-archive-tests.el (tramp-archive-test42-auto-load):
Do not use "/ssh::" as test directory, it could harm.  (Bug#30807)

6 years agoReplace "carriage-return" by "carriage return" in manuals
Michael Albinus [Thu, 15 Mar 2018 09:56:08 +0000 (10:56 +0100)]
Replace "carriage-return" by "carriage return" in manuals

* doc/emacs/msdos.texi:
* doc/emacs/mule.texi:
* doc/emacs/screen.texi:
* doc/lispref/nonascii.texi:
* doc/misc/calc.texi: Replace "carriage-return" by "carriage
return".  Suggested by Richard Stallman <rms@gnu.org> in
emacs-manual-bugs@gnu.org.

6 years agoMinor copyedits in mule.texi
Eli Zaretskii [Thu, 15 Mar 2018 06:36:09 +0000 (08:36 +0200)]
Minor copyedits in mule.texi

* doc/emacs/mule.texi (Recognize Coding, Fontsets): Minor changes
in wording.  Suggested by Richard Stallman <rms@gnu.org> in
emacs-manual-bugs@gnu.org.

6 years agoMore hydra.nixos.org logging for unfinished tests
Glenn Morris [Wed, 14 Mar 2018 18:30:39 +0000 (14:30 -0400)]
More hydra.nixos.org logging for unfinished tests

* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
Dump contents of any unfinished log files on hydra.nixos.org.

6 years agoFix problems caused by fontconfig-2.13.0
Eli Zaretskii [Wed, 14 Mar 2018 18:11:16 +0000 (20:11 +0200)]
Fix problems caused by fontconfig-2.13.0

* src/xterm.c (x_term_init): Call fixup_locale after
xg_initialize, to countermand the call to setlocale in some
versions of fontconfig.  (Bug#30788)

6 years ago* lisp/desktop.el: Make use some "new" functionality
Stefan Monnier [Wed, 14 Mar 2018 16:14:01 +0000 (12:14 -0400)]
* lisp/desktop.el: Make use some "new" functionality

(desktop-files-not-to-save, desktop-clear):
Use \` and \' when we don't intend to match newlines.
(desktop-minor-mode-table): Remove auto-fill-function entry.
(desktop-buffer-info): Use :minor-mode-function instead.
(desktop--v2s): Use a closure rather than a backquoted lambda.
(desktop-save): Set 'lexical-binding' in the saved file.
Use 'utf-8-emacs' encoding rather than the old 'emacs-mule'.
(desktop-read): Use 'default-value' to get the global part of a hook.

6 years ago; * test/README: Fix typo
Michael Albinus [Wed, 14 Mar 2018 15:45:45 +0000 (16:45 +0100)]
; * test/README: Fix typo

6 years agoExtend ert to print duration of single tests
Michael Albinus [Wed, 14 Mar 2018 15:21:06 +0000 (16:21 +0100)]
Extend ert to print duration of single tests

* lisp/emacs-lisp/ert.el (ert-test-result): New slot ´duration'.
(ert-run-or-rerun-test): Set it.
(ert-batch-print-duration): New defvar.
(ert-run-tests-batch): Print duration if needed.

* test/Makefile.in (TEST_PRINT_TEST_DURATION): New variable.

* test/README: Explain TEST_PRINT_TEST_DURATION.

6 years agoFix line-wrapping for term.el (Bug#30775)
Noam Postavsky [Mon, 12 Mar 2018 00:47:12 +0000 (20:47 -0400)]
Fix line-wrapping for term.el (Bug#30775)

* lisp/term.el (term-emulate-terminal): Leave line-wrapping state if
point was moved after we entered it.
* test/lisp/term-tests.el (term-line-wrapping-then-motion): New test.

6 years agoTry to stop tramp test hangs on hydra
Glenn Morris [Tue, 13 Mar 2018 22:45:38 +0000 (18:45 -0400)]
Try to stop tramp test hangs on hydra

* test/lisp/net/tramp-tests.el (tramp-test41-asynchronous-requests):
Use fewer processes on hydra.

6 years agoFix some allout.el aliases
Glenn Morris [Tue, 13 Mar 2018 18:48:37 +0000 (14:48 -0400)]
Fix some allout.el aliases

* lisp/allout.el (allout-passphrase-verifier-string)
(allout-passphrase-hint-string): Fix alias.

6 years ago* lisp/progmodes/ada-mode.el (ada-clean-buffer-before-saving): Doc fix.
Glenn Morris [Tue, 13 Mar 2018 18:48:02 +0000 (14:48 -0400)]
* lisp/progmodes/ada-mode.el (ada-clean-buffer-before-saving): Doc fix.

6 years agoDoc fixes re obsolete items
Glenn Morris [Tue, 13 Mar 2018 18:47:41 +0000 (14:47 -0400)]
Doc fixes re obsolete items

* doc/emacs/mini.texi (Completion Commands): Small update re mouse.
* doc/misc/htmlfontify.texi (Customization): Replace obsolete alias.

6 years ago* src/xdisp.c (Fwindow_text_pixel_size): Fix last change.
Eli Zaretskii [Tue, 13 Mar 2018 18:00:54 +0000 (20:00 +0200)]
* src/xdisp.c (Fwindow_text_pixel_size): Fix last change.

6 years agoReplace an obsolete alias in tpu-mapper
Glenn Morris [Tue, 13 Mar 2018 17:49:53 +0000 (13:49 -0400)]
Replace an obsolete alias in tpu-mapper

* lisp/obsolete/tpu-mapper.el (tpu-map-key, tpu-mapper):
Replace obsolete alias.

6 years agoMinor changes in mule.texi
Eli Zaretskii [Tue, 13 Mar 2018 17:40:24 +0000 (19:40 +0200)]
Minor changes in mule.texi

* doc/emacs/mule.texi (International, Coding Systems)
(Bidirectional Editing): Minor wording changes and typo fixes.
Suggested by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.

6 years agoAvoid assertion violation under visual-order-cursor-movement
Eli Zaretskii [Tue, 13 Mar 2018 16:00:23 +0000 (18:00 +0200)]
Avoid assertion violation under visual-order-cursor-movement

* src/xdisp.c (Fmove_point_visually): Don't let point exceed the
BEGV..ZV range.  Signal Beginning of buffer error when there's a
before-string at BEGV.  (Bug#30787)

6 years ago* lisp/subr.el (focus-frame, unfocus-frame): Remove obsolete no-ops.
Glenn Morris [Tue, 13 Mar 2018 06:42:17 +0000 (23:42 -0700)]
* lisp/subr.el (focus-frame, unfocus-frame): Remove obsolete no-ops.

* lisp/vc/ediff-util.el (ediff-recenter):
Don't try focus-frame on Emacs.
; * etc/NEWS: Mention this.
; Comments in subr.el mention VM as a user, however this is untrue since
; 2010-07.  Ref https://bazaar.launchpad.net/~vm/vm/trunk/revision/840
; and 853.

6 years ago* lisp/obsolete/options.el: Remove file.
Glenn Morris [Tue, 13 Mar 2018 06:33:12 +0000 (23:33 -0700)]
* lisp/obsolete/options.el: Remove file.

; etc/NEWS: Mention this.

6 years ago; tiny NEWS fix
Glenn Morris [Tue, 13 Mar 2018 06:28:36 +0000 (23:28 -0700)]
; tiny NEWS fix

6 years agoStop mentioning options.el in doc
Glenn Morris [Tue, 13 Mar 2018 01:09:36 +0000 (21:09 -0400)]
Stop mentioning options.el in doc

* doc/misc/calc.texi (Customizing Embedded Mode):
Remove mentions of the obsolete (since 22.1) options.el.
* lisp/progmodes/meta-mode.el: Comment fix.

6 years ago* lisp/loadhist.el (unload-hook-features-list): Remove obsolete alias.
Glenn Morris [Tue, 13 Mar 2018 00:58:38 +0000 (20:58 -0400)]
* lisp/loadhist.el (unload-hook-features-list): Remove obsolete alias.

6 years ago; * lisp/minibuffer.el (completion-cycle-threshold): Fix last change.
Eli Zaretskii [Mon, 12 Mar 2018 20:08:54 +0000 (22:08 +0200)]
; * lisp/minibuffer.el (completion-cycle-threshold): Fix last change.

6 years ago* lisp/vc/vc-dir.el (vc-dir-unmark): Fix documentation.
Charles A. Roelli [Mon, 12 Mar 2018 19:16:53 +0000 (20:16 +0100)]
* lisp/vc/vc-dir.el (vc-dir-unmark): Fix documentation.

6 years agoMake compiler warn about use of obsolete hooks
Glenn Morris [Mon, 12 Mar 2018 18:29:01 +0000 (11:29 -0700)]
Make compiler warn about use of obsolete hooks

* lisp/emacs-lisp/bytecomp.el (byte-compile-form):
Warn about using obsolete hooks.

6 years agoReplace use of the obsolete write-contents-hooks
Glenn Morris [Mon, 12 Mar 2018 18:25:40 +0000 (11:25 -0700)]
Replace use of the obsolete write-contents-hooks

* lisp/play/gametree.el (gametree-mode):
Replace write-contents-hooks, obsolete since 22.1,
with write-contents-functions.
; * lisp/files.el: Related comment.

6 years agoRevert overenthusiastic procfs fixup
Paul Eggert [Mon, 12 Mar 2018 17:35:25 +0000 (10:35 -0700)]
Revert overenthusiastic procfs fixup

Also, be more systematic in calls to string_to_number.
* src/sysdep.c (list_system_processes) [HAVE_PROCFS]: Allow pids
to be floating-point if they exceed fixnum range.  This partially
reverts my patch 2018-03-09T20:06:05Z!eggert@cs.ucla.edu, which
went too far in fixing string-to-number mishandling.

6 years ago* lisp/minibuffer.el (completion-cycle-threshold): Doc fix.
Eli Zaretskii [Mon, 12 Mar 2018 17:25:10 +0000 (19:25 +0200)]
* lisp/minibuffer.el (completion-cycle-threshold): Doc fix.

6 years agoFix last change in Xref documentation
Eli Zaretskii [Mon, 12 Mar 2018 16:02:15 +0000 (18:02 +0200)]
Fix last change in Xref documentation

* doc/emacs/maintaining.texi (Looking Up Identifiers): More
accurate wording for the description of xref-etags-mode.

6 years agoMore changes in the Emacs manual
Eli Zaretskii [Sun, 11 Mar 2018 18:07:38 +0000 (20:07 +0200)]
More changes in the Emacs manual

* doc/emacs/text.texi (Words, Foldout, Table Conversion): Clarify
text.  Reported by Gijs Hillenius <gijs@hillenius.net> in
emacs-manual-bugs@gnu.org.

* doc/emacs/msdos.texi (Windows Keyboard):
* doc/emacs/msdos-xtra.texi (MS-DOS Keyboard):
* doc/emacs/macos.texi (Mac / GNUstep Basics):
* doc/emacs/glossary.texi (Glossary):
* doc/emacs/custom.texi (Function Keys, Init Syntax):
* doc/emacs/commands.texi (User Input):
* doc/emacs/basic.texi (Arguments): Fix capitalization of "Meta".
* doc/emacs/msdos.texi (Windows Keyboard):
* doc/emacs/dired.texi (Dired Updating):
* doc/emacs/custom.texi (Init Rebinding): Fix misuses of @key.
Suggested by Richard Stallman <rms@gnu.org>.

6 years agoImprove documentation of Xref
Eli Zaretskii [Sun, 11 Mar 2018 17:38:48 +0000 (19:38 +0200)]
Improve documentation of Xref

* doc/emacs/maintaining.texi (Looking Up Identifiers): Document
xref-etags-mode.

6 years agoAllow toggling Grep command abbreviation, and rename related symbols
Charles A. Roelli [Sun, 11 Mar 2018 13:56:00 +0000 (14:56 +0100)]
Allow toggling Grep command abbreviation, and rename related symbols

* lisp/progmodes/grep.el (grep-find-hide): Rename 'grep-find-hide'
to 'grep-find-abbreviate'.
(grep-find-hide-properties): Rename to
'grep-find-abbreviate-properties'.
(grep-mode-font-lock-keywords): Even when 'grep-find-abbreviate'
is nil, fontify the verbose command options with property
'abbreviated-command', so that the toggling command can later find
these parts without refontifying.
(grep-find-show): Rename to 'grep-find-toggle-abbreviation',
simplify the code, and permit toggling the hidden command options.
(grep-mode-map): Add a menu-bar item and new separator for
'grep-find-toggle-abbreviation', and fix the incumbent separators
in the "Grep" menu-bar, of which only one was showing before this
commit, even though two were specified.
* etc/NEWS (grep):
* doc/emacs/building.texi (Grep Searching): Document these
changes, and mention 'grep-find-toggle-abbreviation'.

6 years agoDocument 'transpose-sentences' and 'transpose-paragraphs'
Charles A. Roelli [Sun, 11 Mar 2018 11:25:21 +0000 (12:25 +0100)]
Document 'transpose-sentences' and 'transpose-paragraphs'

* doc/emacs/fixit.texi (Transpose): Add documentation and index
entries for 'transpose-sentences' and 'transpose-paragraphs'
(Bug#30343 in passing).

6 years agoMake transpose-regions interactive (Bug#30343)
Charles A. Roelli [Sun, 11 Mar 2018 10:59:01 +0000 (11:59 +0100)]
Make transpose-regions interactive (Bug#30343)

* doc/emacs/fixit.texi (Transpose): Mention and explain the new
command.
* editfns.c (Ftranspose_regions): Add an interactive calling
specification, and add documentation for it.

6 years agoUnify documentation on 'save-some-buffers'
Charles A. Roelli [Sun, 11 Mar 2018 10:48:08 +0000 (11:48 +0100)]
Unify documentation on 'save-some-buffers'

* doc/emacs/files.texi (Save Commands): Include some more keys
that can be used in 'save-some-buffers'.

* lisp/files.el (save-some-buffers): Include the same keys as
above, and document all missing ones.

6 years ago* lisp/simple.el (mark-whole-buffer): Clarify its behavior.
Charles A. Roelli [Sun, 11 Mar 2018 10:25:01 +0000 (11:25 +0100)]
* lisp/simple.el (mark-whole-buffer): Clarify its behavior.

6 years agoImprove and make use of 'image--get-image'
Charles A. Roelli [Sun, 11 Mar 2018 10:13:47 +0000 (11:13 +0100)]
Improve and make use of 'image--get-image'

* lisp/image.el (image--get-image): Add documentation, and
check overlays for images too (since function 'put-image' from
the same library uses overlays to insert images).
(image-save): Use 'image--get-image'.

6 years agoPort to NetBSD tzalloc
Paul Eggert [Sun, 11 Mar 2018 08:18:34 +0000 (00:18 -0800)]
Port to NetBSD tzalloc

Problem reported by Valery Ushakov (Bug#30738).
* src/editfns.c (xtzalloc): Remove.
(invalid_time_zone_specification): New function.
(tzlookup): Port to NetBSD, where tzalloc can fail when the TZ
string has an invalid value.

6 years agoRemove many items obsolete since Emacs 22.1
Glenn Morris [Sun, 11 Mar 2018 03:15:56 +0000 (19:15 -0800)]
Remove many items obsolete since Emacs 22.1

Emacs 22.1 was five major releases and over decade ago.
In bug reporting statistics, it's been absent for around 5 years.
Ref: https://debbugs.gnu.org/stats/emacs.html
This list can be reviewed before to the next release, but for
now hopefully this motivates any needed external updates.
* lisp/arc-mode.el (archive-mouse-extract):
* lisp/bookmark.el (bookmark-exit-hooks):
* lisp/comint.el (comint-use-prompt-regexp-instead-of-fields):
* lisp/cus-edit.el (custom-face-save-command):
* lisp/descr-text.el (describe-char-after):
* lisp/desktop.el (desktop-enable, desktop-basefilename)
(desktop-buffer-modes-to-save, desktop-buffer-misc-functions)
(desktop-buffer-handlers, desktop-load-default):
* lisp/dired-x.el (dired-omit-files-p):
* lisp/frame.el (new-frame, set-default-font, delete-frame-hook)
(blink-cursor):
* lisp/generic-x.el (generic-define-mswindows-modes)
(generic-define-unix-modes):
* lisp/help.el (describe-project, view-todo):
* lisp/hilit-chg.el (highlight-changes-colours):
* lisp/ibuffer.el (ibuffer-elide-long-columns, ibuffer-hooks)
(ibuffer-mode-hooks):
* lisp/imenu.el (imenu-always-use-completion-buffer-p):
* lisp/isearch.el (isearch-lazy-highlight-cleanup)
(isearch-lazy-highlight-initial-delay)
(isearch-lazy-highlight-interval)
(isearch-lazy-highlight-max-at-a-time)
(isearch-lazy-highlight-cleanup):
* lisp/mwheel.el (mouse-wheel-down-button)
(mouse-wheel-up-button, mouse-wheel-click-button):
* lisp/novice.el (disabled-command-hook):
* lisp/recentf.el (recentf-menu-append-commands-p):
* lisp/savehist.el (savehist-load):
* lisp/speedbar.el (speedbar-ignored-path-expressions)
(speedbar-ignored-path-regexp, speedbar-add-ignored-path-regexp)
(speedbar-line-path, speedbar-buffers-line-path, speedbar-path-line):
* lisp/subr.el (assoc-ignore-case, assoc-ignore-representation)
(x-lost-selection-hooks, x-sent-selection-hooks)
(process-kill-without-query):
* lisp/calendar/icalendar.el (icalendar-convert-diary-to-ical)
(icalendar-extract-ical-from-buffer):
* lisp/emacs-lisp/autoload.el (update-autoloads-from-directories):
* lisp/emacs-lisp/derived.el (derived-mode-class):
* lisp/emacs-lisp/generic.el (generic-font-lock-defaults):
* lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
* lisp/gnus/spam.el (spam-list-of-processors):
* lisp/international/latin1-disp.el (latin1-char-displayable-p):
* lisp/mail/rmail.el (rmail-pop-password, rmail-pop-password-required):
* lisp/net/goto-addr.el (goto-address-at-mouse):
* lisp/net/net-utils.el (ipconfig-program, ipconfig-program-options):
* lisp/obsolete/iswitchb.el (iswitchb-use-fonts):
* lisp/play/dunnet.el (dungeon-mode-map):
* lisp/progmodes/compile.el (compilation-finish-function)
* lisp/progmodes/cperl-mode.el (cperl-vc-header-alist)
* lisp/progmodes/gud.el (tooltip-gud-modes, tooltip-gud-display)
(tooltip-gud-toggle-dereference):
* lisp/progmodes/pascal.el (pascal-outline):
* lisp/progmodes/perl-mode.el (electric-perl-terminator):
* lisp/textmodes/nroff-mode.el (count-text-lines)
(forward-text-line, backward-text-line, electric-nroff-newline)
(electric-nroff-mode):
* lisp/vc/log-edit.el (vc-comment-ring, vc-comment-ring-index)
(vc-previous-comment, vc-next-comment)
(vc-comment-search-reverse, vc-comment-search-forward)
(vc-comment-to-change-log):
* lisp/vc/pcvs-info.el (cvs-display-full-path)
(cvs-fileinfo->full-path):
* lisp/vc/vc.el (vc-diff-switches-list):
Remove items, obsolete since Emacs 22.1.
* lisp/ibuffer.el (ibuffer-cached-elide-long-columns):
Remove internal variable.
(ibuffer-compile-make-eliding-form, ibuffer-check-formats):
(ibuffer-mode): Remove support for ibuffer-elide-long-columns.
* lisp/cedet/semantic/sb.el (semantic-sb-token-jump):
Remove support for speedbar-line-path.
* lisp/emacs-lisp/unsafep.el (assoc-ignore-case):
Stop marking as side-effect-free.
* lisp/gnus/spam.el (spam-group-processor-p):
Remove support for spam-list-of-processors.
* lisp/progmodes/compile.el (define-compilation-mode)
(compilation-handle-exit):
Remove support for compilation-finish-function.
* lisp/progmodes/cperl-mode.el (cperl-mode):
Remove support for cperl-vc-header-alist.
; * lisp/files.el: Comments.
; * etc/NEWS: List removed items.

6 years agoeshell-eval-using-options: Avoid compiler warning differently
Stefan Monnier [Sun, 11 Mar 2018 02:49:22 +0000 (21:49 -0500)]
eshell-eval-using-options: Avoid compiler warning differently

* lisp/eshell/em-unix.el (eshell/time):
* lisp/eshell/em-tramp.el (eshell/sudo):
* lisp/eshell/esh-var.el (eshell/env): Remove artificial use of `args'.

* lisp/eshell/esh-opt.el (eshell-eval-using-options): Silence warning
when `args' is not used by `body-forms'.

6 years agoFix create_process bug breaking eudc-expand-inline
Paul Eggert [Sun, 11 Mar 2018 02:26:01 +0000 (18:26 -0800)]
Fix create_process bug breaking eudc-expand-inline

Problem reported by Thomas Fitzsimmons (Bug#30762).
* src/process.c (create_process) [HAVE_PTYS]:
Call setsid even if !PTY_FLAG.

6 years ago; Revert "; Tracing for eieio-test random failure (Bug#24503)"
Noam Postavsky [Sun, 11 Mar 2018 02:01:24 +0000 (21:01 -0500)]
; Revert "; Tracing for eieio-test random failure (Bug#24503)"

The tracing seems to prevent the bug from happening.

6 years agoLet warning about (:foo) be suppressible (Bug#30499)
Noam Postavsky [Wed, 7 Mar 2018 00:26:32 +0000 (19:26 -0500)]
Let warning about (:foo) be suppressible (Bug#30499)

* lisp/emacs-lisp/bytecomp.el (byte-compile-form): Check
byte-compile-warning-enabled-p before warning about funcalling const
symbol.

6 years agoFix wrong behavior of 'outline-headers-as-kill' command (Bug#30209)
Dmitry Safronov [Mon, 22 Jan 2018 11:19:00 +0000 (12:19 +0100)]
Fix wrong behavior of 'outline-headers-as-kill' command (Bug#30209)

* outline.el (outline-headers-as-kill): Fix heading duplication.

6 years agoClarify that nil doesn't match itself as a cl-case clause (Bug#30749)
Noam Postavsky [Thu, 8 Mar 2018 23:48:39 +0000 (18:48 -0500)]
Clarify that nil doesn't match itself as a cl-case clause (Bug#30749)

* lisp/emacs-lisp/cl-macs.el (cl-case): Mention that the ATOM
=> (ATOM) short form is only for non-nil ATOMs.

6 years agoImprove SVG documentation
Charles A. Roelli [Sat, 10 Mar 2018 18:19:00 +0000 (19:19 +0100)]
Improve SVG documentation

* doc/lispref/display.texi (ImageMagick Images): Remove an
outdated comment that references a fixed bug.
(SVG Images): Fix grammar, and call functions functions (there are
no commands in lisp/svg.el).

6 years agoDocument the "URL" keyword in library headers
Eli Zaretskii [Sat, 10 Mar 2018 11:57:33 +0000 (13:57 +0200)]
Document the "URL" keyword in library headers

* doc/lispref/tips.texi (Library Headers): "URL" is an alias for
"Homepage".  Suggested by Peter Oliver <p.d.oliver@mavit.org.uk>.
(Bug#30571)

6 years agoImprove support for desktop restoration in daemon mode
Eli Zaretskii [Sat, 10 Mar 2018 11:48:49 +0000 (13:48 +0200)]
Improve support for desktop restoration in daemon mode

* lisp/server.el (server-after-make-frame-hook): New hook.
(server-execute): Call it after creating a new frame or before
switching to a buffer shown in a client frame.  (Bug#30421)

* doc/emacs/misc.texi (Saving Emacs Sessions): Adjust advice for
restoring desktop in daemon mode to the new hook.
* doc/lispref/frames.texi (Creating Frames, Standard Hooks):
Document server-after-make-frame-hook.

* etc/NEWS: Mention server-after-make-frame-hook.