1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-07 15:21:46 +00:00
Commit Graph

132129 Commits

Author SHA1 Message Date
Glenn Morris
4bee1b8bac Stop keeping multiple doc copies for items defined multiple times
It was always a nuisance to keep all the copies in sync.
* src/doc.c (Fsnarf_documentation): Don't skip entire files.
Instead, skip individual doc strings starting with "SKIP".
* doc/lispref/internals.texi (Writing Emacs Primitives):
Mention this skipping.
* lisp/term/ns-win.el, lisp/term/pc-win.el, src/dosfns.c:
* src/frame.c, src/nsfns.m, src/nsmenu.m, src/nsterm.m:
* src/w16select.c, src/w32fns.c, src/w32menu.c, src/w32select.c:
* src/w32term.c, src/xmenu.c: Remove duplicated doc strings.
* src/xfns.c: Merge in information from doc string duplicates.
2018-02-13 14:22:16 -08:00
Glenn Morris
6c7186de3b Doc tweak for x-use-underline-position-properties
* src/xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
Remove ancient information from doc.
* etc/PROBLEMS: Related edit.
2018-02-13 14:13:53 -08:00
Glenn Morris
98f4e336e8 Merge from origin/emacs-26
333d6f4 (origin/emacs-26) More changes in the Emacs manual
52ca0d1 * lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.
69e8046 Don't signal error in vc-deduce-backend
f568c91 * doc/misc/tramp.texi: Index more user options.
92ca881 Minor change in the Emacs manual
e055a12 NEWS update about 'string-trim'
96b6e24 Clarify TRAMP process-environment interaction (Bug#30419)
4fa467e * lisp/progmodes/grep.el (grep-num-matches-found): New variable.
a22820a Avoid aborts in cm.c due to too small TTY frame
26f6441 Another set of improvements in the Emacs manual
cef3b42 Fix help in mode-line-mode-menu
f8a493c Improve documentation of desktop restoring
10637af Improve the Emacs manual's chapter "Frames"
d924953 Fix unbound mm-uu-entry in mm-uu
cb2487b Improve Emacs user manual in fixit.texi
66e9527 Another minor change in the manual
6a1c03d More minor changes in the Emacs manual
32fb8c4 Avoid printing garbled error message from image.el

Conflicts:
	etc/NEWS
	lisp/image.el
2018-02-13 09:26:20 -08:00
Eli Zaretskii
333d6f4d99 More changes in the Emacs manual
* doc/emacs/search.texi (Regexp Backslash): Say that
symbol-constituent characters are determined by the syntax table.
(Lax Search): Fix example of case-insensitive search.  Fix a
typo.
(Unconditional Replace): Improve wording.
(Regexp Replace): More consistent wording.  Reported by Michael
Albinus <michael.albinus@gmx.de> in emacs-manual-bugs@gnu.org.

* doc/emacs/msdos.texi (Windows HOME): Avoid enumerating all the
Windows versions.  Reported by Isaac Carter
<icarter1391@gmail.com> in emacs-manual-bugs@gnu.org.
2018-02-13 19:12:37 +02:00
Andreas Schwab
52ca0d1a3e * lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors. 2018-02-13 14:05:49 +01:00
Andreas Schwab
69e804669b Don't signal error in vc-deduce-backend
* lisp/vc/vc.el (vc-deduce-backend): Return nil if
vc-responsible-backend signals an error.
2018-02-13 12:18:25 +01:00
Philipp Stephani
1d135af78c Fix NS-related compilation errors.
* src/nsterm.m (ns_set_represented_filename): Remove unused variable
'view'.

* src/nsfns.m (x_implicitly_set_name, syms_of_nsfns): The type of a
variable defined with DEFVAR_BOOL is 'bool', not 'Lisp_Object'.
2018-02-13 09:55:46 +01:00
Michael Albinus
f568c916b6 * doc/misc/tramp.texi: Index more user options. 2018-02-13 08:35:50 +01:00
Eli Zaretskii
92ca881dc8 Minor change in the Emacs manual
* doc/emacs/building.texi (Lisp Libraries): Explain why nil in
load-path is not a good idea.  Suggested by James Yoo
<james.yoo@gmail.com> in emacs-manual-bugs@gnu.org.
2018-02-13 07:59:26 +02:00
Eli Zaretskii
e055a12839 NEWS update about 'string-trim'
* etc/NEWS: Mention changes in string-trim family of functions.
(Bug#30442)
2018-02-13 07:49:30 +02:00
Rami Ylimäki
4b70de228d Expand direct color description in Emacs FAQ
* doc/misc/efaq.texi (Colors on a TTY): Show how to list direct
mode TERM definitions.  (Bug#30429)
2018-02-13 07:33:39 +02:00
Stefan Monnier
82c3be8347 * lisp/gnus/message.el (message-ecomplete-capf): Fix call convention. 2018-02-13 00:17:38 -05:00
Noam Postavsky
0676633e8f * lisp/progmodes/python.el: Bump package version to 0.26. 2018-02-12 21:23:47 -05:00
Paul Eggert
b8c4151808 Work if libpng is in /usr/local (2nd try)
Problem reported by Werner Lemberg in:
https://lists.gnu.org/r/emacs-devel/2018-02/msg00304.html
with a further fix suggested by Glenn Morris in Bug#30431#14.
* configure.ac: Try pkg-config before libpng-config.
Adjust LIBPNG accordingly, and append -lz regardless of
whether it was pkg-config.
2018-02-12 16:41:08 -08:00
Noam Postavsky
96b6e243ec Clarify TRAMP process-environment interaction (Bug#30419)
* doc/misc/tramp.texi (Remote processes): Index the
tramp-remote-process-environment description.  Clarify the effects of
let-binding process-environment and the motivation for that behavior.
2018-02-12 19:25:09 -05:00
Juri Linkov
4fa467eefa * lisp/progmodes/grep.el (grep-num-matches-found): New variable.
(grep-mode-line-matches): New defconst.
(grep-mode-font-lock-keywords): Update the regexp for “Grep finished”
to include the number of matches found.
(grep-process-setup): Set grep-num-matches-found to 0.
(grep-exit-message): New function with body moved from lambda
in grep-process-setup.  Use grep-num-matches-found to return
the number of matches found.
(grep-filter): Increment grep-num-matches-found.
(grep-mode): Set compilation-mode-line-errors to grep-mode-line-matches.
(Bug#30397, bug#14017)
2018-02-12 23:39:28 +02:00
Paul Eggert
3a718ffca0 Finish renaming to internal--daemon-sockname
* doc/lispref/processes.texi (Misc Network): Omit discussion of
internal--daemon-sockname, as non-Emacs code shouldn't rely on it.
* src/process.c (syms_of_process): Rename internal-daemon-sockname
to internal--daemon-sockname.  All uses changed.
2018-02-12 12:57:59 -08:00
Matthew Leach
99cf1bb011 Rename internal--external-sockname and document (Bug#24218)
* lisp/server.el: Rename `internal--external-sockname' to
  `internal-daemon-sockname'.
* src/process.c: Likewise.
* doc/lispref/processes.texi: Document `internal-daemon-sockname'.
2018-02-12 12:57:59 -08:00
Matthew Leach
b9a3cd6899 Update `server-name' :version & document sockname (Bug#24218)
* lisp/server.el: (server-name): Update :version tag.
* etc/NEWS: Document that `server-name' and `server-socket-dir'
  automatically update.
* doc/misc.texi: (Emacs Server): Likewise.
2018-02-12 12:57:58 -08:00
Paul Eggert
d43a724f4e Minor cleanups for server-name fix (Bug#24218)
* lisp/server.el (server--external-socket-initialized): Rename
from server-external-socket-initialised, since it should be
private and Emacs uses American spelling.  All uses changed.
* src/emacs.c, src/lisp.h: Revert previous changes, as the
initialization is now done in src/process.c, which already
includes the relevant files.
* src/process.c (union u_sockaddr): Move decl to top level.
(external_sock_name, Fget_external_sockname): Remove, replacing
with Vinternal__external_sockname.  All uses changed.
(init_process_emacs): Deduce socket name ourselves rather than
have main.c do it.  Use conv_sockaddr_to_lisp instead of doing
it by hand.  Conditionalize it on HAVE_GETSOCKNAME.
2018-02-12 12:57:58 -08:00
Matthew Leach
e1ca0ea872 Fix server-name' and server-socket-dir' for (Bug#24218)
* lisp/server.el: (server-external-socket-initialised): New
(server-name): Compute server name from `get-external-sockname'.
(server-socket-dir): Compute socket dir from
`get-external-sockname'.
(server-start): Don't check for existing server when an
uninitialised external socket has been passed to Emacs.
* src/emacs.c: (main): Obtain socket name via getsockname and pass
to `init_process_emacs'.
* src/lisp.h: (init_process_emacs): Add second parameter.
* src/process.c: (external_sock_name): New.
(get-external-sockname): New.
(init_process_emacs): Set `external_sock_name' to `sockname'
parameter.
2018-02-12 12:57:58 -08:00
Eli Zaretskii
a22820a31c Avoid aborts in cm.c due to too small TTY frame
* src/frame.c (frame_windows_min_size): Limit TTY frames to a
minimum height large enough to allow for a menu bar, the mode
line, one text line and one echo-area line.  This avoids aborts in
cm.c:cmcheckmagic.  (Bug#30320)
2018-02-12 20:02:36 +02:00
Tom Tromey
b3f45140ec Minor fixes to .gdbinit
* src/.gdbinit (xcompiled): Emit a final newline.
(python): Define "long" if not already defined.  Use casts to long,
not int.
2018-02-12 10:54:11 -07:00
Eli Zaretskii
26f64410fd Another set of improvements in the Emacs manual
* doc/emacs/msdos-xtra.texi (MS-DOS Keyboard):
* doc/emacs/msdos.texi (Windows Keyboard):
* doc/emacs/mark.texi (Using Region):
* doc/emacs/frames.texi (Menu Mouse Clicks):
* doc/emacs/macos.texi (Mac / GNUstep Basics): Fix spelling of
keys.  Reported by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.

* doc/emacs/glossary.texi (Glossary): Document that "c.f." is a
misspelling.  Reported by Robert Pluim <rpluim@gmail.com>.
Various minor wording improvements.  Suggested by Toon Claes
<toon@iotcl.com> in emacs-manual-bugs@gnu.org.
More minor changes.  Suggested by Michael Albinus
<michael.albinus@gmx.de> in emacs-manual-bugs@gnu.org.

* doc/emacs/cmdargs.texi (Title X): Improve wording.

* doc/emacs/building.texi (Grep Searching, Compilation): Avoid
passive tense.

* doc/emacs/basic.texi (Moving Point): Move the description of the
bidi-related effects of the arrow keys from here ...
* doc/emacs/mule.texi (Bidirectional Editing): ... to here.
Explain the behavior of arrow keys between paragraphs.
2018-02-12 19:52:48 +02:00
Paul Eggert
1590f8823d Revert libpng /usr/local patch
It broke builds on Arch, Debian, OpenSuSE; see thread containing:
https://lists.gnu.org/r/2018-02/msg00330.html
* configure.ac: Don't try pkg-config; just use libpng-config.
2018-02-12 07:27:01 -08:00
Michael Albinus
cef3b4248c Fix help in mode-line-mode-menu
* lisp/bindings.el (mode-line-mode-menu) [auto-revert-tail-mode]:
Fix help string.
2018-02-12 11:10:17 +01:00
Paul Eggert
e9ca57cfcb Work even if libpng is installed in /usr/local
Problem reported by Werner Lemberg in:
https://lists.gnu.org/r/emacs-devel/2018-02/msg00304.html
* configure.ac: Try pkg-config before libpng-config.
2018-02-11 18:45:06 -08:00
Dmitry Gutov
76a1bd1896 Fix an infloop in python-nav-beginning-of-statement
* lisp/progmodes/python.el (python-nav-beginning-of-statement):
Fix an infloop (bug#30277).
2018-02-12 03:27:52 +03:00
Paul Eggert
37b2f9f356 Merge from pkg-config
* m4/pkg.m4: Copy from pkg-config 0.29.2.
2018-02-11 13:10:41 -08:00
Alan Third
65ebf78909 Fix modifier keys on NS port
* src/nsterm.m (EV_MODIFIERS_OPTION):
(EV_MODIFIERS_CONTROL):
(EV_MODIFIERS_COMMAND): New macros.
(ev_modifiers_helper): New function.
(EV_MODIFIERS2): Use new helper function.
(EmacsView::keyDown): Remove duplicate functionality and handle fn key
correctly.
2018-02-11 20:54:28 +00:00
Alan Third
68d8925077 Tidy up NS keybindings
* lisp/term/ns-win.el: Remove unneeded mappings to super-shifted keys.
2018-02-11 20:54:28 +00:00
Alan Third
f7a853d818 Remove NS special handling of 'frame-title-format'
* lisp/term/ns-win.el (frame-title-format, icon-title-format): Change
default format to just the filename.
* src/nsfns.m (ns-use-proxy-icon): New variable.
(ns_set_name_as_filename): Remove function.
(x_implicitly_set_name): Get rid of special handling of
frame-title-format.
* src/nsterm.h (ns_set_represented_filename): Use new definition.
* src/nsterm.m (ns_set_represented_filename): Move some of the logic
from ns_set_name_as_filename into this function.
2018-02-11 20:54:28 +00:00
Eli Zaretskii
f8a493c800 Improve documentation of desktop restoring
* doc/emacs/misc.texi (Saving Emacs Sessions): Document
'desktop-auto-save-timeout', 'desktop-load-locked-desktop', and
how to restore desktop in daemon mode.  (Bug#30421)
2018-02-11 19:59:00 +02:00
Paul Eggert
5a75cd1f8f * src/xdisp.c (Vmessage_stack): Fix comment to match code. 2018-02-11 09:58:31 -08:00
Eli Zaretskii
10637af91a Improve the Emacs manual's chapter "Frames"
* doc/emacs/frames.texi (Creating Frames): Add a cross-reference
to where frame visibility is described.
(Word and Line Mouse): Clarify wording.
(Scroll Bars): Qualify scroll-bar behavior.  Reported by Dmitry
Gutov <dgutov@yandex.ru> in emacs-manual-bugs@gnu.org.
2018-02-11 18:19:25 +02:00
Michael Albinus
13f4b518d0 Fix handling of file notifications in tramp-gvfs.el
* lisp/net/tramp-archive.el (tramp-archive-dissect-file-name):
Fix docstring.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
Use consequently "gio monitor".
(tramp-gvfs-monitor-process-filter): Rename from
`tramp-gvfs-monitor-file-process-filter'.  Adapt implementation.

* lisp/net/tramp-sh.el (tramp-gio-events): Move this ...
* lisp/net/tramp.el (tramp-gio-events): ... here.
2018-02-11 10:26:57 +01:00
Andreas Schwab
d924953e05 Fix unbound mm-uu-entry in mm-uu
* lisp/gnus/mm-uu.el (mm-uu-dissect): Rename entry to mm-uu-entry.
2018-02-10 23:56:14 +01:00
Juri Linkov
09465bfa06 * lisp/window.el (display-buffer--maybe-at-bottom): New function (bug#30314).
(display-buffer--maybe-pop-up-frame)
(display-buffer--maybe-pop-up-window): New functions created from
display-buffer--maybe-pop-up-frame-or-window.
(display-buffer--maybe-pop-up-frame-or-window): Call
display-buffer--maybe-pop-up-frame or
display-buffer--maybe-pop-up-window.
(display-buffer-at-bottom): Fix parens.

* lisp/minibuffer.el (minibuffer-completion-help): Use
display-buffer--maybe-pop-up-frame instead of let-binding
pop-up-windows to nil.

* lisp/files.el (hack-local-variables-confirm)
(save-buffers-kill-emacs): Use display-buffer--maybe-at-bottom.
2018-02-10 23:55:34 +02:00
Juri Linkov
aaeb101d89 * lisp/comint.el (comint-after-pmark-p): Check if buffer has a live process.
Return nil if not.
(comint-history-isearch-setup): Don't check if process is live.
Always check if shell prompt is empty regardless of the value
of comint-history-isearch. (Bug#30187)
2018-02-10 23:46:13 +02:00
Eli Zaretskii
cb2487b173 Improve Emacs user manual in fixit.texi
* doc/emacs/fixit.texi (Undo): Clarify inaccurate description of
repeated undo.
(Transpose): Describe explicitly what happens at EOL.
(Spelling): Use "spell-checking" consistently.  Clarify wording.
Suggested by Toon Claes <toon@iotcl.com> in
emacs-manual-bugs@gnu.org.
2018-02-10 19:21:42 +02:00
Rami Ylimäki
7f6153d956 Support standard Terminfo direct mode terminals
Latest Terminfo introduces terminal definitions that support direct
color mode.  The "Co"/"colors" capability is set to 0x1000000 on these
terminals and Emacs is already compatible with them.
However, if used Terminfo library hasn't been compiled with 32-bit
value support, "Co"/"colors" is truncated to 0x7fff.  In this case
direct color mode support can be detected from the "RGB" capability
flag.
There are some minor problems if the color count isn't corrected from
0x7fff.  First eight standard colors defined in xterm-standard-colors
are shown correctly.  However, their RGB values match the terminal
settings, not the RGB values defined in xterm-standard-colors.  Bright
versions of these colors are shown incorrectly.  They are interpreted
as pixels #000008 - #000015, which are very dark shades of blue.

* src/term.c (init_tty): Force terminal color count to 0x1000000 if
"RGB" capability is present.
* src/tparam.h: Define prototype for tigetflag.  (Bug#30308)

* doc/misc/efaq.texi (Colors on a TTY): Add information about direct
mode terminals supported by Terminfo.
2018-02-10 13:31:22 +02:00
Eli Zaretskii
66e9527b9a Another minor change in the manual
* doc/emacs/glossary.texi (Glossary): Add popular Latin
abbreviations, such as "e.g.".
2018-02-10 13:23:22 +02:00
Eli Zaretskii
6dcfdb1d4b Avoid infinite recursion in file_directory_p
* src/fileio.c (file_directory_p) [DOS_NT]: Call faccessat on
MS-DOS as well, to avoid infinite recursion introduced by last
change in this function.
2018-02-10 12:45:53 +02:00
Eli Zaretskii
6a1c03d65b More minor changes in the Emacs manual
* doc/emacs/xresources.texi (GTK resources):
* doc/emacs/trouble.texi (Contributing):
* doc/emacs/frames.texi (Fonts): Use HTTPS URLs instead of HTTP.

* doc/emacs/docstyle.texi: Add a few @hyphenation directives,
based on reports in emacs-manual-bugs@gnu.org about incorrect
hyphenation.
2018-02-10 11:19:43 +02:00
Martin Rudalics
479f51a63b Make tooltip code handle scenarios from Bug#30182 and Bug#30399
Move calculation of the mode line default help echo from
note_mode_line_or_margin_highlight to display_mode_lines
(Bug#30182).  Fix cursor type for dragging the mode line.
Normalize FRAME argument of Fx_show_tip before assigning it to
tip_last_frame and handle the transition from GTK+ to Emacs
tooltips and vice-versa in x_hide_tip (Bug#30399).

* src/window.h (struct window): New Lisp member
mode_line_help_echo.
(wset_mode_line_help_echo): New function.
* src/w32fns.c (Fx_show_tip): Normalize the FRAME argument
bevore storing it in tip_last_frame (Bug#30399).
* src/xdisp.c (display_mode_lines): Calculate mode line
default help echo string here and store it in the window's
mode_line_help_echo slot (Bug#30182).
(note_mode_line_or_margin_highlight): Use value in window's
mode_line_help_echo slot as mode line default help echo.  When
the window is resizable show a vertical drag cursor instead of
the vertical scroll bar cursor.
* src/xfns.c (x_hide_tip): Rewrite the GTK+ part to correctly
handle the transition from GTK+ system to Emacs tooltips and
vice-versa (Bug#30399).
(Fx_show_tip): Normalize the FRAME argument bevore storing it
in tip_last_frame (Bug#30399).
2018-02-10 10:18:38 +01:00
Michael Albinus
2c980ea613 Handle "gio monitor" in tramp-sh.el
* lisp/net/tramp-sh.el (tramp-gio-events): New defconst.
(tramp-sh-handle-file-notify-add-watch): Handle "gio monitor" extra.
(tramp-sh-gio-monitor-process-filter)
(tramp-get-remote-gio-monitor): New defuns.
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-get-remote-gvfs-monitor-dir): Do not check for gio anymore.
2018-02-10 09:41:04 +01:00
Eli Zaretskii
32fb8c4c33 Avoid printing garbled error message from image.el
* lisp/image.el (image--get-imagemagick-and-warn): Don't use
apostrophe in the error message, as that message is shown from a
unibyte buffer, and will run afoul of the default style of showing
quote characters.  (Bug#30405)
2018-02-10 09:51:00 +02:00
Glenn Morris
875cb835f0 Merge from origin/emacs-26
0276743 (origin/emacs-26) Doc string fix in latin-alt.el
c9269af Minor improvements in package.texi
898a3e4 Minor improvement in Emacs user manual
8f7d718 * doc/lispref/anti.texi (Antinews): Replace 25.2 with 25.3.
989d0af Improve documentation of mini-window resizing
923e415 More changes in the Emacs manual
565adf2 Clarify that text-quoting-style doesn't affect *Info* (Bug#24...
2dd273b Mention that shell quoting of % on w32 may fail (Bug#19350)
19fa6d5 Fix --no-build-details for w32 and macOS
979944c * doc/lispref/anti.texi (Antinews): Add some more antinews.
c2727e3 Fix crashes when run with --no-build-details
dc08490 More changes for the manual
04c5bd5 Doc fixes for process functions (Bug#30349)
e209034 Fix shr and CSS 4 color maps
5fe8192 Yet another round of improvements in the manual

Conflicts:
	doc/emacs/files.texi
	test/lisp/subr-tests.el
2018-02-09 11:12:48 -08:00
Eli Zaretskii
0276743672 Doc string fix in latin-alt.el
* lisp/leim/quail/latin-alt.el ("dutch"): Doc fix.  Reported by
Robert Pluim <rpluim@gmail.com>.
2018-02-09 18:22:07 +02:00
Eli Zaretskii
c9269af2e3 Minor improvements in package.texi
* doc/emacs/package.texi (Package Menu): Minor wording change.
(Package Installation): Use HTTPS.  A better @xref to GnuPG
manual.  Suggested by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.
2018-02-09 18:18:04 +02:00