]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoMerge from origin/emacs-26
Glenn Morris [Tue, 9 Oct 2018 20:12:56 +0000 (13:12 -0700)]
Merge from origin/emacs-26

4cf1eb8 (origin/emacs-26) ; * src/data.c (Fkeywordp): Remove inaccura...
3f1470d * doc/emacs/mark.texi (Mark): Index "(de)activating the mark".

6 years ago; Merge from origin/emacs-26
Glenn Morris [Tue, 9 Oct 2018 20:12:56 +0000 (13:12 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

940ae15 Fix overflow lockup with frames > 255 lines

6 years agoMerge from origin/emacs-26
Glenn Morris [Tue, 9 Oct 2018 20:12:56 +0000 (13:12 -0700)]
Merge from origin/emacs-26

14c032d Avoid assertion violations in nonsensical calls to 'signal'
b99192f * lisp/simple.el (transient-mark-mode): Correct documentation...
7e42294 Update the locale and language database
8c53d9f Fix a typo in a doc string.
79bda3b Make nneething allow CRLF-encoded files (bug#32940)

6 years ago; Merge from origin/emacs-26
Glenn Morris [Tue, 9 Oct 2018 20:12:56 +0000 (13:12 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

2cae1cf Further fix to eieio-persistent

6 years agoMerge from origin/emacs-26
Glenn Morris [Tue, 9 Oct 2018 20:12:55 +0000 (13:12 -0700)]
Merge from origin/emacs-26

86d2169 Avoid ridiculously high stack limit requests on macOS
ac3622c Improve documentation of 'read-hide-char'

# Conflicts:
# src/emacs.c

6 years ago* lisp/vc/vc.el (vc-retrieve-tag-hook): Remove autoload cookie.
Charles A. Roelli [Tue, 9 Oct 2018 18:24:45 +0000 (20:24 +0200)]
* lisp/vc/vc.el (vc-retrieve-tag-hook): Remove autoload cookie.

See https://lists.gnu.org/r/emacs-devel/2018-10/msg00108.html.

6 years agoPort --enable-gcc-warnings to recent clang
Paul Eggert [Tue, 9 Oct 2018 18:16:00 +0000 (11:16 -0700)]
Port --enable-gcc-warnings to recent clang

* configure.ac: Disable -Wnull-pointer-arithmetic if clang (Bug#32924).

6 years agoFix malfunctioning cursor display on 32-bit Gtk
Paul Eggert [Tue, 9 Oct 2018 16:47:28 +0000 (09:47 -0700)]
Fix malfunctioning cursor display on 32-bit Gtk

This bug on 32-bit platforms was caused by the timespec_hz
definition going haywire because the C expression
FIXNUM_OVERFLOW_P (MOST_POSITIVE_FIXNUM) did not work in #if.
Eventually the numeric problem showed up as a malfunctioning
cursor (Bug#32992).  Fix the problem with MOST_POSITIVE_FIXNUM.
By the way, make_fixnum should check for integer overflow when
debugging; this would have made it easier to track this bug down.
But one fix at a time.
* src/lisp.h (INTTYPEBITS): Now a macro, so usable in #if.
(MOST_POSITIVE_FIXNUM): Mention it’s used in #if.

6 years ago* lisp/replace.el (occur--garbage-collect-revert-args): New function
Stefan Monnier [Tue, 9 Oct 2018 15:57:22 +0000 (11:57 -0400)]
* lisp/replace.el (occur--garbage-collect-revert-args): New function

(occur-mode, occur-1): Use it.
(occur--region-start, occur--region-end, occur--region-start-line)
(occur--orig-line): Remove vars.
(occur-engine): Fix left over use of occur--region-start-line.

6 years agoRevert part of last commit
Eli Zaretskii [Tue, 9 Oct 2018 14:55:15 +0000 (17:55 +0300)]
Revert part of last commit

* lisp/replace.el (occur-revert-function): Revert last change,
as it's no longer needed.  (Bug#32987)

6 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Tue, 9 Oct 2018 14:49:59 +0000 (17:49 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

6 years ago* lisp/replace.el: Rework implementation of the occur region
Stefan Monnier [Tue, 9 Oct 2018 14:47:13 +0000 (10:47 -0400)]
* lisp/replace.el: Rework implementation of the occur region

Put the region info in the "list of buffers" used for multi-occur.

(occur--parse-occur-buffer): Remove.
(occur): Pass the region to occur-1 as an overlay.
(occur-1): 'bufs' is now a list of buffers or overlays.
(occur-engine): 'buffers' is now a list of buffers or overlays.

6 years agoUnbreak 'revert-buffer' in Occur buffers
Eli Zaretskii [Tue, 9 Oct 2018 14:46:31 +0000 (17:46 +0300)]
Unbreak 'revert-buffer' in Occur buffers

* lisp/replace.el (occur-revert-function): Use the value of
occur-revert-function from the correct buffer.  (Bug#32987)

* test/lisp/replace-tests.el (replace-occur-revert-bug32543)
(replace-occur-revert-bug32987): New tests.

6 years ago* lisp/calendar/timeclock.el: Use lexical-binding
Stefan Monnier [Tue, 9 Oct 2018 02:33:22 +0000 (22:33 -0400)]
* lisp/calendar/timeclock.el: Use lexical-binding

Require cl-lib.  Remove redundant :group args.
(timeclock-status-string): Avoid 'setq'.
(timeclock-ask-for-project, timeclock-ask-for-reason):
Completionu tables can be simple lists of strings.
(timeclock-read-moment): Doesn't deserve to be defsubst (most of the
others don't either, admittedly).
(timeclock-entry): New type.
(timeclock-entry-begin, timeclock-entry-end, timeclock-entry-project)
(timeclock-entry-comment): Define via 'cl-defstruct'.
(timeclock-entry-list-projects, timeclock-day-list-projects):
Avoid add-to-list on lexical vars.
(timeclock-day-list): Use 'push'.
(timeclock-log-data): Use 'pcase'.
(timeclock-mean): Simplify.
(timeclock-generate-report): Use dotimes.

6 years agoUpdate from Gnulib
Paul Eggert [Tue, 9 Oct 2018 01:21:47 +0000 (18:21 -0700)]
Update from Gnulib

This incorporates:
2018-10-05 explicit_bzero: make it possible to namespace
2018-10-04 fcntl: make it possible to namespace
2018-10-01 mkostemp, mkostemps: fix C++ compilation on Mac OS X
2018-09-19 maint: mktime.c now shared with glibc
2018-09-18 file-has-acl: fix test failure on Cygwin 2.9
2018-09-18 gettime: nanotime never existed
* admin/merge-gnulib (AVOIDED_MODULES): Add mkdir.
* doc/misc/texinfo.tex, lib/acl-internal.c, lib/acl-internal.h:
* lib/acl_entries.c, lib/explicit_bzero.c, lib/fcntl.c:
* lib/get-permissions.c, lib/gettime.c, lib/mktime.c:
* lib/set-permissions.c, lib/stdlib.in.h, m4/acl.m4, m4/gettime.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.

6 years ago* lisp/net/ntlm.el: Use lexical-binding
Stefan Monnier [Tue, 9 Oct 2018 00:59:59 +0000 (20:59 -0400)]
* lisp/net/ntlm.el: Use lexical-binding

(ntlm-string-as-unibyte): Remove.
(ntlm-build-auth-response): Use encode-coding-string instead.
(ntlm-build-auth-request, ntlm-build-auth-response, ntlm-ascii2unicode)
(ntlm-smb-owf-encrypt, ntlm-smb-hash, ntlm-smb-dohash, ntlm-md4hash):
Use fewer setq more Lisp-style.

6 years ago; * src/data.c (Fkeywordp): Remove inaccurate commentary. (Bug#32979)
Eli Zaretskii [Mon, 8 Oct 2018 20:14:59 +0000 (23:14 +0300)]
; * src/data.c (Fkeywordp): Remove inaccurate commentary.  (Bug#32979)

6 years agoNew hook 'vc-retrieve-tag-hook' (Bug#32754)
Charles A. Roelli [Mon, 8 Oct 2018 19:49:41 +0000 (21:49 +0200)]
New hook 'vc-retrieve-tag-hook' (Bug#32754)

* etc/NEWS: Mention the new variable.

* lisp/vc/vc.el (vc-retrieve-tag-hook): New hook.
(vc-retrieve-tag): Run the new hook and update its
documentation string.

6 years ago* doc/emacs/mark.texi (Mark): Index "(de)activating the mark".
Charles A. Roelli [Mon, 8 Oct 2018 17:21:41 +0000 (19:21 +0200)]
* doc/emacs/mark.texi (Mark): Index "(de)activating the mark".

(Bug#32956)

6 years agoFix overflow lockup with frames > 255 lines
Scott Corley [Mon, 8 Oct 2018 06:21:40 +0000 (23:21 -0700)]
Fix overflow lockup with frames > 255 lines

Backport from master.
* src/scroll.c (struct matrix_elt): Change unsigned char fields to
int to handle frames with more than 255 lines (Bug#32951).
Copyright-paperwork-exempt: yes

6 years agoFix MinGW compilation problem in timefns.c
Eli Zaretskii [Sun, 7 Oct 2018 17:51:11 +0000 (20:51 +0300)]
Fix MinGW compilation problem in timefns.c

* src/timefns.c (lisp_to_timespec): Fix a mismatch between
time_t and timespec.tv_sec data types.

6 years agoAvoid assertion violations in nonsensical calls to 'signal'
Eli Zaretskii [Sun, 7 Oct 2018 14:45:12 +0000 (17:45 +0300)]
Avoid assertion violations in nonsensical calls to 'signal'

* src/eval.c (Fsignal): If both arguments are nil, replace the
first one with 'error', to avoid assertion violations further
down the line.  (Bug#32961)

6 years ago* src/scroll.c (calculate_scrolling): Remove casts.
Paul Eggert [Sun, 7 Oct 2018 07:10:29 +0000 (00:10 -0700)]
* src/scroll.c (calculate_scrolling): Remove casts.

6 years agoFix overflow lockup with frames > 255 lines
Scott Corley [Sun, 7 Oct 2018 07:10:29 +0000 (00:10 -0700)]
Fix overflow lockup with frames > 255 lines

* src/scroll.c (struct matrix_elt): Change unsigned char fields to
int to handle frames with more than 255 lines (Bug#32951).
Copyright-paperwork-exempt: yes

6 years agoImprovements on (TICKS . HZ)
Paul Eggert [Wed, 3 Oct 2018 16:10:01 +0000 (09:10 -0700)]
Improvements on (TICKS . HZ)

This patch is in response to Eli's review (Bug#32902#10).
* src/systime.c: Doc strings of affected functions now refer
to format-time-string instead of to Lisp manual, and
format-time-string's doc string covers time values.
* test/src/systime-tests.el (format-time-string-with-zone):
Check decode-time too.
(decode-then-encode-time, time-arith-tests): New tests.

6 years agoNew (TICKS . HZ) timestamp format
Paul Eggert [Wed, 3 Oct 2018 16:10:01 +0000 (09:10 -0700)]
New (TICKS . HZ) timestamp format

This follows on a suggestion by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2018-08/msg00991.html
(Bug#32902).
* doc/lispref/buffers.texi (Modification Time):
* doc/lispref/os.texi (Processor Run Time, Time Calculations)
* doc/lispref/processes.texi (System Processes):
* doc/lispref/text.texi (Undo):
Let the "Time of Day" section cover timestamp format details.
* doc/lispref/os.texi (Time of Day):
Say that timestamp internal format should not be assumed.
Document new (ticks . hz) format.  Omit mention of seconds-to-time
since it is now just an alias for encode-time.
(Time Conversion): Document encode-time extension.
* etc/NEWS: Mention changes.
* lisp/calendar/cal-dst.el (calendar-system-time-basis): Now const.
* lisp/calendar/cal-dst.el (calendar-absolute-from-time)
(calendar-time-from-absolute)
(calendar-next-time-zone-transition):
* lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
Simplify by using bignums, (TICKS . HZ), and new encode-time.
* lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
Simplify by using bignums and new encode-time.
* lisp/calendar/parse-time.el (parse-iso8601-time-string):
Handle DST more accurately, by using new encode-time.
* lisp/calendar/time-date.el (seconds-to-time):
* lisp/calendar/timeclock.el (timeclock-seconds-to-time):
Now just an alias for encode-time.
* lisp/calendar/time-date.el (days-to-time):
* lisp/emacs-lisp/timer.el (timer--time-setter):
* lisp/net/ntlm.el (ntlm-compute-timestamp):
* lisp/obsolete/vc-arch.el (vc-arch-add-tagline):
* lisp/org/org-id.el (org-id-uuid, org-id-time-to-b36):
* lisp/tar-mode (tar-octal-time):
Don't assume timestamps default to list form.
* lisp/tar-mode.el (tar-parse-octal-long-integer):
Now an obsolete alias for tar-parse-octal-integer.
* src/keyboard.c (decode_timer): Adjust to changes to
time decoding functions elsewhere.
* src/timefns.c: Include bignum.h, limits.h.
(FASTER_TIMEFNS): New macro.
(WARN_OBSOLETE_TIMESTAMPS, CURRENT_TIME_LIST)
(timespec_hz, trillion, ztrillion):
New constants.
(make_timeval): Use TIME_T_MAX instead of its definiens.
(check_time_validity, time_add, time_subtract):
Remove.  All uses removed.
(disassemble_lisp_time): Remove; old code now folded into
decode_lisp_time.  All callers changed.
(invalid_hz, s_ns_to_double, ticks_hz_list4, mpz_set_time)
(timespec_mpz, timespec_ticks, time_hz_ticks)
(lisp_time_hz_ticks, lisp_time_seconds)
(time_form_stamp, lisp_time_form_stamp, decode_ticks_hz)
(decode_lisp_time, mpz_time, list4_to_timespec):
New functions.
(decode_float_time, decode_time_components, lisp_to_timespec):
Adjust to new struct lisp_time, which does not lose
information like the old one did.
(enum timeform): New enum.
(decode_time_components): New arg FORM.  All callers changed.
RESULT and DRESULT are now mutually exclusive; no callers need
to change because of this.
(decode_time_components, lisp_time_struct)
(lisp_seconds_argument, time_arith, make_lisp_time, Ffloat_time)
(Fencode_time):
Add support for (TICKS . HZ) form.
(DECODE_SECS_ONLY): New constant.
(lisp_time_struct): 2nd arg is now enum timeform, not int.
All callers changed.
(check_tm_member): Support bignums.m
(Fencode_time): Add new two-arg functionality.
* src/systime.h (struct lisp_time): Now ticks+hz rather than
hi+lo+us+ps, since ticks+hz does not lose info.
* test/src/systime-tests.el (time-equal-p-nil-nil):
New test.

6 years agoExport converting mpz to [u]intmax
Paul Eggert [Wed, 3 Oct 2018 16:10:01 +0000 (09:10 -0700)]
Export converting mpz to [u]intmax

This refactoring will help improve timestamp handling later
(Bug#32902).
* src/bignum.c (mpz_set_uintmax): Move to bignum.h,
and make inline.
(mpz_set_uintmax_slow): Now extern.
(mpz_to_intmax, mpz_to_uintmax): New functions, with
implementation taken from the old bignum_to_intmax
and bignum_to_uintmax.
(bignum_to_intmax, bignum_to_uintmax): Use them.

6 years agoCoalesce duplicate make_lisp_timeval etc.
Paul Eggert [Wed, 3 Oct 2018 16:10:00 +0000 (09:10 -0700)]
Coalesce duplicate make_lisp_timeval etc.

* src/sysdep.c (timeval_to_timespec, make_lisp_timeval):
Coalesce duplicate definitions (Bug#32902).

6 years agoMove timestamp-related stuff to timefns.c
Paul Eggert [Wed, 3 Oct 2018 16:10:00 +0000 (09:10 -0700)]
Move timestamp-related stuff to timefns.c

This does not change behavior; it’s just long-overdue
refactoring (Bug#32902).
* src/emacs.c (main): Call init_timefns, syms_of_timefns.
* src/timefns.c: New file, containing timestamp-related stuff
from editfns.c and sysdep.c.
* src/Makefile.in (base_obj): Add timefns.o.
* src/editfns.c: Simplify by moving a big chunk to timefns.c.
Do not include systime.h, sys/resource.h, sys/param.h,
strftime.h, coding.h.
(HAVE_TZALLOC_BUG, TM_YEAR_BASE, HAVE_TM_GMTOFF, tzeqlen)
(local_tz, utc_tz, emacs_localtime_rz, emacs_mktime_z)
(invalid_time_zone_specification, xtzfree, tzlookup)
(TIME_T_MIN, TIME_T_MAX, time_overflow, invalid_time)
(check_time_validity, hi_time, lo_time, Fcurrent_time)
(time_add, time_subtract, time_arith, Ftime_add)
(Ftime_subtract, Ftime_less_p, Fget_internal_run_time)
(make_lisp_time, disassemble_lisp_time, decode_float_time)
(lisp_to_timespec, lisp_time_struct, lisp_time_argument)
(lisp_seconds_argument, Ffloat_time, emacs_nmemftime)
(Fformat_time_string, format_time_string, Fdecode_time)
(check_tm_member, Fencode_time, Fcurrent_time_string)
(tm_gmtoff, Fcurrent_time_zone, Fset_time_zone_rule)
(emacs_getenv_TZ, emacs_setenv_TZ): Move to timefns.c.
* src/emacs.c (main): Adjust to initialization changes.
* src/sysdep.c: Include <sys/resource.h> if it's present.
Regularize includes a bit.
(Fget_internal_run_time): Move here from editfns.c.
(init_timefns, syms_of_timefns): New functions.
* src/w32.h (w32_get_internal_run_time): Move decl here
so that it need not be cloned.
* test/src/editfns-tests.el:
* test/src/editfns-tests.el (format-time-string-with-zone)
(format-time-string-with-outlandish-zone)
(editfns-tests--have-leap-seconds)
(format-time-string-with-bignum-on-32-bit):
Move to ...
* test/src/timefns-tests.el: ... this new file.

6 years ago* lisp/simple.el (transient-mark-mode): Correct documentation. (Bug#32956)
Charles A. Roelli [Sat, 6 Oct 2018 19:24:32 +0000 (21:24 +0200)]
* lisp/simple.el (transient-mark-mode): Correct documentation.  (Bug#32956)

6 years agoUpdate the locale and language database
Eli Zaretskii [Sat, 6 Oct 2018 09:38:36 +0000 (12:38 +0300)]
Update the locale and language database

* lisp/international/mule-cmds.el (locale-language-names):
Update the list of supported locales.  Use existing language
names where available.

6 years agoFix a typo in a doc string.
Eli Zaretskii [Fri, 5 Oct 2018 13:51:17 +0000 (16:51 +0300)]
Fix a typo in a doc string.

* lisp/window.el (display-buffer-alist): Fix a typo in a doc string.
Reported by Michael Heerdegen <michael_heerdegen@web.de>.

6 years agoMake nneething allow CRLF-encoded files (bug#32940)
Katsumi Yamaoka [Fri, 5 Oct 2018 00:22:20 +0000 (00:22 +0000)]
Make nneething allow CRLF-encoded files (bug#32940)

* lisp/gnus/nneething.el (nneething-request-article):
Bind coding system to raw-text instead of binary when reading a file,
that may be CRLF-encoded (bug#32940).

6 years agoFurther fix to eieio-persistent
Eric Abrahamsen [Sun, 8 Apr 2018 23:49:20 +0000 (16:49 -0700)]
Further fix to eieio-persistent

* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
  Make handling of hash tables and vectors recursive. This is
  necessary because the write process, in `eieio-override-prin1' is
  also recursive. With any luck, this will be the last fix of its
  kind. If that's true, cherry-pick to Emacs 26.2 later on.

6 years agoAvoid ridiculously high stack limit requests on macOS
Eli Zaretskii [Thu, 4 Oct 2018 16:13:17 +0000 (19:13 +0300)]
Avoid ridiculously high stack limit requests on macOS

* src/emacs.c (main): Avoid wraparound in subtraction of
rlim_t values, in case rlim_t is an unsigned type.  (Bug#32338)

6 years agoSome reaarangements in tramp*.texi
Michael Albinus [Thu, 4 Oct 2018 07:46:14 +0000 (09:46 +0200)]
Some reaarangements in tramp*.texi

* doc/misc/trampver.texi (trampfn): Change check for definition of macro.
(tramp-bug-report-address): New variable.

* doc/misc/tramp.texi (Top, Bug Reports): Use it.

6 years agoFix emacs_re_safe_alloca calculation
Paul Eggert [Wed, 3 Oct 2018 22:55:43 +0000 (15:55 -0700)]
Fix emacs_re_safe_alloca calculation

Problem and draft fix noted by Eli Zaretskii in:
https://lists.gnu.org/r/emacs-devel/2018-10/msg00022.html
* src/emacs.c (main): Fix arithmetic used in calculation
of emacs_re_safe_alloca.

6 years ago* Makefile.in (uninstall): Remove some stray icon files.
Glenn Morris [Wed, 3 Oct 2018 21:08:28 +0000 (17:08 -0400)]
* Makefile.in (uninstall): Remove some stray icon files.

6 years agoTweak Makefile emacs-module.h handling
Glenn Morris [Wed, 3 Oct 2018 20:47:01 +0000 (16:47 -0400)]
Tweak Makefile emacs-module.h handling

* Makefile.in (install-arch-indep, uninstall): Respect DESTDIR.
Handle whitespace.  Remove non-portable mkdir argument.

6 years agoInstall emacs-module.h (Bug#31929)
Philipp Stephani [Thu, 20 Sep 2018 12:03:29 +0000 (14:03 +0200)]
Install emacs-module.h (Bug#31929)

* Makefile.in (includedir): New variable.
(install-arch-indep): Install emacs-module.h.
(uninstall): Uninstall emacs-module.h.

6 years agoImprove documentation of 'read-hide-char'
Charles A. Roelli [Wed, 3 Oct 2018 17:59:34 +0000 (19:59 +0200)]
Improve documentation of 'read-hide-char'

* src/minibuf.c (syms_of_minibuf) <Vread_hide_char>: Clarify
documentation and mention where else the variable is used.
* doc/lispref/minibuf.texi (Reading a Password): Add an index
entry for 'read-hide-char'.

6 years ago* doc/misc/trampver.texi (trampfn): Call `unmacro' prior defining
Michael Albinus [Wed, 3 Oct 2018 17:34:02 +0000 (19:34 +0200)]
* doc/misc/trampver.texi (trampfn): Call `unmacro' prior defining

* doc/misc/trampver.texi (trampfn): Call `unmacro' prior
defining.  trampver.texi is included several times; it raises an
error otherwise.

6 years ago; Merge from origin/emacs-26
Glenn Morris [Wed, 3 Oct 2018 16:25:27 +0000 (09:25 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

99f45ee (origin/emacs-26) In follow mode, prevent the cursor resting ...

6 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 3 Oct 2018 16:25:26 +0000 (09:25 -0700)]
Merge from origin/emacs-26

ea77c65 Revert "Temporary workaround for bug #32848 for branch emacs-26"
2c8ea46 Revert "* etc/NEWS: Note setting make-cursor-line-fully-visib...
f8df6f2 * etc/NEWS: Note setting make-cursor-line-fully-visible to ni...
cdca208 Fix note about interactive advice (Bug#32905)
508c40e Comple fix for Bug#32550

6 years ago; Merge from origin/emacs-26
Glenn Morris [Wed, 3 Oct 2018 16:25:26 +0000 (09:25 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

35b56a2 ; Auto-commit of loaddefs files.

6 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 3 Oct 2018 16:25:26 +0000 (09:25 -0700)]
Merge from origin/emacs-26

9c028d6 * lisp/savehist.el (savehist-mode): Doc fix.  (Bug#32889)
3a2b5a7 ; * lisp/bindings.el (bindings--define-key): Doc fix.  (Bug#3...
6a7a869 Org manual: Rewrite the Org Mobile section

# Conflicts:
# lisp/savehist.el

6 years ago; Merge from origin/emacs-26
Glenn Morris [Wed, 3 Oct 2018 16:23:16 +0000 (09:23 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

6650751 Temporary workaround for bug #32848 for branch emacs-26

6 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 3 Oct 2018 16:23:16 +0000 (09:23 -0700)]
Merge from origin/emacs-26

7296b6f Improve cl-do, cl-do* docstrings
d416109 Avoid returning early in 'while-no-input' due to subprocesses
e8a4d94 Cleanup when opening a new terminal fails. (Bug#32794)

# Conflicts:
# etc/NEWS

6 years agoIn follow mode, prevent the cursor resting on a partially displayed line
Alan Mackenzie [Wed, 3 Oct 2018 15:57:15 +0000 (15:57 +0000)]
In follow mode, prevent the cursor resting on a partially displayed line

Don't merge to master.  This fixes bug #32848

* lisp/follow.el (follow-adjust-window): If point ends up in a partially
displayed line in a left hand or middle window, move it one line
forward, to
prevent unwanted scrolling should make-cursor-line-fully-visible be
non-nil.

6 years agoRevert "Temporary workaround for bug #32848 for branch emacs-26"
Alan Mackenzie [Wed, 3 Oct 2018 12:08:59 +0000 (12:08 +0000)]
Revert "Temporary workaround for bug #32848 for branch emacs-26"

This reverts commit 6650751ce73413d05599df07a9c5bc70744260f3.

6 years agoRevert "* etc/NEWS: Note setting make-cursor-line-fully-visible to nil in follow...
Alan Mackenzie [Wed, 3 Oct 2018 12:08:27 +0000 (12:08 +0000)]
Revert "* etc/NEWS: Note setting make-cursor-line-fully-visible to nil in follow-mode"

This reverts commit f3c8f4bde2de2b9d42c44f5e44f34c427bebdc58.

6 years ago* etc/NEWS: Note setting make-cursor-line-fully-visible to nil in follow-mode
Alan Mackenzie [Sun, 30 Sep 2018 15:58:40 +0000 (15:58 +0000)]
* etc/NEWS: Note setting make-cursor-line-fully-visible to nil in follow-mode

Also re-insert the "temporary note" explaining --- and +++.

6 years agoPut follow-mode's engine on pre-redisplay-hook instead of post-command-hook
Alan Mackenzie [Wed, 3 Oct 2018 10:45:59 +0000 (10:45 +0000)]
Put follow-mode's engine on pre-redisplay-hook instead of post-command-hook

This fixes bug #32874.

* lisp/follow.el (follow-mode): Put follow-pre-redisplay-function onto
pre-redisplay-function instead of putting follow-post-command-hook onto
post-command-hook.  Amend the removal operation analogously.
(follow-pre-redisplay-function): New function.

6 years agoFix note about interactive advice (Bug#32905)
Noam Postavsky [Tue, 2 Oct 2018 23:56:43 +0000 (19:56 -0400)]
Fix note about interactive advice (Bug#32905)

* doc/lispref/functions.texi (Core Advising Primitives): Add missing
':', and finish the sentence fragment.

6 years ago* lisp/emacs-lisp/autoload.el (autoload-ignored-definitions): New var
Stefan Monnier [Tue, 2 Oct 2018 16:37:04 +0000 (12:37 -0400)]
* lisp/emacs-lisp/autoload.el (autoload-ignored-definitions): New var

(autoload-generate-file-autoloads): Use it.

6 years agoRearrangements in tramp*.texi
Michael Albinus [Tue, 2 Oct 2018 14:51:51 +0000 (16:51 +0200)]
Rearrangements in tramp*.texi

* doc/misc/trampver.texi (trampfn): New macro, taken from tramp.texi.

* doc/misc/tramp.texi (trampfn): Moved to trampver.texi.
(Top): Add sections `System Requirement' and `Basic Installation'.

6 years ago* lisp/vc/vc.el (vc-checkin): Simplify 'run-hook' call.
Charles A. Roelli [Mon, 1 Oct 2018 19:41:11 +0000 (21:41 +0200)]
* lisp/vc/vc.el (vc-checkin): Simplify 'run-hook' call.

6 years agoUse `float-time' in tramp-sh.el where needed
Michael Albinus [Mon, 1 Oct 2018 12:34:35 +0000 (14:34 +0200)]
Use `float-time' in tramp-sh.el where needed

* lisp/net/tramp-sh.el (tramp-sh-handle-verify-visited-file-modtime):
Use `float-time'.

6 years agoMinor edits in tramp.texi
Michael Albinus [Mon, 1 Oct 2018 12:33:51 +0000 (14:33 +0200)]
Minor edits in tramp.texi

* doc/misc/tramp.texi (Password handling): Say "user option".
(Remote shell setup): Say "environment variable".
(External packages): Add `non-essential' to variable index.

6 years agoComple fix for Bug#32550
Michael Albinus [Mon, 1 Oct 2018 12:17:27 +0000 (14:17 +0200)]
Comple fix for Bug#32550

* lisp/net/tramp.el (tramp-rfn-eshadow-update-overlay):
Use `save-excursion'.  This completes the fix of Bug#32550.

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Oct 2018 11:23:39 +0000 (07:23 -0400)]
; Auto-commit of loaddefs files.

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 1 Oct 2018 10:23:16 +0000 (06:23 -0400)]
; Auto-commit of loaddefs files.

6 years ago* lisp/savehist.el (savehist-mode): Doc fix. (Bug#32889)
Eli Zaretskii [Mon, 1 Oct 2018 07:45:33 +0000 (10:45 +0300)]
* lisp/savehist.el (savehist-mode): Doc fix.  (Bug#32889)

6 years ago; * lisp/bindings.el (bindings--define-key): Doc fix. (Bug#32885)
Eli Zaretskii [Mon, 1 Oct 2018 07:19:27 +0000 (10:19 +0300)]
; * lisp/bindings.el (bindings--define-key): Doc fix.  (Bug#32885)

6 years agoAutomate support for `sql-indent' ELPA package
Michael R. Mauger [Mon, 1 Oct 2018 04:12:51 +0000 (00:12 -0400)]
Automate support for `sql-indent' ELPA package

* progmodes/lisp/sql.el (sql-use-indent-support): New variable.
(sql-is-indent-available): New function.
(sql-indent-enable): Use above.
(sql-mode-hook, sql-interactive-mode-hook): Add `sql-indent-enable'.

6 years ago* doc/emacs/help.texi (Misc Help): Document 'info-other-window'.
Charles A. Roelli [Sun, 30 Sep 2018 15:05:29 +0000 (17:05 +0200)]
* doc/emacs/help.texi (Misc Help): Document 'info-other-window'.

6 years agoDocument 2d54710c36: vc-git-stash & *vc-dir*
Sam Steingold [Sun, 30 Sep 2018 12:32:29 +0000 (08:32 -0400)]
Document 2d54710c36: vc-git-stash & *vc-dir*

6 years agoOrg manual: Rewrite the Org Mobile section
Nicolas Goaziou [Sat, 29 Sep 2018 14:40:42 +0000 (16:40 +0200)]
Org manual: Rewrite the Org Mobile section

* doc/misc/org.texi (Org Mobile): Rewritten from "MobileOrg" section.
Remove all references to non-free software.
Moved into "Miscellaneous", much like Org Crypt library. No longer an
appendix.
(Footnotes): Remove a reference to "MobileOrg".
(Bug#32722)

6 years agoAllow 'make-cursor-line-fully-visible' name a function
Eli Zaretskii [Sun, 30 Sep 2018 11:14:59 +0000 (14:14 +0300)]
Allow 'make-cursor-line-fully-visible' name a function

* src/xdisp.c (cursor_row_fully_visible_p): Handle the case of
make-cursor-line-fully-visible being a function.  Accept a 3rd
argument; if non-zero, assume the caller already tested the
conditions for the cursor being fully-visible, and don't
recheck them.  All callers changed.
(try_cursor_movement, try_window_id): Call
cursor_row_fully_visible_p instead of testing the value of
make-cursor-line-fully-visible directly.
(syms_of_xdisp) <make-cursor-line-fully-visible>: Update the
doc string.  Define a symbol Qmake_cursor_line_fully_visible.
(Bug#32848)

* lisp/cus-start.el (standard): Update the Custom form.

* etc/NEWS: Mention the change in possible values of
'make-cursor-line-fully-visible'.

6 years agoTemporary workaround for bug #32848 for branch emacs-26
Alan Mackenzie [Sun, 30 Sep 2018 10:46:26 +0000 (10:46 +0000)]
Temporary workaround for bug #32848 for branch emacs-26

Do not merge with master.

* lisp/follow.el (follow-mode): Set make-cursor-line-fully-visible to nil
buffer locally whilst follow-mode is active.

6 years agoMerge from origin/emacs-26
Alan Third [Sat, 29 Sep 2018 16:08:43 +0000 (17:08 +0100)]
Merge from origin/emacs-26

9ad0f1d15c Fix deprecation warning
7946445962 Make all NS drawing be done from drawRect
41fa88b99b ; Fix some doc typos

6 years ago; Add myself to MAINTAINERS file
Alan Third [Sat, 29 Sep 2018 13:47:23 +0000 (14:47 +0100)]
; Add myself to MAINTAINERS file

6 years agoRework time-* functions in Tramp
Michael Albinus [Sat, 29 Sep 2018 13:33:48 +0000 (15:33 +0200)]
Rework time-* functions in Tramp

* doc/misc/emacs-mime.texi (time-date): Add time-equal-p.

* lisp/net/tramp-compat.el (tramp-compat-time-equal-p): New defsubst.

* lisp/net/tramp.el (tramp-file-name-handler): Remove `debug'
error handler.
(tramp-half-a-year): Remove.
(tramp-time-dont-know, tramp-time-doesnt-exist): New defconst.
(tramp-time-diff): Remove compat code.
(tramp-handle-set-visited-file-modtime)
(tramp-handle-verify-visited-file-modtime):
* lisp/net/tramp-adb.el (tramp-do-parse-file-attributes-with-ls)
(tramp-adb-handle-set-file-times):
* lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-newer-than-file-p):
Use `tramp-time-dont-know', `tramp-time-doesnt-exist' and
`tramp-compat-time-equal-p'.
(tramp-sh-handle-verify-visited-file-modtime): Simplify check.

* lisp/net/tramp-smb.el (tramp-smb-handle-file-attributes)
(tramp-smb-read-file-entry): Use `tramp-time-dont-know'.
(tramp-smb-handle-insert-directory): Adapt half-a-year check.

* src/editfns.c (Ftime_equal_p): Adapt docstring.

* test/lisp/net/tramp-tests.el
(tramp-test19-directory-files-and-attributes)
(tramp-test22-file-times): Use `tramp-compat-time-equal-p' and
`tramp-time-dont-know'.
(tramp-test23-visited-file-modtime): Extend test.

6 years agoFix minor problem in tramp-handle-substitute-in-file-name
Michael Albinus [Sat, 29 Sep 2018 11:46:59 +0000 (13:46 +0200)]
Fix minor problem in tramp-handle-substitute-in-file-name

* lisp/net/tramp.el (tramp-handle-substitute-in-file-name):
Suppress cygwin-mount file name handlers.

6 years agoFinish fix for Bug#21559
Michael Albinus [Sat, 29 Sep 2018 10:40:15 +0000 (12:40 +0200)]
Finish fix for Bug#21559

* lisp/vc/vc-git.el (vc-git--call):
If `revert-buffer-in-progress-p' flag is set, prepend
"GIT_OPTIONAL_LOCKS=0" to "process-environment".  (Bug#21559)

6 years agoIbuffer filter by modes: Accept several mode names
Tino Calancha [Sat, 29 Sep 2018 09:40:46 +0000 (18:40 +0900)]
Ibuffer filter by modes: Accept several mode names

Extend all mode filters so that they handle >1 mode.
For instance, if the users want to filter all buffers in
C or C++ mode, then they can call the filter interactively
with input: 'c-mode,c++-mode' (Bug#32731).

* lisp/ibuf-macs.el(define-ibuffer-filter): Add key :accept-list.
If the value of this key is non-nil, then the filter accepts
either a single qualifier or a list of them; in the latter case,
the resultant filter is the `or' composition of the individual ones.

* lisp/ibuf-ext.el (ibuffer-filter-by-used-mode)
(ibuffer-filter-by-mode, ibuffer-filter-by-derived-mode)
Set :accept-list value non-nil.
Interactively, accept a comma separated list of mode names.

* etc/NEWS(Ibuffer): Announce this change.

Co-authored-by: Noam Postavsky <npostavs@gmail.com>
6 years agoImprove cl-do, cl-do* docstrings
Tino Calancha [Sat, 29 Sep 2018 09:06:03 +0000 (18:06 +0900)]
Improve cl-do, cl-do* docstrings

* lisp/emacs-lisp/cl-macs.el(cl-do, cl-do*):
Improve docstring (Bug#32803).

6 years agoAvoid writing empty abbrev tables
Allen Li [Mon, 1 Jan 2018 04:33:21 +0000 (20:33 -0800)]
Avoid writing empty abbrev tables

Fixes bug#29923

'insert-abbrev-table-description' with a non-nil READABLE inserts Lisp
forms suitable for evaluation to restore the defined abbrevs.  We
don't have to insert a form for tables that do not have any abbrevs.

To implement this, we need to filter out system abbrevs before
checking if a table is empty, because system abbrevs were previously
skipped in the 'abbrev--write' call, at which point we would already
have started inserting the beginning of a table definition form.

* lisp/abbrev.el (insert-abbrev-table-description):
Skip inserting empty tables when READABLE is non-nil.
Clarify behavior in documentation string.
(abbrev--write): Remove system abbrev check.

* doc/lispref/abbrevs.texi (Abbrev Tables): Document behavior
with empty tables.

* etc/NEWS: Mention the change in behavior of
'insert-abbrev-table-description'.

6 years agoAvoid returning early in 'while-no-input' due to subprocesses
Eli Zaretskii [Sat, 29 Sep 2018 07:11:08 +0000 (10:11 +0300)]
Avoid returning early in 'while-no-input' due to subprocesses

* src/keyboard.c (kbd_buffer_store_buffered_event): Support
also the internal buffer-switch events.
(syms_of_keyboard) <Qbuffer_switch>: New DEFSYM.

* lisp/subr.el (while-no-input-ignore-events): Ignore
'buffer-switch' events.  Reported by Michael Heerdegen
<michael_heerdegen@web.de>.

* etc/NEWS: Mention the change in behavior of 'while-no-input'

6 years agoSupport mode aliases in 'provided-mode-derived-p'
Andrew Schwartzmeyer [Tue, 25 Sep 2018 04:09:39 +0000 (21:09 -0700)]
Support mode aliases in 'provided-mode-derived-p'

* lisp/subr.el (provided-mode-derived-p): Check aliases of
MODES as well as MODES themselves.  (Bug#32795)

* test/lisp/subr-tests.el (provided-mode-derived-p): New test.

Copyright-paperwork-exempt: yes

6 years agoAllow user customization to affect display of *Find* buffer.
Trevor Murphy [Sat, 22 Sep 2018 23:42:20 +0000 (16:42 -0700)]
Allow user customization to affect display of *Find* buffer.

* lisp/find-dired.el (find-dired): Use 'pop-to-buffer-same-window'
instead of 'switch-to-buffer'.

6 years agoCleanup when opening a new terminal fails. (Bug#32794)
John Shahid [Fri, 21 Sep 2018 15:15:10 +0000 (11:15 -0400)]
Cleanup when opening a new terminal fails. (Bug#32794)

* src/term.c (init_tty): Call delete_terminal_internal if emacs_open
fail.
* src/terminal.c (delete_terminal): Move some code into
delete_terminal_internal and call it.
(delete_terminal_internal): New function.
* src/termhooks.h: Prototype for delete_terminal_internal.

6 years ago* etc/NEWS.18: Use outline-mode and a more standard format
Stefan Monnier [Fri, 28 Sep 2018 19:54:15 +0000 (15:54 -0400)]
* etc/NEWS.18: Use outline-mode and a more standard format

6 years agoFix deprecation warning
Alan Third [Wed, 26 Sep 2018 21:21:37 +0000 (22:21 +0100)]
Fix deprecation warning

* src/nsterm.m (ns_term_init): Use writeToFile or writeToURL as
required.

6 years agoMake all NS drawing be done from drawRect
Alan Third [Fri, 28 Sep 2018 19:23:07 +0000 (20:23 +0100)]
Make all NS drawing be done from drawRect

See bug#31904 and bug#32812.

* src/nsterm.m (ns_update_begin): Don't lock focus, only clip if there
is already a view focused.
(ns_update_end): Don't mess with view focusing any more.
(ns_focus): Only clip drawing if there is already a focused view,
otherwise mark area dirty for later drawing.  Renamed ns_clip_to_rect.
All callers changed.
(ns_unfocus): Don't unfocus the view any more.  Renamed
ns_reset_clipping. All callers changed.
(ns_clip_to_row): Update to match ns_clip_to_rect.
(ns_clear_frame):
(ns_clear_frame_area):
(ns_draw_fringe_bitmap):
(ns_draw_window_cursor):
(ns_draw_vertical_window_border):
(ns_draw_window_divider):
(ns_dumpglyphs_stretch):
(ns_draw_glyph_string): Only draw if ns_focus or ns_clip_to_row
return YES.
(ns_copy_bits): Remove superfluous calls to ns_(un)focus.
(ns_flush_display): New function.

6 years ago* etc/NEWS.1-17: Use outline-mode and a more standard format
Stefan Monnier [Fri, 28 Sep 2018 18:56:58 +0000 (14:56 -0400)]
* etc/NEWS.1-17: Use outline-mode and a more standard format

6 years ago; Fix some doc typos
Glenn Morris [Fri, 28 Sep 2018 18:02:52 +0000 (14:02 -0400)]
; Fix some doc typos

6 years agoRename time-equal to time-equal-p
Paul Eggert [Fri, 28 Sep 2018 17:32:41 +0000 (10:32 -0700)]
Rename time-equal to time-equal-p

This is for consistency with time-less-p.
* doc/lispref/os.texi (Time Calculations), etc/NEWS:
* src/editfns.c (Ftime_equal_p, syms_of_editfns):
* test/lisp/emacs-lisp/timer-tests.el (timer-test-multiple-of-time):
Rename.

6 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 28 Sep 2018 14:54:24 +0000 (07:54 -0700)]
Merge from origin/emacs-26

1908173 (origin/emacs-26) Fix Bug#32828
7f5086d * lisp/net/shr.el (shr-copy-url): Fix docstring.
d309994 Fix typos in documentation
25cdd65 ; Spellcheck two more documentation strings
c8bda05 ; * lisp/simple.el (save-interprogram-paste-before-kill): Fix...
dc7fdee * doc/emacs/kmacro.texi (Basic Keyboard Macro): Mention old b...
17766a1 Improve docs of functions/variables related to 'display-buffer'
a363931 * lisp/mouse.el (tear-off-window): Fix non-mouse use (bug#32799)
8b8a4c0 Improve documentation of directory-local variables
c9c9756 Don't use obsolete variable 'save-place' in documentation
ca208e8 Use save-place-mode instead of save-place

6 years agolisp/vc/vc-git.el (vc-git-stash): Respect vc-dir marked files
Sam Steingold [Fri, 28 Sep 2018 14:51:05 +0000 (10:51 -0400)]
lisp/vc/vc-git.el (vc-git-stash): Respect vc-dir marked files

6 years agoFix Bug#32828
Michael Albinus [Fri, 28 Sep 2018 10:51:25 +0000 (12:51 +0200)]
Fix Bug#32828

* lisp/net/dbus.el (dbus-init-bus): Return number of connections,
as promised by the docstring.  (Bug#32828)

6 years agotime-equal, and time values of infinity and NaN
Paul Eggert [Fri, 28 Sep 2018 01:28:27 +0000 (18:28 -0700)]
time-equal, and time values of infinity and NaN

* doc/lispref/os.texi (Time Calculations):
Document time-equal, and the behavior on NaNs and infinities of
time-less-p, time-add, time-subtract.
* etc/NEWS: Mention the change.
* src/editfns.c (time_arith): Change last arg from function
to bool.  All callers changed.  Do the right thing with
infinities and NaNs.
(time_cmp): New function, which handlesx infinities and NaNs.
(Ftime_less_p): Use it.
(Ftime_equal): New function.
* test/lisp/emacs-lisp/timer-tests.el (timer-test-multiple-of-time):
Use it.

6 years ago* lisp/net/shr.el (shr-copy-url): Fix docstring.
Noam Postavsky [Thu, 27 Sep 2018 23:36:09 +0000 (19:36 -0400)]
* lisp/net/shr.el (shr-copy-url): Fix docstring.

6 years agoFix typos in documentation
Eli Zaretskii [Thu, 27 Sep 2018 15:48:06 +0000 (18:48 +0300)]
Fix typos in documentation

* doc/misc/vhdl-mode.texi (Custom Indentation Functions):
* doc/misc/url.texi (Customization):
* doc/misc/tramp.texi (Overview):
* doc/misc/srecode.texi (Developing Template Functions):
* doc/misc/sieve.texi (Sieve Mode):
* doc/misc/reftex.texi (Options - Creating Citations):
* doc/misc/org.texi (Cooperation, Conflicts):
* doc/misc/gnus.texi (Misc Group Stuff):
* doc/misc/eshell.texi (Bugs and ideas):
* doc/misc/calc.texi (Summary):
* doc/man/emacsclient.1:
* doc/lispref/os.texi (Security Considerations):
* doc/lispref/control.texi (pcase Macro):
* CONTRIBUTE: Fix typos.  Reported by Mak Kolybabi
<mak@kolybabi.com>  (Bug#32853)

6 years ago* etc/NEWS: Mention syntax change in add-dir-local-variable (bug#32817)
Juri Linkov [Thu, 27 Sep 2018 00:08:09 +0000 (03:08 +0300)]
* etc/NEWS: Mention syntax change in add-dir-local-variable (bug#32817)

6 years ago* lisp/vc-bzr.el (log-view-current-tag-function): Remove unused defvar.
Charles A. Roelli [Wed, 26 Sep 2018 17:48:07 +0000 (19:48 +0200)]
* lisp/vc-bzr.el (log-view-current-tag-function): Remove unused defvar.

6 years agoCC Mode: consider tails of compound identifiers when seeking found types.
Alan Mackenzie [Wed, 26 Sep 2018 17:09:43 +0000 (17:09 +0000)]
CC Mode: consider tails of compound identifiers when seeking found types.

* lisp/progmodes/cc-engine.el (c-forward-over-token): New function, extracted
from ...
(c-forward-over-token-and-ws): Refactor to use the above.
(c-forward-type): Use c-check-qualified-type in place of c-check-type
(twice).
(c-forward-over-compound-identifier): New function.
(c-check-qualified-type): New function.

6 years agoRename add-dir-local-variables-to-string to dir-locals-to-string (bug#32817)
Juri Linkov [Tue, 25 Sep 2018 19:40:23 +0000 (22:40 +0300)]
Rename add-dir-local-variables-to-string to dir-locals-to-string (bug#32817)

6 years ago; Spellcheck two more documentation strings
Charles A. Roelli [Tue, 25 Sep 2018 19:33:00 +0000 (21:33 +0200)]
; Spellcheck two more documentation strings

* lisp/files.el (hack-local-variables):
* src/keymap.c (Ftext_char_description): Spellcheck documentation.

6 years ago; * lisp/simple.el (save-interprogram-paste-before-kill): Fix documentation.
Charles A. Roelli [Tue, 25 Sep 2018 19:29:29 +0000 (21:29 +0200)]
; * lisp/simple.el (save-interprogram-paste-before-kill): Fix documentation.