]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoFix encoding of characters when using GB18030 fonts
Eli Zaretskii [Sat, 5 May 2018 08:45:37 +0000 (11:45 +0300)]
Fix encoding of characters when using GB18030 fonts

* lisp/international/fontset.el (font-encoding-alist): Fix the
GB18030 entry to encode characters correctly when passing them to
the xfont back-end.  (Bug#31315)  See also
http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg00754.html.

(cherry picked from commit bbe2cadc544e63e9378350621887f8fb9bbcc236)

6 years agoFix C-p and C-n when wrap-prefix is too wide
Eli Zaretskii [Fri, 30 Mar 2018 12:57:57 +0000 (15:57 +0300)]
Fix C-p and C-n when wrap-prefix is too wide

* src/xdisp.c (move_it_in_display_line_to): Avoid looping in
previous/next-line when wrap-prefix is set to a too-wide
stretch of whitespace.  (Bug#30432)

(cherry picked from commit 842b3d7412eaed6b2c9f90c3361abb4932ec0b1d)

6 years agoAvoid redisplay problems with too wide wrap-prefix
Eli Zaretskii [Tue, 20 Mar 2018 17:05:21 +0000 (19:05 +0200)]
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)

(cherry picked from commit 2a1fe08307402d6217d073f8ab7737750d253dd4)

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)

(cherry picked from commit 4a20174d7949028f66b18a92a75d6b74194242a8)

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)

(cherry picked from commit 33cba5405c724566673cf023513bfb1faa963bea)

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)

(cherry picked from commit 5c585b8b994aad4e6844f8eed80bdfbb396e91bf)

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.

(cherry picked from commit 06911714ef66ea81380b1eda75a9f7cfbc9e0b65)

6 years agoFix 'window-text-pixel-size' when display properties are around
Eli Zaretskii [Thu, 8 Mar 2018 13:32:23 +0000 (15:32 +0200)]
Fix 'window-text-pixel-size' when display properties are around

* src/xdisp.c (Fwindow_text_pixel_size): Correct the result when
there's a display property at the  TO position, and the call to
move_it_to overshoots.  (Bug#30746)

(cherry picked from commit 50e2c0fb5180a757d8d533518f68837ffe5909be)

6 years agoFix display of TABs in hscrolled windows with line numbers
Eli Zaretskii [Wed, 7 Mar 2018 18:40:44 +0000 (20:40 +0200)]
Fix display of TABs in hscrolled windows with line numbers

* src/dispextern.h (struct it): New members tab_offset and
line_number_produced_p.
* src/xdisp.c (display_line): Don't set row->x to a negative value
if line numbers are being displayed.  (Bug#30582)
Reset the line_number_produced_p flag before laying out the glyph
row.
(x_produce_glyphs): Use the line_number_produced_p flag to decide
whether to offset the X coordinate due to line-number display.
Use the tab_offset member to restore the original TAB width for
alignment purposes.
(move_it_in_display_line_to): Don't produce line numbers when moving
in hscrolled window to the left of first_visible_x.
(maybe_produce_line_number): Set the line_number_produced_p flag.
(Bug#30584)
* src/term.c (produce_glyphs): Correct TAB width only when
line_number_produced_p flag is set.

(cherry picked from commit 1ac190553886ff20817d3dd218464e2fc6f9e42a)

6 years agoFix wait_reading_process_output wait_proc hang
Matthias Dahl [Fri, 16 Feb 2018 15:57:40 +0000 (17:57 +0200)]
Fix wait_reading_process_output wait_proc hang

* src/process.c (read_process_output): Track bytes read from
a process.
(wait_reading_process_output): If called recursively through
timers and/or process filters via accept-process-output, it is
possible that the output of wait_proc has already been read by
one of those recursive calls, leaving the original call hanging
forever if no further output arrives through that fd and no
timeout has been set.  Fix that by using the process read
accounting to keep track of how many bytes have been read and
use that as a condition to break out of the infinite loop and
return to the caller as well as to calculate the proper return
value (if a wait_proc is given that is).

* src/process.h (struct Lisp_Process): Add nbytes_read to track
bytes read from a process.

(cherry picked from commit 4ba32858d61eee16f17b51aca01c15211a0912f8)

6 years agoMerge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26
Eli Zaretskii [Sat, 2 Jun 2018 09:10:51 +0000 (12:10 +0300)]
Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26

6 years agoFix posn-at-point in Flycheck buffers
Eli Zaretskii [Fri, 19 Jan 2018 14:18:41 +0000 (16:18 +0200)]
Fix posn-at-point in Flycheck buffers

* src/dispnew.c (buffer_posn_from_coords): Improve commentary.

* src/xdisp.c (move_it_in_display_line_to): Don't exit the loop
under truncate-lines if the glyph at TO_CHARPOS was not yet
produced.  This avoids bailing out too early when we are at
TO_CHARPOS, but didn't yet produce glyphs for that buffer
position, because the last call to PRODUCE_GLYPHS at this position
was for an object other than the buffer.  For further details, see
http://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00537.html.

(cherry picked from commit c0154ac7c3423f68d8f3a2e85a756c9759219039)

6 years ago; * etc/PROBLEMS: Fix fvwm version number in last commit
Martin Rudalics [Sat, 2 Jun 2018 09:05:52 +0000 (11:05 +0200)]
; * etc/PROBLEMS: Fix fvwm version number in last commit

6 years ago* etc/PROBLEMS: Document stickyness problem with FVWM (Bug#31650)
Martin Rudalics [Sat, 2 Jun 2018 07:49:13 +0000 (09:49 +0200)]
* etc/PROBLEMS: Document stickyness problem with FVWM (Bug#31650)

6 years agoUpdate Emacs Lisp Intro to match current behavior
Eli Zaretskii [Fri, 1 Jun 2018 14:11:36 +0000 (17:11 +0300)]
Update Emacs Lisp Intro to match current behavior

* doc/lispintro/emacs-lisp-intro.texi (Wrong Type of Argument)
(debug, debug-on-entry, Void Function, Void Variable): Update the
*Backtrace* buffer display to current Emacs.  (Bug#31654)

6 years agoMerge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26
Eli Zaretskii [Fri, 1 Jun 2018 14:10:46 +0000 (17:10 +0300)]
Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26

6 years agoFix previous commit
Robert Pluim [Fri, 1 Jun 2018 13:34:33 +0000 (15:34 +0200)]
Fix previous commit

* doc/emacs/files.texi (Interlocking): Two spaces at end of sentence

6 years agoFix typos in several manuals (Bug#31610)
Ville Skyttä [Sun, 27 May 2018 17:03:10 +0000 (19:03 +0200)]
Fix typos in several manuals (Bug#31610)

Copyright-paperwork-exempt: yes

6 years agoAdd detailed documentation about lock files
Robert Pluim [Fri, 1 Jun 2018 13:05:23 +0000 (15:05 +0200)]
Add detailed documentation about lock files

* doc/emacs/files.texi (Interlocking): Point user at detailed
file locking description in lisp reference manual.  Add index
entry for '.#' to improve disoverability of information about locking.

* doc/lispref/files.texi (File Locks): Describe in detail what
the form of the lock file is.  Add index entry for '.#' to
improve disoverability of information about locking.

* src/filelock.c (create-lockfiles): Add cross reference to
file locking in user manual and to 'lock-buffer'.  Add string
'.#' to help users find the doc string.

6 years agoAdd commentary for subtle aspect of frame.el
Eli Zaretskii [Fri, 1 Jun 2018 12:34:30 +0000 (15:34 +0300)]
Add commentary for subtle aspect of frame.el

* lisp/frame.el: Explain why we use symbol-function when adding
watchers for certain variables that need to trigger redisplay.

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 Jun 2018 10:30:31 +0000 (06:30 -0400)]
; Auto-commit of loaddefs files.

6 years ago; * etc/NEWS: Belated announcement of 2 changes made in Emacs 26.1.
Eli Zaretskii [Fri, 1 Jun 2018 08:37:56 +0000 (11:37 +0300)]
; * etc/NEWS: Belated announcement of 2 changes made in Emacs 26.1.

6 years agoImprove documentation of 'directory-files-and-attributes'
Eli Zaretskii [Fri, 1 Jun 2018 08:27:29 +0000 (11:27 +0300)]
Improve documentation of 'directory-files-and-attributes'

* doc/lispref/files.texi (Contents of Directories): Fix inaccurate
description of the return value of directory-files-and-attributes.

* src/dired.c (Fdirectory_files_and_attributes): Describe the
function's value in more detail.

6 years ago* lisp/gnus/message.el (message-remove-header): Don't remove things
Katsumi Yamaoka [Wed, 30 May 2018 23:30:11 +0000 (23:30 +0000)]
* lisp/gnus/message.el (message-remove-header): Don't remove things
not looking like header (bug#31651).

6 years ago; * etc/NEWS: Add headings for Emacs 26.2
Eli Zaretskii [Wed, 30 May 2018 19:31:52 +0000 (22:31 +0300)]
; * etc/NEWS: Add headings for Emacs 26.2

6 years agoAdapt hexl-mode to native line-number display
Eli Zaretskii [Wed, 30 May 2018 17:30:07 +0000 (20:30 +0300)]
Adapt hexl-mode to native line-number display

* lisp/hexl.el (hexl-mode-ruler): When display-line-numbers is in
effect, adjust offsets and columns to account for the line-number
display.  (Bug#31595)

6 years agoFix example in Tramp manual
Michael Albinus [Wed, 30 May 2018 07:00:04 +0000 (09:00 +0200)]
Fix example in Tramp manual

* doc/misc/tramp.texi (Frequently Asked Questions): Fix wording
for the zsh example.

6 years agoHandle case where Xft is found but not XRender
Robert Pluim [Tue, 29 May 2018 18:32:08 +0000 (20:32 +0200)]
Handle case where Xft is found but not XRender

* configure.ac (XFT_LIBS): Ensure that HAVE_XFT is no if
XRender is not found.  (Bug#31634)

6 years ago* doc/misc/tramp.texi (Frequently Asked Questions): Adapt zsh example.
Michael Albinus [Tue, 29 May 2018 17:45:23 +0000 (19:45 +0200)]
* doc/misc/tramp.texi (Frequently Asked Questions): Adapt zsh example.

6 years agoImprove read-multiple-choice docstring (Bug#31628)
Damien Cassou [Mon, 28 May 2018 15:12:34 +0000 (17:12 +0200)]
Improve read-multiple-choice docstring (Bug#31628)

* lisp/emacs-lisp/rmc.el (read-multiple-choice): Improve docstring.

6 years ago* doc/misc/tramp.texi (All): Use @code instead of @option for user options.
Michael Albinus [Tue, 29 May 2018 10:42:17 +0000 (12:42 +0200)]
* doc/misc/tramp.texi (All): Use @code instead of @option for user options.

6 years agoFix Bug#31605
Michael Albinus [Tue, 29 May 2018 10:28:01 +0000 (12:28 +0200)]
Fix Bug#31605

* doc/misc/tramp.texi (All): Add @vindex entries for
environment variables.
(Remote shell setup): New items `tramp-terminal-type' and
"Determining a Tramp session".
(Frequently Asked Questions): Adapt zsh example.  (Bug#31605)

6 years agoSync with Tramp 2.3.4-pre
Michael Albinus [Tue, 29 May 2018 07:57:48 +0000 (09:57 +0200)]
Sync with Tramp 2.3.4-pre

* doc/misc/trampver.texi: Change version to "2.3.4-pre

* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies, tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp, tramp-copy-failed-regexp)
(tramp-process-alive-regexp, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain, tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override, tramp-use-ssh-controlmaster-options)
(tramp-remote-path, tramp-remote-process-environment)
(tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch):
Dont't require 'tramp.  (Bug#31558)

* lisp/net/tramp.el (tramp-accept-process-output):
* lisp/net/tramp-adb.el (tramp-adb-handle-start-file-process):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-sh-handle-start-file-process):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-file-acl, tramp-smb-handle-process-file)
(tramp-smb-handle-set-file-acl)
(tramp-smb-handle-start-file-process): Suppress timers.

* lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
* lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
Write proper message.

* lisp/net/tramp-cmds.el (tramp-change-syntax):
Use `customize-set-variable'.

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Ensure proper EOL handling for Darwin.
(tramp-find-inline-compress): Improve command quoting for w32.
Reported by Chris Zheng <chriszheng99@gmail.com>.
(tramp-open-connection-setup-interactive-shell): Wrap both echo
calls in parentheses, in order to avoid double prompt.

* lisp/net/tramp-smb.el (tramp-smb-errors):
Add "NT_STATUS_RESOURCE_NAME_NOT_FOUND".

* lisp/net/tramp.el (tramp-default-user-alist)
(tramp-default-host-alist): Fix docstring.
(tramp-dissect-file-name): Adapt docstring.  (Bug#30904)
(tramp-make-tramp-file-name): Check, that method is
not empty.  (Bug#30038)
(tramp-message-show-message): Change default.

* lisp/net/trampver.el: Change version to "2.3.4-pre".

* test/lisp/net/tramp-tests.el (ert-x): Require it.
(tramp-test10-write-region): Extend test.
(tramp--test-emacs27-p, tramp--test-windows-nt): New defuns.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test21-file-links, tramp-test24-file-acl)
(tramp-test25-file-selinux, tramp--test-check-files): Use them.
(tramp-test21-file-links): Do not call `make-symbolic-link' on w32.
Fix file name quoting test.
(tramp-test32-environment-variables-and-port-numbers):
Adapt check for systems which do not support "echo -n".  (Bug#29712)
(tramp-test36-find-backup-file-name): Call also
`convert-standard-filename' due to w32.
(tramp-test41-asynchronous-requests):
Use $REMOTE_PARALLEL_PROCESSES.  Flush cache prior file operations.
(tramp-test42-auto-load, tramp-test42-delay-load)
(tramp-test42-recursive-load, tramp-test42-remote-load-path):
Quote command due to w32.

6 years ago; ChangeLog.3: Remove stray phrase.
Noam Postavsky [Mon, 28 May 2018 02:13:38 +0000 (22:13 -0400)]
; ChangeLog.3: Remove stray phrase.

6 years agoBump Emacs version to 26.1.50
Eli Zaretskii [Mon, 28 May 2018 16:09:55 +0000 (19:09 +0300)]
Bump Emacs version to 26.1.50

* msdos/sed2v2.inp:
* nt/README.W32:
* configure.ac:
* README: Bump Emacs version to 26.1.50.

6 years agoMention pcase as a fifth conditional form
Thien-Thi Nguyen [Sat, 26 May 2018 07:44:10 +0000 (09:44 +0200)]
Mention pcase as a fifth conditional form

* doc/lispref/control.texi (Conditionals): ...here,
in first para, w/ xref to "Pattern-Matching Conditional".

6 years agoOverhaul pcase documentation
Thien-Thi Nguyen [Mon, 21 May 2018 16:16:35 +0000 (18:16 +0200)]
Overhaul pcase documentation

Suggested by Drew Adams (Bug#31311).

* doc/lispref/control.texi (Control Structures):
Add "Pattern-Matching Conditional" to menu, before "Iteration".
(Conditionals): Delete menu.
(Pattern matching case statement): Delete node/subsection,
by actually moving, renaming, and overhauling it to...
(Pattern-Matching Conditional): ...new node/section.
(pcase Macro): New node/subsection.
(Extending pcase): Likewise.
(Backquote Patterns): Likewise.
* doc/lispref/elisp.texi (Top) In @detailmenu, add
"Pattern-Matching Conditional" under "Control Structures"
section and delete "Conditionals" section.
* lisp/emacs-lisp/pcase.el (pcase): Rewrite docstring.
(pcase-defmacro \` (qpat) ...): Likewise.

6 years agoUse EXPVAL in docstrings of patterns defined using pcase-defmacro
Thien-Thi Nguyen [Mon, 21 May 2018 15:16:31 +0000 (17:16 +0200)]
Use EXPVAL in docstrings of patterns defined using pcase-defmacro

Suggested by Drew Adams (Bug#31311).

* lisp/emacs-lisp/cl-macs.el (cl-struct): ...here.
* lisp/emacs-lisp/eieio.el (eieio): Likewise.
* lisp/emacs-lisp/radix-tree.el (radix-tree-leaf): Likewise.
* lisp/emacs-lisp/rx.el (rx): Likewise.

6 years agoIntroduce EXPVAL for pcase, pcase-defmacro docstrings
Thien-Thi Nguyen [Mon, 21 May 2018 15:11:55 +0000 (17:11 +0200)]
Introduce EXPVAL for pcase, pcase-defmacro docstrings

Suggested by Drew Adams (Bug#31311).

* lisp/emacs-lisp/pcase.el (pcase): Use EXPVAL in
docstring to stand for the result of evaluating EXP.
(pcase-defmacro): Add (fn ...) form in docstring
that includes [DOC], and the EXPVAL convention.

6 years agoEnsure pcase doc shows `QPAT first among extensions
Thien-Thi Nguyen [Mon, 21 May 2018 14:57:49 +0000 (16:57 +0200)]
Ensure pcase doc shows `QPAT first among extensions

* lisp/emacs-lisp/pcase.el (pcase--make-docstring):
Split extensions display into two phases, collection
and display, separated by a reordering step that
ensures backquote is the first.

6 years ago; * lisp/ldefs-boot.el: Update. emacs-26.1
Nicolas Petton [Fri, 25 May 2018 16:38:07 +0000 (18:38 +0200)]
; * lisp/ldefs-boot.el: Update.

6 years ago* etc/HISTORY: Update for Emacs 26.1 release.
Nicolas Petton [Fri, 25 May 2018 15:28:58 +0000 (17:28 +0200)]
* etc/HISTORY: Update for Emacs 26.1 release.

6 years ago* etc/AUTHORS: Update.
Nicolas Petton [Fri, 25 May 2018 15:19:16 +0000 (17:19 +0200)]
* etc/AUTHORS: Update.

6 years ago; * ChangeLog.3: Update.
Nicolas Petton [Fri, 25 May 2018 15:19:11 +0000 (17:19 +0200)]
; * ChangeLog.3: Update.

6 years ago; * admin/authors.el: Update.
Nicolas Petton [Fri, 25 May 2018 13:38:29 +0000 (15:38 +0200)]
; * admin/authors.el: Update.

6 years agoNote caveat for backward regexp searching in docstring (Bug#31584)
Noam Postavsky [Thu, 24 May 2018 23:49:11 +0000 (19:49 -0400)]
Note caveat for backward regexp searching in docstring (Bug#31584)

* src/search.c (Fre_search_backward): Emphasize that backwards
searches may give shorter than expected matches.
* doc/lispref/searching.texi (Regexp Search): Add an anchor for
re-search-backward to reference.

6 years agoUpdate backtrace in Emacs Lisp Intro
Eli Zaretskii [Fri, 25 May 2018 08:35:42 +0000 (11:35 +0300)]
Update backtrace in Emacs Lisp Intro

* doc/lispintro/emacs-lisp-intro.texi (Making Errors): Update the
backtrace to match Emacs 26.  (Bug#31589)

6 years agoMove window-point in bibtex-search-entry
Roland Winkler [Thu, 24 May 2018 18:38:48 +0000 (13:38 -0500)]
Move window-point in bibtex-search-entry

* lisp/textmodes/bibtex.el (bibtex-search-entry): Move window-point
to record found.

6 years agoMore fixes of Intro to Emacs Lisp
Eli Zaretskii [Thu, 24 May 2018 17:37:15 +0000 (20:37 +0300)]
More fixes of Intro to Emacs Lisp

* doc/lispintro/emacs-lisp-intro.texi (Finding More): Tell the
reader how to invoke 'M-.' without a tags table.  Add a
cross-reference to the Emacs manual for when a tags table does
need to be created.
(append save-excursion): Rephrase a confusing sentence.
(Bug#31578)

6 years ago; * doc/emacs/misc.texi (FFAP): Fix a typo. (Bug#31580)
Eli Zaretskii [Thu, 24 May 2018 16:55:40 +0000 (19:55 +0300)]
; * doc/emacs/misc.texi (FFAP): Fix a typo.  (Bug#31580)

6 years agoAdd a footnote to Emacs Lisp Intro
Eli Zaretskii [Thu, 24 May 2018 16:49:34 +0000 (19:49 +0300)]
Add a footnote to Emacs Lisp Intro

* doc/lispintro/emacs-lisp-intro.texi (Run a Program): Describe
the detailed output of integer value evaluation in a footnote, to
prevent confusion.  (Bug#31579)

6 years ago; * doc/emacs/msdos.texi (ls in Lisp): Fix a typo. (Bug#31575)
Eli Zaretskii [Thu, 24 May 2018 16:32:40 +0000 (19:32 +0300)]
; * doc/emacs/msdos.texi (ls in Lisp): Fix a typo.  (Bug#31575)

6 years ago* lisp/help.el (with-help-window): Doc fix. (Bug#31574)
Eli Zaretskii [Thu, 24 May 2018 16:30:33 +0000 (19:30 +0300)]
* lisp/help.el (with-help-window): Doc fix.  (Bug#31574)

6 years agoFix some cross-references in emacs-lisp-intro.texi
Eli Zaretskii [Wed, 23 May 2018 16:31:38 +0000 (19:31 +0300)]
Fix some cross-references in emacs-lisp-intro.texi

* doc/lispintro/emacs-lisp-intro.texi (List Processing)
(Determining the Element, graph-body-print): Fix cross-references
to subsections that don't exist in the printed version of the
manual.  (Bug#31567)

6 years agoMinor copyedits in Emacs manual in macos.texi
Eli Zaretskii [Wed, 23 May 2018 16:02:00 +0000 (19:02 +0300)]
Minor copyedits in Emacs manual in macos.texi

* doc/emacs/macos.texi (Mac / GNUstep Basics)
(Mac / GNUstep Events): Fix markup and capitalization.
(Bug#31568)

6 years agoClarify when to use advice-add vs add-function
Noam Postavsky [Wed, 23 May 2018 00:08:01 +0000 (20:08 -0400)]
Clarify when to use advice-add vs add-function

* lisp/emacs-lisp/nadvice.el (add-function): Note in docstring that
advice-add should be used for named functions.

6 years agoMinor formatting tweak in the Emacs manual
Eli Zaretskii [Tue, 22 May 2018 17:27:28 +0000 (20:27 +0300)]
Minor formatting tweak in the Emacs manual

* doc/emacs/custom.texi (Directory Variables): Don't have 2
footnotes back to back, it looks bad in HTML.  (Bug#31555)

6 years agoUpdate comments in Intro to Emacs Lisp
Eli Zaretskii [Tue, 22 May 2018 17:03:09 +0000 (20:03 +0300)]
Update comments in Intro to Emacs Lisp

* doc/lispintro/emacs-lisp-intro.texi: Explain in the comments
what are roman page numbers in Preface about.  (Bug#31541)

6 years ago; * doc/os.texi (Batch Mode): use = after --eval
Philipp Stephani [Tue, 22 May 2018 13:33:22 +0000 (15:33 +0200)]
; * doc/os.texi (Batch Mode): use = after --eval

6 years ago* etc/NEWS: Mention change in `edebug-prin1-to-string'.
Noam Postavsky [Mon, 21 May 2018 20:48:18 +0000 (16:48 -0400)]
* etc/NEWS: Mention change in `edebug-prin1-to-string'.

6 years ago; * doc/lispref/hash.texi (Defining Hash): Fix typos.
Eli Zaretskii [Mon, 21 May 2018 18:08:39 +0000 (21:08 +0300)]
; * doc/lispref/hash.texi (Defining Hash): Fix typos.

6 years agoAnother attempt to fix sql.el
Eli Zaretskii [Mon, 21 May 2018 15:43:03 +0000 (18:43 +0300)]
Another attempt to fix sql.el

* lisp/progmodes/sql.el (sql-product-interactive): Fix calculation
of the SQL buffer name.  (Bug#31446)

6 years agoUpdate binding of 'M-.' in Intro to Emacs Lisp
Eli Zaretskii [Mon, 21 May 2018 15:01:57 +0000 (18:01 +0300)]
Update binding of 'M-.' in Intro to Emacs Lisp

* doc/lispintro/emacs-lisp-intro.texi (On Reading this Text)
(Finding More, Buffer Related Review, Buffer Exercises)
(Find a File, Conclusion): 'M-.' is now bound to
'xref-find-definitions'.  (Bug#31542)

6 years agoFix a typo in last change in sql.el
Eli Zaretskii [Mon, 21 May 2018 02:33:57 +0000 (05:33 +0300)]
Fix a typo in last change in sql.el

* lisp/progmodes/sql.el (sql-product-interactive): Use 'null',
not 'zerop'.  (Bug#31446)

6 years agoFix capitalization of mail headers
Eli Zaretskii [Sun, 20 May 2018 09:08:03 +0000 (12:08 +0300)]
Fix capitalization of mail headers

* doc/emacs/sending.texi (Mail Format, Mail Headers)
(Mail Aliases, Header Editing): Use consistent capitalization of
CC, BCC, and FCC.  (Bug#31532)

6 years agoFix buffer names in sql.el
Eli Zaretskii [Sun, 20 May 2018 07:25:26 +0000 (10:25 +0300)]
Fix buffer names in sql.el

* lisp/progmodes/sql.el (sql-product-interactive): Fix the way the
buffer name is determined by prefix arg.  (Bug#31446)

6 years agoMinor fixes in the Emacs manual
Eli Zaretskii [Sun, 20 May 2018 07:11:05 +0000 (10:11 +0300)]
Minor fixes in the Emacs manual

* doc/emacs/misc.texi (Gnus Group Buffer): Fix a typo.  (Bug#31534)
(Single Shell): Rephrase an unclear sentence.  (Bug#31535)
(Remote Host): Use @command where appropriate.  (Bug#31536)

6 years agoFix a typo in rmail.texi
Eli Zaretskii [Sat, 19 May 2018 20:08:38 +0000 (23:08 +0300)]
Fix a typo in rmail.texi

* doc/emacs/rmail.texi (Rmail Summary Edit): Add markup to 'nil'.
(Bug#31533)

6 years ago* etc/PROBLEMS: Document Bug#31305.
Paul Eggert [Fri, 18 May 2018 16:24:04 +0000 (09:24 -0700)]
* etc/PROBLEMS: Document Bug#31305.

6 years ago(gnus-blocked-images): Clarify privacy implications
Lars Ingebrigtsen [Fri, 18 May 2018 14:05:02 +0000 (16:05 +0200)]
(gnus-blocked-images): Clarify privacy implications

* lisp/gnus/gnus-art.el (gnus-blocked-images): Clarify the privacy
implication of altering the value of this variable.

(cherry picked from commit f4d9fd3dd45f767eca33fbf1beee40da790fa74e)

6 years agoFix a typo in describing input methods
Eli Zaretskii [Fri, 18 May 2018 07:58:11 +0000 (10:58 +0300)]
Fix a typo in describing input methods

* lisp/help-mode.el (help-make-xrefs): Fix a typo.  (Bug#31448)

6 years ago; Add a comment to emacs-lisp-intro.texi
Eli Zaretskii [Fri, 18 May 2018 06:31:24 +0000 (09:31 +0300)]
; Add a comment to emacs-lisp-intro.texi

* doc/lispintro/emacs-lisp-intro.texi: Add a comment with the
rationale for the manual's seemingly too large size.

6 years agoClarify the mode-line indicators in CC Mode
Eli Zaretskii [Mon, 14 May 2018 16:28:06 +0000 (19:28 +0300)]
Clarify the mode-line indicators in CC Mode

* doc/emacs/programs.texi (Electric C): Explain '*' and '/' in the
CC Mode mode-line.  (Bug31445)

6 years agoFix filesystem littering by Flymake's legacy backend
João Távora [Fri, 11 May 2018 22:28:40 +0000 (23:28 +0100)]
Fix filesystem littering by Flymake's legacy backend

The Flymake legacy "proc" backend, which is active by default will try
to syntax-check foo.c/foo.cpp and many other types of files, but on
failing to find a suitable Makefile target, will fail.  There's
nothing wrong with that except that it used to leave behind the
foo_flymake.c and foo_flymake.cpp auxiliary files behind, littering
the filesystem.

* lisp/progmodes/flymake-proc.el (flymake-proc-legacy-flymake):
Call init-function inside of the unwind-protect.

6 years ago; Fix a typo in the Emacs manual
Eli Zaretskii [Sat, 12 May 2018 09:09:05 +0000 (12:09 +0300)]
; Fix a typo in the Emacs manual

* doc/emacs/fixit.texi (Transpose): Fix a typo.  Reported by
Takesi Ayanokoji <ayanokoji.takesi@gmail.com>.

6 years ago* doc/emacs/help.texi: Fix paren typo.
Paul Eggert [Fri, 11 May 2018 23:09:14 +0000 (16:09 -0700)]
* doc/emacs/help.texi: Fix paren typo.

6 years agoMore minor changes in shell-related nodes of Emacs manual
Eli Zaretskii [Fri, 11 May 2018 09:39:52 +0000 (12:39 +0300)]
More minor changes in shell-related nodes of Emacs manual

* doc/emacs/misc.texi (Interactive Shell): Clarify how the window
that displays "*shell*" is selected.
(Shell Prompts): Fix a typo.  Reported by Jorge
<jorge+list@disroot.org> in emacs-manual-bugs.

6 years agoFix inaccuracies in "Shell Ring" node of Emacs manual
Eli Zaretskii [Fri, 11 May 2018 09:32:31 +0000 (12:32 +0300)]
Fix inaccuracies in "Shell Ring" node of Emacs manual

* doc/emacs/misc.texi (Shell Ring): Don't mention 'M-s' and don't
insist on Shell history commands being "jsut like" similar
commands that operate on minibuffer history.  Reported by Jorge
<jorge+list@disroot.org> in emacs-manual-bugs.

6 years agoImprove documentation of kmacro commands and variables.
Eli Zaretskii [Fri, 11 May 2018 09:11:14 +0000 (12:11 +0300)]
Improve documentation of kmacro commands and variables.

* lisp/kmacro.el (kmacro-start-macro-or-insert-counter)
(kmacro-counter, kmacro-set-format, kmacro-set-counter)
(kmacro-add-counter, kmacro-counter-format)
(kmacro-insert-counter): Clarify and improve the doc strings.
(Bug#31243)

6 years ago* doc/man/emacs.1.in: Document --fg-daemon and --bg-daemon.
Noam Postavsky [Fri, 11 May 2018 02:47:04 +0000 (22:47 -0400)]
* doc/man/emacs.1.in: Document --fg-daemon and --bg-daemon.

6 years agoDon't check non-X frames for z order (Bug#31373)
Noam Postavsky [Sun, 6 May 2018 14:07:25 +0000 (10:07 -0400)]
Don't check non-X frames for z order (Bug#31373)

* src/xfns.c (x_frame_list_z_order): Only use frames with
`output_method' set to `output_x_window'.

6 years agoCheck NSWindow is actually a frame
Alan Third [Sun, 6 May 2018 20:49:31 +0000 (21:49 +0100)]
Check NSWindow is actually a frame

* src/nsfns.m (Fns_frame_list_z_order): Check NSWindow is an instance
of EmacsView before treating it as one.

6 years agoFix gud-statement for pdb
Xu Chunyang [Sun, 6 May 2018 19:46:04 +0000 (22:46 +0300)]
Fix gud-statement for pdb

* lisp/progmodes/gud.el (pdb): Fix the gud-print implementation.
(Bug#31363)

6 years ago; * msdos/INSTALL: Add info about GCC versions.
Eli Zaretskii [Fri, 4 May 2018 15:12:32 +0000 (18:12 +0300)]
; * msdos/INSTALL: Add info about GCC versions.

6 years agoDocument 'custom-group'
Eli Zaretskii [Fri, 4 May 2018 15:00:02 +0000 (18:00 +0300)]
Document 'custom-group'

* doc/lispref/customize.texi (Group Definitions): Document the
'custom-group' property.

6 years agoA minor addition to etc/DEBUG
Eli Zaretskii [Fri, 4 May 2018 14:43:29 +0000 (17:43 +0300)]
A minor addition to etc/DEBUG

* etc/DEBUG: Add a note for macOS users who get error messages
when trying to run GDB.

6 years agoAvoid errors in ispell.el when Enchant returns empty extra chars
Daniel Pittman [Fri, 4 May 2018 14:37:10 +0000 (17:37 +0300)]
Avoid errors in ispell.el when Enchant returns empty extra chars

* lisp/textmodes/ispell.el (ispell--get-extra-word-characters):
Handle the case of empty extra characters returned by the
Enchant '-lsmod' command. (Bug#31344)

Copyright-paperwork-exempt: yes

6 years agoMake 'ispell-initialize-spellchecker-hook' work again
Eli Zaretskii [Fri, 4 May 2018 14:25:33 +0000 (17:25 +0300)]
Make 'ispell-initialize-spellchecker-hook' work again

* lisp/textmodes/ispell.el (ispell-base-dicts-override-alist):
Defvar it to allow dynamic binding.  (Bug#31341)

6 years agoHandle selected_window change in prepare_menu_bars (Bug#31312)
Noam Postavsky [Fri, 4 May 2018 00:54:25 +0000 (20:54 -0400)]
Handle selected_window change in prepare_menu_bars (Bug#31312)

* src/xdisp.c (redisplay_internal): Check selected_window after
calling prepare_menu_bars, since it can call lisp hooks.

6 years ago; * INSTALL: Fix Emacs version number. (Bug#31358)
Eli Zaretskii [Thu, 3 May 2018 18:19:07 +0000 (21:19 +0300)]
; * INSTALL: Fix Emacs version number.  (Bug#31358)

6 years agoFix report-emacs-bug via mailclient on MS-Windows
Eli Zaretskii [Thu, 3 May 2018 18:04:17 +0000 (21:04 +0300)]
Fix report-emacs-bug via mailclient on MS-Windows

* lisp/net/browse-url.el (browse-url-default-windows-browser):
On MS-Windows, call url-unhex-string only for file:// URLs.
(Bug#31351)

6 years agoPort collation tests to glibc 2.27
Paul Eggert [Wed, 2 May 2018 18:14:07 +0000 (11:14 -0700)]
Port collation tests to glibc 2.27

* test/src/fns-tests.el (fns-tests-collate-strings)
(fns-tests-collate-sort): Don’t make unportable assumptions
about how en_US.UTF-8 collation works.  These assumptions
are not true on Fedora 28, which ships with glibc 2.27.

6 years agoPort --enable-gcc-warnings to GCC 8
Paul Eggert [Tue, 1 May 2018 00:17:11 +0000 (17:17 -0700)]
Port --enable-gcc-warnings to GCC 8

Backport from master.
* lib-src/emacsclient.c (fail):
Do not dereference a null pointer.
* src/frame.c (delete_frame):
Add a decl with UNINIT to work around GCC bug 85563.
* src/menu.h (finish_menu_items):
Do not use attribute const.
* src/regex.c (analyze_first): Use FALLTHROUGH, not a comment.

6 years agoAdvise CFLAGS= operand, not in environment, when configuring
Paul Eggert [Mon, 30 Apr 2018 17:13:40 +0000 (10:13 -0700)]
Advise CFLAGS= operand, not in environment, when configuring

Backport from master.

6 years ago; * etc/DEBUG: Minor clarification.
Eli Zaretskii [Sun, 29 Apr 2018 16:27:55 +0000 (19:27 +0300)]
; * etc/DEBUG: Minor clarification.

6 years agoUpdate the Emacs FAQ
Eli Zaretskii [Sat, 28 Apr 2018 12:03:17 +0000 (15:03 +0300)]
Update the Emacs FAQ

* doc/misc/efaq.texi (Latest version of Emacs): Update versions.
(New in Emacs 26): New node.

* admin/release-process: Mention the FAQ update as part of the
release.

6 years ago* etc/DEBUG: Minor copyedits.
Eli Zaretskii [Sat, 28 Apr 2018 11:28:24 +0000 (14:28 +0300)]
* etc/DEBUG: Minor copyedits.

6 years agoClarify wording of NS drag n drop documentation
Alan Third [Sun, 22 Apr 2018 10:06:42 +0000 (11:06 +0100)]
Clarify wording of NS drag n drop documentation

* doc/emacs/macos.texi (Mac / GNUstep Events): Clarify wording of
ns-drag-n-drop description.

6 years agoImprove kill-related documentation (bug#31209)
Basil L. Contovounesios [Wed, 18 Apr 2018 17:35:38 +0000 (18:35 +0100)]
Improve kill-related documentation (bug#31209)

* doc/lispref/text.texi (Low-Level Kill Ring): Fix typo under
current-kill.  Mention interprogram-paste-function under kill-new
and kill-append.
* lisp/simple.el (save-interprogram-paste-before-kill, kill-new)
(kill-append-merge-undo, kill-append): Touch-up docstrings.

6 years ago* lisp/simple.el (region-extract-function): Don't hide the 'nil' case.
Stefan Monnier [Tue, 24 Apr 2018 18:06:20 +0000 (14:06 -0400)]
* lisp/simple.el (region-extract-function): Don't hide the 'nil' case.