aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-03-19 12:34:04 -0700
committerPaul Eggert2017-03-19 12:34:04 -0700
commitda17b70a997d3b1c38d9f3d7d8ab6c7dab273765 (patch)
tree28c6e45159f45912c6bd3d17de7bf71e85272bfe
parent640335361ccc36945836b5e7de0dbbf984b332e8 (diff)
parenta09473261c8b11243e68d84c5dc2448d65a67e77 (diff)
downloademacs-da17b70a997d3b1c38d9f3d7d8ab6c7dab273765.tar.gz
emacs-da17b70a997d3b1c38d9f3d7d8ab6c7dab273765.zip
Merge from origin/emacs-25
a094732 * etc/PROBLEMS: Say that HP-UX cc doesn't work. 1925dd9 Fix duplicate wording in Emacs manual 6de8429 * lisp/paren.el (show-paren--default, show-paren-function): A... 2d671fd Fix wording in Emacs manual a8766a2 Document how to customize input methods 6eb8995 * lisp/net/eww.el (eww-reload): Doc fix. (Bug#25981) aceac95 Fix warning message about native completion (Bug#25984) a314c1f Clarify documentation of 'raise' and 'height' display specs f366f6e Mention problems with GPaste in PROBLEMS 6e788ef ; etc/PROBLEMS: Explain about the python+libedit problem (Bug... 6406618 Fix doc strings in info.el c1ed152 ; * src/keyboard.c (Fposn_at_point): Fix last change. eed9677 Fix doc string of 'posn-at-point' 0d5957e Documentation fix in elisp reference manual
-rw-r--r--doc/emacs/mule.texi9
-rw-r--r--doc/emacs/programs.texi2
-rw-r--r--doc/emacs/text.texi2
-rw-r--r--doc/lispref/display.texi25
-rw-r--r--doc/lispref/macros.texi4
-rw-r--r--etc/PROBLEMS31
-rw-r--r--lisp/info.el6
-rw-r--r--lisp/net/eww.el5
-rw-r--r--lisp/paren.el6
-rw-r--r--lisp/progmodes/python.el2
-rw-r--r--src/keyboard.c6
11 files changed, 71 insertions, 27 deletions
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi
index 76bc945fb27..13407f6f07b 100644
--- a/doc/emacs/mule.texi
+++ b/doc/emacs/mule.texi
@@ -553,6 +553,15 @@ most input methods---some disable this feature). If
553possible characters to type next is displayed in the echo area (but 553possible characters to type next is displayed in the echo area (but
554not when you are in the minibuffer). 554not when you are in the minibuffer).
555 555
556@vindex quail-activate-hook
557@findex quail-translation-keymap
558 You can modify how an input method works by making your changes in a
559function that you add to the hook variable @code{quail-activate-hook}.
560@xref{Hooks}. For example, you can redefine some of the input
561method's keys by defining key bindings in the keymap returned by the
562function @code{quail-translation-keymap}, using @code{define-key}.
563@xref{Init Rebinding}.
564
556 Another facility for typing characters not on your keyboard is by 565 Another facility for typing characters not on your keyboard is by
557using @kbd{C-x 8 @key{RET}} (@code{insert-char}) to insert a single 566using @kbd{C-x 8 @key{RET}} (@code{insert-char}) to insert a single
558character based on its Unicode name or code-point; see @ref{Inserting 567character based on its Unicode name or code-point; see @ref{Inserting
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index 97751aa2fac..1533c7ee8bb 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -327,7 +327,7 @@ as you move around in a buffer.
327@vindex which-func-modes 327@vindex which-func-modes
328 To either enable or disable Which Function mode, use the command 328 To either enable or disable Which Function mode, use the command
329@kbd{M-x which-function-mode}. Which Function mode is a global minor 329@kbd{M-x which-function-mode}. Which Function mode is a global minor
330mode. By default, it takes effect in all major modes major modes that 330mode. By default, it takes effect in all major modes that
331know how to support it (i.e., all the major modes that support 331know how to support it (i.e., all the major modes that support
332Imenu). You can restrict it to a specific list of major modes by 332Imenu). You can restrict it to a specific list of major modes by
333changing the value of the variable @code{which-func-modes} from 333changing the value of the variable @code{which-func-modes} from
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index 3c46049b225..5f02d0b6920 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -296,7 +296,7 @@ mark by one paragraph.
296 296
297 The definition of a paragraph depends on the major mode. In 297 The definition of a paragraph depends on the major mode. In
298Fundamental mode, as well as Text mode and related modes, a paragraph 298Fundamental mode, as well as Text mode and related modes, a paragraph
299is separated each neighboring paragraph another by one or more 299is separated from neighboring paragraphs by one or more
300@dfn{blank lines}---lines that are either empty, or consist solely of 300@dfn{blank lines}---lines that are either empty, or consist solely of
301space, tab and/or formfeed characters. In programming language modes, 301space, tab and/or formfeed characters. In programming language modes,
302paragraphs are usually defined in a similar way, so that you can use 302paragraphs are usually defined in a similar way, so that you can use
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index aa10c1f07f4..57dd16decaf 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -4666,16 +4666,21 @@ a form. Emacs evaluates it to get the new height, with the symbol
4666 4666
4667@item (raise @var{factor}) 4667@item (raise @var{factor})
4668This kind of display specification raises or lowers the text 4668This kind of display specification raises or lowers the text
4669it applies to, relative to the baseline of the line. 4669it applies to, relative to the baseline of the line. It is mainly
4670 4670meant to support display of subscripts and superscripts.
4671@var{factor} must be a number, which is interpreted as a multiple of the 4671
4672height of the affected text. If it is positive, that means to display 4672The @var{factor} must be a number, which is interpreted as a multiple
4673the characters raised. If it is negative, that means to display them 4673of the height of the affected text. If it is positive, that means to
4674lower down. 4674display the characters raised. If it is negative, that means to
4675 4675display them lower down.
4676If the text also has a @code{height} display specification, that does 4676
4677not affect the amount of raising or lowering, which is based on the 4677Note that if the text also has a @code{height} display specification,
4678faces used for the text. 4678which was specified before (i.e.@: to the left of) @code{raise}, the
4679latter will affect the amount of raising or lowering in pixels,
4680because that is based on the height of the text being raised.
4681Therefore, if you want to display a sub- or superscript that is
4682smaller than the normal text height, consider specifying @code{raise}
4683before @code{height}.
4679@end table 4684@end table
4680 4685
4681@c We put all the '@code{(when ...)}' on one line to encourage 4686@c We put all the '@code{(when ...)}' on one line to encourage
diff --git a/doc/lispref/macros.texi b/doc/lispref/macros.texi
index 5638dfaecf8..63a65a81304 100644
--- a/doc/lispref/macros.texi
+++ b/doc/lispref/macros.texi
@@ -255,10 +255,6 @@ of constants and nonconstant parts. To make this easier, use the
255@end example 255@end example
256@end example 256@end example
257 257
258 The body of a macro definition can include a @code{declare} form,
259which specifies additional properties about the macro. @xref{Declare
260Form}.
261
262@node Problems with Macros 258@node Problems with Macros
263@section Common Problems Using Macros 259@section Common Problems Using Macros
264@cindex macro caveats 260@cindex macro caveats
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index cf92db67afc..145dd140093 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -469,6 +469,23 @@ problem by adding this to your .cshrc file:
469 stty -icrnl -onlcr -echo susp ^Z 469 stty -icrnl -onlcr -echo susp ^Z
470 endif 470 endif
471 471
472*** In Inferior Python mode, input is echoed and native completion doesn't work.
473<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25753>
474
475This happens when python uses a libedit based readline module, which
476is the default on macOS. This can be worked around by installing a
477GNU readline based module instead, for example, using setuptools
478
479 sudo easy_install gnureadline
480
481And then rename the system's readline so that it won't be loaded:
482
483 cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
484 mv readline.so readline.so.bak
485
486See <https://pypi.python.org/pypi/gnureadline> for more details on
487installation.
488
472*** Emacs startup on GNU/Linux systems (and possibly other systems) is slow. 489*** Emacs startup on GNU/Linux systems (and possibly other systems) is slow.
473 490
474This can happen if the system is misconfigured and Emacs can't get the 491This can happen if the system is misconfigured and Emacs can't get the
@@ -1044,6 +1061,13 @@ incompatibility of the Gnome terminal with Xterm, which also affects
1044other programs using the Xterm mouse interface. A problem report has 1061other programs using the Xterm mouse interface. A problem report has
1045been filed. 1062been filed.
1046 1063
1064*** Gnome: GPaste clipboard manager causes erratic behavior of 'yank'
1065
1066The symptom is that 'kill-line' followed by 'yank' often (but not
1067always) doesn't insert the whitespace of the killed and yanked line.
1068
1069The solution is to set the GPaste "trim items" option to OFF.
1070
1047*** KDE: When running on KDE, colors or fonts are not as specified for Emacs, 1071*** KDE: When running on KDE, colors or fonts are not as specified for Emacs,
1048or messed up. 1072or messed up.
1049 1073
@@ -1935,6 +1959,13 @@ EOF
1935 1959
1936This is a bug in HPUX; HPUX patch PHKL_16260 is said to fix it. 1960This is a bug in HPUX; HPUX patch PHKL_16260 is said to fix it.
1937 1961
1962*** HP-UX 11.31 cc: Emacs does not build.
1963
1964HP-UX 11.31 cc has bugs in its implementation of flexible array
1965members, a C99 feature that Emacs relies on. To work around the
1966problem, install GCC and use it to build Emacs. For details, see:
1967http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
1968
1938** AIX 1969** AIX
1939 1970
1940*** AIX: Trouble using ptys. 1971*** AIX: Trouble using ptys.
diff --git a/lisp/info.el b/lisp/info.el
index a023080c8da..8dc85f48a43 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -358,17 +358,17 @@ with wrapping around the current Info node."
358 ;; Try to obey obsolete Info-fontify settings. 358 ;; Try to obey obsolete Info-fontify settings.
359 (unless (and (boundp 'Info-fontify) (null Info-fontify)) 359 (unless (and (boundp 'Info-fontify) (null Info-fontify))
360 '(turn-on-font-lock)) 360 '(turn-on-font-lock))
361 "Hooks run when `Info-mode' is called." 361 "Hook run when activating Info Mode."
362 :type 'hook 362 :type 'hook
363 :group 'info) 363 :group 'info)
364 364
365(defcustom Info-selection-hook nil 365(defcustom Info-selection-hook nil
366 "Hooks run when `Info-select-node' is called." 366 "Hook run when an Info node is selected as the current node."
367 :type 'hook 367 :type 'hook
368 :group 'info) 368 :group 'info)
369 369
370(defvar Info-edit-mode-hook nil 370(defvar Info-edit-mode-hook nil
371 "Hooks run when `Info-edit-mode' is called.") 371 "Hook run when `Info-edit-mode' is activated.")
372 372
373(make-obsolete-variable 'Info-edit-mode-hook 373(make-obsolete-variable 'Info-edit-mode-hook
374 "editing Info nodes by hand is not recommended." "24.4") 374 "editing Info nodes by hand is not recommended." "24.4")
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 617c7835021..619c703e01c 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -900,8 +900,9 @@ appears in a <link> or <a> tag."
900 900
901(defun eww-reload (&optional local encode) 901(defun eww-reload (&optional local encode)
902 "Reload the current page. 902 "Reload the current page.
903If LOCAL (the command prefix), don't reload the page from the 903If LOCAL is non-nil (interactively, the command was invoked with
904network, but just re-display the HTML already fetched." 904a prefix argument), don't reload the page from the network, but
905just re-display the HTML already fetched."
905 (interactive "P") 906 (interactive "P")
906 (let ((url (plist-get eww-data :url))) 907 (let ((url (plist-get eww-data :url)))
907 (if local 908 (if local
diff --git a/lisp/paren.el b/lisp/paren.el
index a8ac09cf916..a4d9200c42f 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -176,6 +176,9 @@ if there's no opener/closer near point, or a list of the form
176Where HERE-BEG..HERE-END is expected to be near point.") 176Where HERE-BEG..HERE-END is expected to be near point.")
177 177
178(defun show-paren--default () 178(defun show-paren--default ()
179 "Finds the opener/closer near point and its match.
180
181It is the default value of `show-paren-data-function'."
179 (let* ((temp (show-paren--locate-near-paren)) 182 (let* ((temp (show-paren--locate-near-paren))
180 (dir (car temp)) 183 (dir (car temp))
181 (outside (cdr temp)) 184 (outside (cdr temp))
@@ -228,9 +231,8 @@ Where HERE-BEG..HERE-END is expected to be near point.")
228 (if (= dir 1) pos (1+ pos)) 231 (if (= dir 1) pos (1+ pos))
229 mismatch))))))) 232 mismatch)))))))
230 233
231;; Find the place to show, if there is one,
232;; and show it until input arrives.
233(defun show-paren-function () 234(defun show-paren-function ()
235 "Highlight the parentheses until the next input arrives."
234 (let ((data (and show-paren-mode (funcall show-paren-data-function)))) 236 (let ((data (and show-paren-mode (funcall show-paren-data-function))))
235 (if (not data) 237 (if (not data)
236 (progn 238 (progn
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 58b16794ee0..228a4484616 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3473,7 +3473,7 @@ With argument MSG show activation/deactivation message."
3473 :warning 3473 :warning
3474 (concat 3474 (concat
3475 "Your `python-shell-interpreter' doesn't seem to " 3475 "Your `python-shell-interpreter' doesn't seem to "
3476 "support readline, yet `python-shell-completion-native' " 3476 "support readline, yet `python-shell-completion-native-enable' "
3477 (format "was t and %S is not part of the " 3477 (format "was t and %S is not part of the "
3478 (file-name-nondirectory python-shell-interpreter)) 3478 (file-name-nondirectory python-shell-interpreter))
3479 "`python-shell-completion-native-disabled-interpreters' " 3479 "`python-shell-completion-native-disabled-interpreters' "
diff --git a/src/keyboard.c b/src/keyboard.c
index ec4dee01720..2e0a813bb08 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -10758,13 +10758,13 @@ The `posn-' functions access elements of such lists. */)
10758} 10758}
10759 10759
10760DEFUN ("posn-at-point", Fposn_at_point, Sposn_at_point, 0, 2, 0, 10760DEFUN ("posn-at-point", Fposn_at_point, Sposn_at_point, 0, 2, 0,
10761 doc: /* Return position information for buffer POS in WINDOW. 10761 doc: /* Return position information for buffer position POS in WINDOW.
10762POS defaults to point in WINDOW; WINDOW defaults to the selected window. 10762POS defaults to point in WINDOW; WINDOW defaults to the selected window.
10763 10763
10764Return nil if position is not visible in window. Otherwise, 10764Return nil if POS is not visible in WINDOW. Otherwise,
10765the return value is similar to that returned by `event-start' for 10765the return value is similar to that returned by `event-start' for
10766a mouse click at the upper left corner of the glyph corresponding 10766a mouse click at the upper left corner of the glyph corresponding
10767to the given buffer position: 10767to POS:
10768 (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW) 10768 (WINDOW AREA-OR-POS (X . Y) TIMESTAMP OBJECT POS (COL . ROW)
10769 IMAGE (DX . DY) (WIDTH . HEIGHT)) 10769 IMAGE (DX . DY) (WIDTH . HEIGHT))
10770The `posn-' functions access elements of such lists. */) 10770The `posn-' functions access elements of such lists. */)