]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years agoExit with success for make-fingerprint usage
Daniel Colascione [Tue, 20 Feb 2018 01:11:28 +0000 (17:11 -0800)]
Exit with success for make-fingerprint usage

7 years agoeassert -> eassume in pdumper
Daniel Colascione [Tue, 20 Feb 2018 00:35:09 +0000 (16:35 -0800)]
eassert -> eassume in pdumper

7 years agoMake non-GNU awk happy
Daniele Nicolodi [Tue, 20 Feb 2018 00:27:36 +0000 (16:27 -0800)]
Make non-GNU awk happy

7 years agoAbort after always-failing eassert
Daniel Colascione [Tue, 20 Feb 2018 00:25:52 +0000 (16:25 -0800)]
Abort after always-failing eassert

7 years agoAllow for padding in dump_object_start_pseudovector
Daniel Colascione [Tue, 20 Feb 2018 00:24:53 +0000 (16:24 -0800)]
Allow for padding in dump_object_start_pseudovector

7 years agoUse INT_MAX, not UINT_MAX, as limit for read()
Daniel Colascione [Mon, 19 Feb 2018 20:28:43 +0000 (12:28 -0800)]
Use INT_MAX, not UINT_MAX, as limit for read()

7 years agoMerge remote-tracking branch 'origin/master' into pdumper
Daniel Colascione [Mon, 19 Feb 2018 17:08:21 +0000 (09:08 -0800)]
Merge remote-tracking branch 'origin/master' into pdumper

7 years agoAvoid -Wconversion error in dump_read_all under MS-Windows
Daniel Colascione [Mon, 19 Feb 2018 16:55:37 +0000 (08:55 -0800)]
Avoid -Wconversion error in dump_read_all under MS-Windows

7 years agoMove unblock_input out of catch handler
Daniel Colascione [Mon, 19 Feb 2018 16:51:28 +0000 (08:51 -0800)]
Move unblock_input out of catch handler

7 years agoRemove obsolete todo comment
Daniel Colascione [Mon, 19 Feb 2018 16:41:10 +0000 (08:41 -0800)]
Remove obsolete todo comment

7 years agoLimit -Wconversion to GCC >= 4.7
Daniel Colascione [Mon, 19 Feb 2018 16:39:34 +0000 (08:39 -0800)]
Limit -Wconversion to GCC >= 4.7

7 years agoUse mmap retry on Cygwin too
Daniel Colascione [Mon, 19 Feb 2018 16:37:41 +0000 (08:37 -0800)]
Use mmap retry on Cygwin too

7 years agoVerify hashes of lisp structures during compilation
Daniel Colascione [Mon, 19 Feb 2018 16:27:39 +0000 (08:27 -0800)]
Verify hashes of lisp structures during compilation

7 years ago* src/nsfns.m (syms_of_nsfns_1): Remove unused function.
Philipp Stephani [Sun, 18 Feb 2018 22:20:56 +0000 (23:20 +0100)]
* src/nsfns.m (syms_of_nsfns_1): Remove unused function.

7 years agoFix NS-related compilation errors.
Philipp Stephani [Tue, 13 Feb 2018 08:55:46 +0000 (09:55 +0100)]
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'.

7 years ago* lisp/progmodes/elisp-mode.el (eval-sexp-add-defvars): Don't macroexpand.
Stefan Monnier [Sun, 18 Feb 2018 18:02:29 +0000 (13:02 -0500)]
* lisp/progmodes/elisp-mode.el (eval-sexp-add-defvars): Don't macroexpand.

Otherwise it breaks C-M-x on (progn (defmacro x ..) (... (x ...))).
Furthermore, many callers do their own macroexpansion anyway.
(elisp--eval-last-sexp): Do macroexpansion to make up for it.

7 years ago* lisp/vc/diff-mode.el (diff-wiggle): New command.
Stefan Monnier [Sun, 18 Feb 2018 05:47:00 +0000 (00:47 -0500)]
* lisp/vc/diff-mode.el (diff-wiggle): New command.

7 years ago* lisp/startup.el (load-user-init-file): Use condition-case-unless-debug.
Stefan Monnier [Sun, 18 Feb 2018 04:44:56 +0000 (23:44 -0500)]
* lisp/startup.el (load-user-init-file): Use condition-case-unless-debug.

(argv, argi): Silence compiler warning.

7 years ago* lisp/calendar/icalendar.el: Fix compilation warnings
Stefan Monnier [Sat, 17 Feb 2018 22:42:29 +0000 (17:42 -0500)]
* lisp/calendar/icalendar.el: Fix compilation warnings

(icalendar-export-region): Remove unused vars 'start', 'sum', and
'contents-n-summary'.
(icalendar--parse-summary-and-rest): Remove unused var 'pos-sum' and 'sum'.
(icalendar--convert-float-to-ical): Use calendar-let* to bind vars
'date' and 'entry'.
(icalendar--convert-non-recurring-all-day-to-diary):
Remove 'event' arg.  Update callers.
(icalendar--convert-non-recurring-not-all-day-to-diary): Remove 'event'
and 'dtend-dec' args.  Update callers.

7 years ago* doc/lispref/package.texi (Packaging Basics): Fix xref.
Glenn Morris [Sat, 17 Feb 2018 17:58:33 +0000 (09:58 -0800)]
* doc/lispref/package.texi (Packaging Basics): Fix xref.

7 years agoMerge from origin/emacs-26
Glenn Morris [Sat, 17 Feb 2018 15:50:28 +0000 (07:50 -0800)]
Merge from origin/emacs-26

e5a2933 (origin/emacs-26) lisp/vc/: documentation fixes
f21f8e6 Document 'desktop-files-not-to-save'
d8917eb Improve documentation of Profiling features
b228839 Improve indexing of "performance" in ELisp manual
ab67b3e Minor change in Emacs manual's VC chapter
c352434 Avoid memory corruption with specpdl overflow + edebug (Bug#3...
593bbda Document comment-fill-column in the manual (Bug#11636)
bd4cc8d * doc/emacs/dired.texi (Marks vs Flags): Copyedits.
69107f3 ; Fix doc typos related to indefinite articles
aaad1e6 Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emac...
5906418 More fixes for the Emacs manual
9ab3df1 ; Fix doc typos related to indefinite articles
66a4e65 ; Fix doc typos related to indefinite articles
35e5c57 ; Fix doc typos related to indefinite articles

7 years agolisp/vc/: documentation fixes
Charles A. Roelli [Sat, 17 Feb 2018 15:49:02 +0000 (16:49 +0100)]
lisp/vc/: documentation fixes

* lisp/vc/vc.el (vc-region-history): Clarify documentation.
* lisp/vc/add-log.el (change-log-get-method-definition):
Indent documentation.

7 years agoUse pkg-config to find lcms2 CFLAGS and LIBS (Bug#30346)
Noam Postavsky [Mon, 5 Feb 2018 01:43:26 +0000 (20:43 -0500)]
Use pkg-config to find lcms2 CFLAGS and LIBS (Bug#30346)

* configure.ac: Use EMACS_CHECK_MODULES fors LCMS2 rather than
AC_SEARCH_LIBS.
* src/Makefile.in: Get LCMS2_LIBS and LCMS2_CFLAGS from configure,
instead of just LIBLCMS2.

7 years agoPreserve special abbrev properties when writing
Allen Li [Mon, 1 Jan 2018 04:14:09 +0000 (20:14 -0800)]
Preserve special abbrev properties when writing

Fixes bug#29924

* lisp/abbrev.el (abbrev--write): Write abbrev properties when set.

7 years agoFix modifier key handling on macOS
Alan Third [Wed, 14 Feb 2018 20:28:46 +0000 (20:28 +0000)]
Fix modifier key handling on macOS

* configure.ac: Use the Carbon framework on macOS.
* src/nsterm.m (ns_get_shifted_character) [NS_IMPL_COCOA]: New function.
(EmacsView::keyDown) [NS_IMPL_COCOA]: Use ns_get_shifted_character
when we have shift style modifiers.

7 years agoMake echo-area buffers almost always multibyte
Eli Zaretskii [Sat, 17 Feb 2018 12:26:49 +0000 (14:26 +0200)]
Make echo-area buffers  almost always multibyte

* src/xdisp.c (setup_echo_area_for_printing, set_message_1): Ensure
the echo-area buffer is multibyte, unless
unibyte-display-via-language-environment is non-nil, and the text
we are to display is or could be unibyte.  (Bug#30405)

7 years agoAdd early init file, stop package-initialize insertion
Radon Rosborough [Sat, 17 Feb 2018 11:36:16 +0000 (13:36 +0200)]
Add early init file, stop package-initialize insertion

Discussion on emacs-devel leading up to this change (approximately 150
messages):

- https://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00154.html
- https://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00433.html
- https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00023.html
- https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00599.html
- https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00332.html

* lisp/startup.el (early-init-file): New variable.
(load-user-init-file): New function.
(command-line): Load the early init file using `load-user-init-file'.
Move the check for an invalid username to just before that, and move
the initialization of the package system to just after.  Load the
regular init file using `load-user-init-file'.
* lisp/emacs-lisp/package.el (package--ensure-init-file): Remove
definition, usage, and documentation.
(package--init-file-ensured): Remove definition and usage.

* src/lread.c (Vuser_init_file): Note change in semantics due to its
usage while loading the early init file.

* doc/emacs/custom.texi: Document early init file.
* doc/emacs/package.texi: Document changes to when package-initialize
is called.  Change terminology for package 'loading'.
* doc/lispref/os.texi: Document early init file.  Update startup
summary.
* doc/lispref/package.texi: Document changes to when
package-initialize is called, and advise against calling it in the
init file.  Change terminology for package 'loading'.
* doc/misc/org.texi: Don't recommend to call package-initialize in the
init file.

7 years agoDocument 'desktop-files-not-to-save'
Robert Pluim [Sat, 17 Feb 2018 11:01:19 +0000 (13:01 +0200)]
Document 'desktop-files-not-to-save'

* doc/emacs/misc.texi (Saving Emacs Sessions): Add description
of 'desktop-files-not-to-save'.

* lisp/desktop.el (desktop-files-not-to-save): Explain that
the default value excludes buffers visiting remote files.

7 years agoImprove documentation of Profiling features
Eli Zaretskii [Sat, 17 Feb 2018 09:59:36 +0000 (11:59 +0200)]
Improve documentation of Profiling features

* doc/lispref/debugging.texi (Profiling): Improve the description
of elp.el.  Improve wording of the rest of the section.  (Bug#30491)

* lisp/emacs-lisp/elp.el (elp-instrument-list): Make the
interactive invocation work.  Doc fix.

7 years agoImprove indexing of "performance" in ELisp manual
Eli Zaretskii [Sat, 17 Feb 2018 09:16:35 +0000 (11:16 +0200)]
Improve indexing of "performance" in ELisp manual

* doc/lispref/debugging.texi (Profiling):
* doc/lispref/edebug.texi (Coverage Testing): Improve indexing of
features useful for performance analysis.  (Bug#30490)

7 years agoFix the change from 2018-02-15 which didn't mention literals
Alan Mackenzie [Sat, 17 Feb 2018 09:14:54 +0000 (09:14 +0000)]
Fix the change from 2018-02-15 which didn't mention literals

* doc/emacs/programs.texi (Left Margin Paren): Document that opening
delimiters at column 0 which are inside strings or comments aren't regarded as
defun starts.

7 years agoMinor change in Emacs manual's VC chapter
Eli Zaretskii [Sat, 17 Feb 2018 08:28:29 +0000 (10:28 +0200)]
Minor change in Emacs manual's VC chapter

* doc/emacs/maintaining.texi (Log Buffer): Mention the "Summary"
header.  Suggested by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.

7 years agoAvoid memory corruption with specpdl overflow + edebug (Bug#30481)
Noam Postavsky [Fri, 16 Feb 2018 03:13:51 +0000 (22:13 -0500)]
Avoid memory corruption with specpdl overflow + edebug (Bug#30481)

If grow_specpdl fails due to outgrowing max_specpdl_size, it will
signal an error *before* growing the specpdl array.  Therefore, when
handling the signal, specpdl_ptr points past the end of the specpdl
array and any further use of of specpdl before unwinding (e.g., if
edebug binds signal-hook-function) will cause memory corruption.
* src/eval.c (signal_or_quit): Don't call `signal-hook-function' if
the specpdl_ptr is already past the end of the specpdl array.
* test/src/eval-tests.el (eval-tests--exceed-specbind-limit)
(eval-exceed-specbind-with-signal-hook): New test & helper function.

7 years agoDocument comment-fill-column in the manual (Bug#11636)
Noam Postavsky [Wed, 14 Feb 2018 03:10:03 +0000 (22:10 -0500)]
Document comment-fill-column in the manual (Bug#11636)

* doc/emacs/programs.texi (Comment Commands)
(Options for Comments): Mention comment-fill-column.

7 years agoQuieten compilation of icalendar.el
Glenn Morris [Sat, 17 Feb 2018 03:11:59 +0000 (19:11 -0800)]
Quieten compilation of icalendar.el

* lisp/calendar/icalendar.el (icalendar-import-buffer)
(icalendar--convert-ical-to-diary, icalendar--add-diary-entry):
Eliminate "Lexical argument shadows the dynamic variable" warning.

7 years ago; * lisp/international/mule-cmds.el (reset-language-environment): Comment.
Glenn Morris [Sat, 17 Feb 2018 02:57:45 +0000 (18:57 -0800)]
; * lisp/international/mule-cmds.el (reset-language-environment): Comment.

7 years ago* doc/emacs/dired.texi (Marks vs Flags): Copyedits.
Glenn Morris [Sat, 17 Feb 2018 01:03:13 +0000 (17:03 -0800)]
* doc/emacs/dired.texi (Marks vs Flags): Copyedits.

7 years ago; Fix doc typos related to indefinite articles
Glenn Morris [Fri, 16 Feb 2018 22:33:57 +0000 (17:33 -0500)]
; Fix doc typos related to indefinite articles

7 years agoMerge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26
Eli Zaretskii [Fri, 16 Feb 2018 21:38:32 +0000 (23:38 +0200)]
Merge branch 'emacs-26' of git.savannah.gnu.org:/srv/git/emacs into emacs-26

7 years agoMore fixes for the Emacs manual
Eli Zaretskii [Fri, 16 Feb 2018 21:37:38 +0000 (23:37 +0200)]
More fixes for the Emacs manual

* doc/emacs/vc1-xtra.texi (Customizing VC): Update the list of
backends.
* doc/emacs/maintaining.texi (Version Control): Add SRC to the
list of VCS.  Remove the description of vc-state-refresh.
(Version Control Systems): Update the description of CVS.
(VC Change Log): Amend the list of VCS that don't support
vc0print-root-log.
(VCS Changesets, VCS Repositories, Advanced C-x v v)
(VC Change Log): Mention SRC with RCS where appropriate.
(VC Directory Commands): More accurate description of
vc-dir-hide-up-to-date.  Suggested by Michael Albinus
<michael.albinus@gmx.de> in emacs-manual-bugs@gnu.org.

7 years ago; Fix doc typos related to indefinite articles
Glenn Morris [Fri, 16 Feb 2018 21:33:36 +0000 (16:33 -0500)]
; Fix doc typos related to indefinite articles

7 years ago; Fix doc typos related to indefinite articles
Glenn Morris [Fri, 16 Feb 2018 20:16:15 +0000 (15:16 -0500)]
; Fix doc typos related to indefinite articles

7 years ago; Fix doc typos related to indefinite articles
Glenn Morris [Fri, 16 Feb 2018 19:11:51 +0000 (14:11 -0500)]
; Fix doc typos related to indefinite articles

7 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 16 Feb 2018 17:44:04 +0000 (09:44 -0800)]
Merge from origin/emacs-26

a06a8ed (origin/emacs-26) ; * lisp/vc/vc-git.el (vc-git--program-vers...
edc06ad Make 'byte-compile-error-on-warn' a safe file variable
9f5d8da ; * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): ...
f73905a Fix the doc string of flyspell-auto-correct-word
e9c7ddc Improve the MS-Windows appendix of the Emacs manual
6ddb4bd Fix 'vc-git--program-version'
63c93f7 Fix typos and wording in the Emacs manual
42f15b0 * doc/emacs/programs.texi (Semantic): Order programming langu...
b46be29 More improvements for the Emacs manual
874c0ed Minor wording change in Emacs manual
53511f9 Another set of changes for the manual
78426b8 Improvements on tramp.texi
0dca618 Tramp minor doc fixes

Conflicts:
doc/misc/tramp.texi

7 years ago; * lisp/vc/vc-git.el (vc-git--program-version): Fix last change.
Eli Zaretskii [Fri, 16 Feb 2018 17:20:29 +0000 (19:20 +0200)]
; * lisp/vc/vc-git.el (vc-git--program-version): Fix last change.

7 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.

7 years agoMake 'byte-compile-error-on-warn' a safe file variable
Robert Cochran [Fri, 16 Feb 2018 15:51:06 +0000 (17:51 +0200)]
Make 'byte-compile-error-on-warn' a safe file variable

* lisp/emacs-lisp/bytecomp.el (byte-compile-error-on-warn): Mark
as a safe local variable for boolean values.

7 years agoDon't flash previous buffer when connecting with emacsclient
Aaron Jensen [Fri, 16 Feb 2018 15:43:04 +0000 (17:43 +0200)]
Don't flash previous buffer when connecting with emacsclient

* lisp/server.el (server-execute): Accept lambda for creating
frame rather than frame.  Ensure newly created tty frame
initially shows the correct buffer.
(server-process-filter): Pass a lambda to server-execute to create
a frame.  (Bug#24218)

7 years ago; * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Fix last change.
Eli Zaretskii [Fri, 16 Feb 2018 14:30:02 +0000 (16:30 +0200)]
; * lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Fix last change.

7 years agoFix the doc string of flyspell-auto-correct-word
Eli Zaretskii [Fri, 16 Feb 2018 14:23:43 +0000 (16:23 +0200)]
Fix the doc string of flyspell-auto-correct-word

* lisp/textmodes/flyspell.el (flyspell-auto-correct-word): Doc
fix.  (Bug#30462)

7 years agoImprove the MS-Windows appendix of the Emacs manual
Eli Zaretskii [Fri, 16 Feb 2018 10:46:32 +0000 (12:46 +0200)]
Improve the MS-Windows appendix of the Emacs manual

* doc/emacs/msdos.texi (Windows Startup): Describe the pinned
shortcuts for starting Emacs.
(Text and Binary): Minor wording changes.
(Windows Files): Mention 'read-file-name-completion-ignore-case'.
(ls in Lisp): Update the list of supported 'ls' switches.
Document 'ls-lisp-use-string-collate' and
'ls-lisp-UCA-like-collation'.
(Windows HOME): Mention warnings displayed at startup when
deprecated locations of HOME and/or deprecated names for init
files are used.
(Windows Keyboard): Mention delete-selection-mode.

7 years agoFix 'vc-git--program-version'
Eli Zaretskii [Fri, 16 Feb 2018 09:30:29 +0000 (11:30 +0200)]
Fix 'vc-git--program-version'

* lisp/vc/vc-git.el (vc-git--program-version): Fix the function to
work with Git for Windows.

7 years agoFix typos and wording in the Emacs manual
Eli Zaretskii [Fri, 16 Feb 2018 09:12:50 +0000 (11:12 +0200)]
Fix typos and wording in the Emacs manual

* doc/emacs/dired.texi (Marks vs Flags, Hiding Subdirectories):
* doc/emacs/maintaining.texi (Tag Syntax):
* doc/emacs/building.texi (Commands of GUD, Threads Buffer)
(Lisp Libraries):
* doc/emacs/windows.texi (Temporary Displays): Fix typos.
* doc/emacs/files.texi (Backup Copying): Fix wording.  Reported by
Stefan Kamphausen <stefan.kamphausen@acrolinx.com> in
emacs-manual-bugs@gnu.org.

7 years ago* doc/emacs/programs.texi (Semantic): Order programming languages.
Michael Albinus [Fri, 16 Feb 2018 08:53:30 +0000 (09:53 +0100)]
* doc/emacs/programs.texi (Semantic): Order programming languages.

7 years agoFix macOS build again
Daniel Colascione [Fri, 16 Feb 2018 00:17:24 +0000 (16:17 -0800)]
Fix macOS build again

7 years agoRemove unused mark functions
Daniel Colascione [Fri, 16 Feb 2018 00:15:24 +0000 (16:15 -0800)]
Remove unused mark functions

7 years agoPacify pdumper for GCC 7.3.1
Paul Eggert [Fri, 16 Feb 2018 00:12:15 +0000 (16:12 -0800)]
Pacify pdumper for GCC 7.3.1

7 years agoPacify -Wjump-misses-init
Paul Eggert [Fri, 16 Feb 2018 00:08:16 +0000 (16:08 -0800)]
Pacify -Wjump-misses-init

7 years agoAvoid INLINE for static functions
Daniel Colascione [Thu, 15 Feb 2018 22:17:38 +0000 (14:17 -0800)]
Avoid INLINE for static functions

7 years agoMake INTEGER_TO_CONS work with -Wconversion
Daniel Colascione [Thu, 15 Feb 2018 22:13:17 +0000 (14:13 -0800)]
Make INTEGER_TO_CONS work with -Wconversion

7 years agoFix macfont.m dump callback
Daniel Colascione [Thu, 15 Feb 2018 22:01:56 +0000 (14:01 -0800)]
Fix macfont.m dump callback

7 years agoAccount for GCALIGNMENT of pseudovectors in 32-bit builds
Daniel Colascione [Thu, 15 Feb 2018 21:48:28 +0000 (13:48 -0800)]
Account for GCALIGNMENT of pseudovectors in 32-bit builds

7 years agoDocument open-paren-in-column-0-is-defun-start being of less importance
Alan Mackenzie [Thu, 15 Feb 2018 20:58:15 +0000 (20:58 +0000)]
Document open-paren-in-column-0-is-defun-start being of less importance

* doc/emacs/programs.texi (Left Margin Paren): Update to reflect the recent
change in syntax.c, whereby a paren at column 0 is no longer taken as a
beginning of defun in moving backwards over comments.

7 years agoReport dump load status
Daniel Colascione [Thu, 15 Feb 2018 20:38:04 +0000 (12:38 -0800)]
Report dump load status

7 years agoUse intptr_t, not off_t, for dump_size: fixes 32-bit build
Daniel Colascione [Thu, 15 Feb 2018 20:37:33 +0000 (12:37 -0800)]
Use intptr_t, not off_t, for dump_size: fixes 32-bit build

7 years agoFix compiler warnings
Daniel Colascione [Thu, 15 Feb 2018 20:08:03 +0000 (12:08 -0800)]
Fix compiler warnings

7 years agoMore improvements for the Emacs manual
Eli Zaretskii [Thu, 15 Feb 2018 18:38:13 +0000 (20:38 +0200)]
More improvements for the Emacs manual

* doc/emacs/programs.texi (Basic Indent, Comment Commands): Fix
typos.
* doc/emacs/text.texi (TeX Print, HTML Mode, Enriched Faces): Fix
typos.
* doc/emacs/help.texi (Help Files): Improve @uref usage.  Reported
by Stefan Kamphausen <stefan.kamphausen@acrolinx.com> in
emacs-manual-bugs@gnu.org.

* doc/emacs/fortran-xtra.texi (ForIndent Commands): Fix a typo.
(ForIndent Commands, Fortran Columns): Add empty lines between
@items in a @table.
(ForIndent Cont, ForIndent Num, Fortran Columns): Mention
'column-number-indicator-zero-based'.
(ForIndent Vars): Fix a typo.
(Fortran Comments): Fix punctuation.
(ForIndent Cont, Fortran Autofill): Fix markup of keyboard input.
* doc/emacs/programs.texi (Comments): Fix a typo.
(Comment Commands): More accurate description of the commands.
(Options for Comments): Don't mention "hook".
(Man Page): Prefer "M-x man" if available.
(Hideshow): Fix the command key sequence.
(Semantic): Update supported languages.
(Semantic, Hungry Delete, Other C Commands): Fix markup of
commands.
(Misc for Programs): Fix a typo.
(Electric C, Hungry Delete): More accurate description of
mode-line lighters of CC submodes.
(Asm Mode): Add empty lines between @items in a @table.
* doc/emacs/programs.texi (Program Modes): Add a few more modes.
Reported by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.

* doc/emacs/msdos.texi (Windows Misc): A minor rewording.
Suggested by Isaac Carter <icarter1391@gmail.com> in
emacs-manual-bugs@gnu.org.

7 years agoRestore the ability to have several numbered builds
Eli Zaretskii [Thu, 15 Feb 2018 16:12:14 +0000 (18:12 +0200)]
Restore the ability to have several numbered builds

This allows to have several emacs-XX.YY executables and the
corresponding .pdmp files in the same directory, and also makes the
PATH_EXEC last resort work on MS-Windows.

7 years ago* lisp/calendar/diary-lib.el (diary-remind): Fix bug#30455.
Stefan Monnier [Thu, 15 Feb 2018 05:41:52 +0000 (00:41 -0500)]
* lisp/calendar/diary-lib.el (diary-remind): Fix bug#30455.

(diary-remind): Bind `days' as documented for diary-remind-message.

7 years ago; Add test for iter-lambda variable shadowing (Bug#26073)
Noam Postavsky [Thu, 15 Feb 2018 02:31:06 +0000 (21:31 -0500)]
; Add test for iter-lambda variable shadowing (Bug#26073)

* test/lisp/emacs-lisp/generator-tests.el
(iter-lambda-variable-shadowing): New test.

7 years agoUse valid Mach-O section names
Daniel Colascione [Thu, 15 Feb 2018 00:48:45 +0000 (16:48 -0800)]
Use valid Mach-O section names

7 years agoFix conservative GC bugs
Daniel Colascione [Thu, 15 Feb 2018 00:41:03 +0000 (16:41 -0800)]
Fix conservative GC bugs

7 years agoRestore comment
Daniel Colascione [Wed, 14 Feb 2018 19:32:29 +0000 (11:32 -0800)]
Restore comment

7 years agoSimplify dump_discard_mem conditional
Daniel Colascione [Wed, 14 Feb 2018 19:30:43 +0000 (11:30 -0800)]
Simplify dump_discard_mem conditional

7 years agoKeep the DS_DISCARDABLE address space reserved
Daniel Colascione [Wed, 14 Feb 2018 19:25:46 +0000 (11:25 -0800)]
Keep the DS_DISCARDABLE address space reserved

7 years agoMinor wording change in Emacs manual
Eli Zaretskii [Wed, 14 Feb 2018 19:12:49 +0000 (21:12 +0200)]
Minor wording change in Emacs manual

* doc/emacs/killing.texi (Accumulating Text): Fix spelling.
Reported by lyr3 <lyr3@protonmail.com> in
emacs-manual-bugs@gnu.org.

7 years agoAnother set of changes for the manual
Eli Zaretskii [Wed, 14 Feb 2018 19:00:59 +0000 (21:00 +0200)]
Another set of changes for the manual

* doc/emacs/programs.texi (Program Indent): Add a cross-reference
to elisp's description of 'pp'.
(Program Modes): Add a few more programming modes.  Add index
entries.
(Basic Indent, Multi-line Indent, C Indent, Comment Commands)
(Manipulating Comments): Fix markup of keyboard commands.
* doc/emacs/search.texi (Regexps): Add an example with non-ASCII
characters.  Suggested by Michael Albinus <michael.albinus@gmx.de>
in emacs-manual-bugs@gnu.org.

* doc/lispref/display.texi (Display Tables): Fix the description
of the 5th extra slot of the display table.  (Bug#13473)

* doc/emacs/regs.texi (Registers): Simplify wording.

* doc/emacs/custom.texi (Init Non-ASCII): Remove outdated text
about perils of encoded keyboard input.

7 years agoMore fixes of the MS-Windows build.
Eli Zaretskii [Wed, 14 Feb 2018 16:13:05 +0000 (18:13 +0200)]
More fixes of the MS-Windows build.

This finally gets Emacs to dump itself to the correct place,
and find and load the .pdmp file after dumping.  It then
crashes due to the assertion in prepare_to_modify_buffer_1.

7 years agoImprovements on tramp.texi
Michael Albinus [Wed, 14 Feb 2018 08:28:33 +0000 (09:28 +0100)]
Improvements on tramp.texi

* doc/misc/tramp.texi: Use Tramp version in title.  Further
improvements on user option indexing.  Finish command examples
with @key{RET} where appropriate.
(Remote processes): Use 'M-&' for invocation of async shell.
(Frequently Asked Questions): Add example with simplified syntax.

7 years agoTramp minor doc fixes
Paul Eggert [Tue, 13 Feb 2018 22:52:20 +0000 (14:52 -0800)]
Tramp minor doc fixes

* doc/misc/tramp.texi (Remote processes): Spelling fix and minor
wording improvement.

7 years ago; Replace "Written by" with standard "Author:" header in some C files
Glenn Morris [Tue, 13 Feb 2018 22:29:59 +0000 (14:29 -0800)]
; Replace "Written by" with standard "Author:" header in some C files

7 years agoStop keeping multiple doc copies for items defined multiple times
Glenn Morris [Tue, 13 Feb 2018 22:22:16 +0000 (14:22 -0800)]
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.

7 years agoDoc tweak for x-use-underline-position-properties
Glenn Morris [Tue, 13 Feb 2018 22:13:53 +0000 (14:13 -0800)]
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.

7 years agoMerge from origin/emacs-26
Glenn Morris [Tue, 13 Feb 2018 17:26:20 +0000 (09:26 -0800)]
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

7 years agoMore changes in the Emacs manual
Eli Zaretskii [Tue, 13 Feb 2018 17:12:37 +0000 (19:12 +0200)]
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.

7 years agoFix MS-Windows MinGW build
Eli Zaretskii [Tue, 13 Feb 2018 16:33:11 +0000 (18:33 +0200)]
Fix MS-Windows MinGW build

Most of the fixes are portability related.  Some functions
were moved from unexw32.c to w32proc.c, because they are
needed even if unexec is not used.
After these fixes, Emacs builds without warnings (GCC 6.3.0),
dumps itself, but then crashes when it tries to compile the
first Lisp file.

7 years ago* lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.
Andreas Schwab [Tue, 13 Feb 2018 13:05:20 +0000 (14:05 +0100)]
* lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.

7 years agoDon't signal error in vc-deduce-backend
Andreas Schwab [Tue, 13 Feb 2018 11:13:27 +0000 (12:13 +0100)]
Don't signal error in vc-deduce-backend

* lisp/vc/vc.el (vc-deduce-backend): Return nil if
vc-responsible-backend signals an error.

7 years agoFix NS-related compilation errors.
Philipp Stephani [Tue, 13 Feb 2018 08:55:46 +0000 (09:55 +0100)]
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'.

7 years ago* doc/misc/tramp.texi: Index more user options.
Michael Albinus [Tue, 13 Feb 2018 07:35:50 +0000 (08:35 +0100)]
* doc/misc/tramp.texi: Index more user options.

7 years agoMinor change in the Emacs manual
Eli Zaretskii [Tue, 13 Feb 2018 05:59:26 +0000 (07:59 +0200)]
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.

7 years agoNEWS update about 'string-trim'
Eli Zaretskii [Tue, 13 Feb 2018 05:49:30 +0000 (07:49 +0200)]
NEWS update about 'string-trim'

* etc/NEWS: Mention changes in string-trim family of functions.
(Bug#30442)

7 years agoExpand direct color description in Emacs FAQ
Rami Ylimäki [Tue, 13 Feb 2018 05:33:39 +0000 (07:33 +0200)]
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)

7 years ago* lisp/gnus/message.el (message-ecomplete-capf): Fix call convention.
Stefan Monnier [Tue, 13 Feb 2018 05:17:38 +0000 (00:17 -0500)]
* lisp/gnus/message.el (message-ecomplete-capf): Fix call convention.

7 years ago* lisp/progmodes/python.el: Bump package version to 0.26.
Noam Postavsky [Tue, 13 Feb 2018 02:22:46 +0000 (21:22 -0500)]
* lisp/progmodes/python.el: Bump package version to 0.26.

7 years agoWork if libpng is in /usr/local (2nd try)
Paul Eggert [Tue, 13 Feb 2018 00:39:56 +0000 (16:39 -0800)]
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.

7 years agoClarify TRAMP process-environment interaction (Bug#30419)
Noam Postavsky [Sun, 11 Feb 2018 14:20:29 +0000 (09:20 -0500)]
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.

7 years ago* lisp/progmodes/grep.el (grep-num-matches-found): New variable.
Juri Linkov [Mon, 12 Feb 2018 21:39:28 +0000 (23:39 +0200)]
* 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)

7 years agoFinish renaming to internal--daemon-sockname
Paul Eggert [Mon, 12 Feb 2018 20:52:44 +0000 (12:52 -0800)]
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.

7 years agoRename internal--external-sockname and document (Bug#24218)
Matthew Leach [Mon, 12 Feb 2018 20:52:44 +0000 (12:52 -0800)]
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'.