]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoemacsclient.c: use STDOUT_FILENO
Paul Eggert [Mon, 19 Nov 2018 18:05:11 +0000 (10:05 -0800)]
emacsclient.c: use STDOUT_FILENO

* lib-src/emacsclient.c (find_tty, handle_sigcont, main):
Use STDOUT_FILENO instead of fileno (stdout) or magic 1.

6 years agoemacsclient.c: use bool for boolean
Paul Eggert [Mon, 19 Nov 2018 17:51:57 +0000 (09:51 -0800)]
emacsclient.c: use bool for boolean

* lib-src/emacsclient.c (nowait, quiet, suppress_output, eval, tty)
(decode_options, file_name_absolute_p, get_server_config)
(strprefix, find_tty, set_socket, main):
Use bool for boolean.
(create_frame): New static var, replacing the old current_frame
and with inverted sense, as this is clearer.

6 years agoemacsclient.c: make identifiers more local
Paul Eggert [Mon, 19 Nov 2018 16:47:11 +0000 (08:47 -0800)]
emacsclient.c: make identifiers more local

* lib-src/emacsclient.c (progname, main_argc, main_argv):
(nowait, quiet, suppress_output, eval, current_frame, display):
(alt_display, parent_id, tty, alternate_editor, socket_name):
(server_file, tramp_prefix, emacs_pid, frame_parameters):
(longopts, xstrdup, send_bufffer, sblen, emacs_socket):
Now static.
(SEND_BUFFER_SIZE, send_buffer, sblen):
Now local to send_to_emacs.

6 years agoemacsclient.c: clean up preprocessing directives
Paul Eggert [Mon, 19 Nov 2018 16:32:26 +0000 (08:32 -0800)]
emacsclient.c: clean up preprocessing directives

* lib-src/emacsclient.c [WINDOWSNT]: Omit duplicate stdlib.h include.
Include min-max.h.
(EXIT_SUCCESS, EXIT_FAILURE, min): Remove; no longer needed.
(AUTH_KEY_LENGTH, SEND_BUFFER_SIZE): Now constants instead of macros.

6 years agoUpdate the calc units table
Ulrich Müller [Mon, 19 Nov 2018 15:29:56 +0000 (07:29 -0800)]
Update the calc units table

On 2018-11-16, the 26th meeting of the General Conference on Weights
and Measures (CGPM) has redefined the International System of Units by
adopting fixed values for the Planck constant, the elementary charge,
the Boltzmann constant, and the Avogadro constant:
https://www.bipm.org/utils/en/pdf/CGPM/Draft-Resolution-A-EN.pdf
* lisp/calc/calc-units.el (math-standard-units): Update according
to redefinition of the SI in 2018.

6 years ago* mouse.el (mouse-posn-property): Add comment
Stefan Monnier [Mon, 19 Nov 2018 14:12:15 +0000 (09:12 -0500)]
* mouse.el (mouse-posn-property): Add comment

6 years agoRemove uses of obsolete 'CUA' symbol property
Stefan Monnier [Mon, 19 Nov 2018 02:15:06 +0000 (21:15 -0500)]
Remove uses of obsolete 'CUA' symbol property

* lisp/emulation/cua-base.el (cua-scroll-up, cua-scroll-down):
* lisp/progmodes/subword.el (subword-forward, subword-backward):
* lisp/obsolete/crisp.el (crisp-home, crisp-end):
Remove 'CUA' prop; not used any more.

6 years ago* lisp/vc/diff-mode.el (diff-find-source-location): Use vc-working-revision
Juri Linkov [Sat, 17 Nov 2018 21:52:05 +0000 (23:52 +0200)]
* lisp/vc/diff-mode.el (diff-find-source-location): Use vc-working-revision

when diff shows changes in working revision.  (Bug#33319)
(diff-goto-source): Rename variables to avoid ambiguity.

6 years agoDon't exit Isearch while resizing windows with mouse (bug#32990)
Juri Linkov [Sat, 17 Nov 2018 21:31:52 +0000 (23:31 +0200)]
Don't exit Isearch while resizing windows with mouse (bug#32990)

* lisp/isearch.el (isearch-mouse-leave-buffer): New function.
(isearch-mode): Use isearch-mouse-leave-buffer instead of
isearch-done for mouse-leave-buffer-hook.
(isearch-done): Remove isearch-mouse-leave-buffer from
mouse-leave-buffer-hook.
(enlarge-window-horizontally, shrink-window-horizontally)
(shrink-window, mouse-drag-mode-line, mouse-drag-vertical-line):
Put property isearch-scroll with t.
(isearch-mode): Reset isearch-pre-scroll-point and
isearch-pre-move-point to nil for the case when Isearch exits
between isearch-pre-command-hook (that sets these values) and
isearch-post-command-hook (that used to reset them).

6 years ago* src/cmds.c (Fself_insert_command): Get last-command-event via (new) arg.
Stefan Monnier [Sat, 17 Nov 2018 15:47:48 +0000 (10:47 -0500)]
* src/cmds.c (Fself_insert_command): Get last-command-event via (new) arg.

6 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 16 Nov 2018 16:30:20 +0000 (08:30 -0800)]
Merge from origin/emacs-26

936a8f3 (origin/emacs-26) Document Emacs 26 behavior of Dired's 'Z' o...
99f99a1 ; Minor editing change in windows.texi
13bb665 Fix a typo in the Emacs manual

# Conflicts:
# etc/NEWS

6 years ago; Merge from origin/emacs-26
Glenn Morris [Fri, 16 Nov 2018 16:30:19 +0000 (08:30 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

a306d03 Fix tempfile creation when byte compiling

6 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 16 Nov 2018 16:30:19 +0000 (08:30 -0800)]
Merge from origin/emacs-26

edcd6b7 Small documentation correction.
168a8c2 * src/coding.c (Fcheck_coding_systems_region): Doc fix.  (Bug...
3287a7c Fix Bug#33364
acee0a8 ; Cosmetic changes in etc/NEWS
a6ef167 * test/README: Explain $REMOTE_TEMPORARY_FILE_DIRECTORY.

# Conflicts:
# etc/NEWS

6 years ago; Merge from origin/emacs-26
Glenn Morris [Fri, 16 Nov 2018 16:30:19 +0000 (08:30 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

b8bbbe5 Avoid kill-emacs-hook errors hanging batch mode

6 years agoUpdate from glibc and Gnulib
Paul Eggert [Fri, 16 Nov 2018 16:24:54 +0000 (08:24 -0800)]
Update from glibc and Gnulib

This incorporates:
2018-11-15 mktime: DEBUG_MKTIME cleanup
2018-11-15 mktime: fix non-EOVERFLOW errno handling
2018-11-15 mktime: fix bug with Y2038 DST transition
2018-11-15 mktime: make more room for overflow
2018-11-15 mktime: simplify offset guess
2018-11-15 mktime: new test for mktime failure
2018-11-15 mktime: fix EOVERFLOW bug
2018-11-13 longlong: fix comment typo
* lib/gnulib.mk.in: Regenerate.
* lib/mktime.c, m4/longlong.m4: Copy from Gnulib.

6 years ago; Further cosmetic changes in etc/NEWS
Michael Albinus [Fri, 16 Nov 2018 12:47:51 +0000 (13:47 +0100)]
; Further cosmetic changes in etc/NEWS

6 years agoMention ELPA packages which add new methods to Tramp
Michael Albinus [Fri, 16 Nov 2018 12:05:49 +0000 (13:05 +0100)]
Mention ELPA packages which add new methods to Tramp

* doc/misc/tramp.texi (Customizing Methods): Mention ELPA packages
which add new methods to Tramp.

6 years agoDocument Emacs 26 behavior of Dired's 'Z' on directories
Eli Zaretskii [Fri, 16 Nov 2018 08:19:22 +0000 (10:19 +0200)]
Document Emacs 26 behavior of Dired's 'Z' on directories

* doc/emacs/dired.texi (Operating on Files): Document behavior
of 'Z' on directories.

* etc/NEWS: Belatedly announce the new behavior of Dired's 'Z'
on directory names and on .tar.gz archives.

6 years ago; Minor editing change in windows.texi
Eli Zaretskii [Fri, 16 Nov 2018 07:54:56 +0000 (09:54 +0200)]
; Minor editing change in windows.texi

* doc/emacs/windows.texi (Window Convenience): Avoid breaking
line in the middle of a key sequence.

6 years ago* lisp/windmove.el: Directional window display (bug#32790)
Juri Linkov [Thu, 15 Nov 2018 23:40:15 +0000 (01:40 +0200)]
* lisp/windmove.el: Directional window display (bug#32790)

* lisp/windmove.el (windmove-display-no-select): New defcustom.
(windmove-display-in-direction, windmove-display-left)
(windmove-display-up, windmove-display-right)
(windmove-display-down, windmove-display-same-window)
(windmove-display-default-keybindings): New functions.

6 years ago* lisp/windmove.el: Support more prefix args (bug#32790)
Juri Linkov [Thu, 15 Nov 2018 23:09:54 +0000 (01:09 +0200)]
* lisp/windmove.el: Support more prefix args (bug#32790)

* lisp/windmove.el (windmove-left, windmove-up, windmove-right)
(windmove-down): Use prefix-numeric-value to support more prefix args
like 'C-u' and 'M--'.  Doc fix.

6 years agoFix a typo in the Emacs manual
Eli Zaretskii [Thu, 15 Nov 2018 19:59:32 +0000 (21:59 +0200)]
Fix a typo in the Emacs manual

* doc/emacs/rmail.texi (Rmail Deletion): Fix a typo.
Reported by Jorge P. de Morais Neto <jorge+list@disroot.org>
in emacs-manual-bugs@gnu.org

6 years agoFix tempfile creation when byte compiling
Paul Eggert [Sun, 21 Jan 2018 03:12:05 +0000 (19:12 -0800)]
Fix tempfile creation when byte compiling

This improves on the recent fix for master failing to build
on FreeBSD.  Suggested by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2018-01/msg00600.html
* lisp/emacs-lisp/bytecomp.el (byte-compile-file):
Put tempfile next to the target file, as was the original intent.

(cherry picked from commit 64c846738617d1d037eac0cefb6586c04317b0a1)

6 years agoFix Bug#33394
Michael Albinus [Thu, 15 Nov 2018 12:55:23 +0000 (13:55 +0100)]
Fix Bug#33394

* lisp/net/trampver.el (tramp-repository-branch)
(tramp-repository-version): Handle out-of-tree builds.  (Bug#33394)

6 years agoIsearch hit count. (Bug#29321)
Juri Linkov [Wed, 14 Nov 2018 22:23:47 +0000 (00:23 +0200)]
Isearch hit count.  (Bug#29321)

* lisp/isearch.el (isearch-lazy-count): New defcustom.
(lazy-count): New defgroup.
(lazy-count-prefix-format, lazy-count-suffix-format): New defcustom.
(isearch-lazy-count-format): New function.
(isearch-message-prefix, isearch-message-suffix): Use it.
(isearch-lazy-highlight-window-start-changed)
(isearch-lazy-highlight-window-end-changed)
(isearch-lazy-count-current, isearch-lazy-count-total)
(isearch-lazy-count-hash): New variables.
(isearch-lazy-highlight-new-loop): Reset isearch-lazy-count-total
and update isearch-lazy-count-current for isearch-message.
(isearch-lazy-highlight-update): Run full-buffer loop for
isearch-lazy-count.
(isearch-lazy-highlight-buffer-update): Count isearch-lazy-count-total.
Set isearch-lazy-count-current at the end.

6 years agoMinor copyedits in documentation of HOME handling
Eli Zaretskii [Wed, 14 Nov 2018 19:45:41 +0000 (21:45 +0200)]
Minor copyedits in documentation of HOME handling

* etc/NEWS: Reword the recent entry regarding the change in
how relative file names are interpreted in $HOME.

* doc/emacs/cmdargs.texi (General Variables): Advise against
using relative directory names in $HOME.

6 years agoFix probing for pre-1970 DST
Paul Eggert [Wed, 14 Nov 2018 19:42:59 +0000 (11:42 -0800)]
Fix probing for pre-1970 DST

* lisp/calendar/cal-dst.el (calendar-next-time-zone-transition):
Fix recently-introduced rounding bug when probing for DST
transitions before 1970 (Bug#33380).

6 years agoDocument recent change to HOME handling
Paul Eggert [Wed, 14 Nov 2018 17:31:28 +0000 (09:31 -0800)]
Document recent change to HOME handling

* doc/emacs/cmdargs.texi (General Variables):
* doc/emacs/custom.texi (Find Init):
* doc/lispref/files.texi (File Name Expansion):
* etc/NEWS: Document behavior when HOME is a relative file name.

6 years agoSmall documentation correction.
Markus Triska [Tue, 13 Nov 2018 21:42:01 +0000 (22:42 +0100)]
Small documentation correction.

* doc/lispref/windows.texi (Textual Scrolling): In the description of
scroll-up-aggressively, refer to scroll-down-aggressively instead of
a recursive reference to scroll-up-aggressively.  (Bug#33369)

6 years ago* src/coding.c (Fcheck_coding_systems_region): Doc fix. (Bug#33372)
Eli Zaretskii [Wed, 14 Nov 2018 15:59:05 +0000 (17:59 +0200)]
* src/coding.c (Fcheck_coding_systems_region): Doc fix.  (Bug#33372)

6 years agoFix a thinko in fileio.c
Eli Zaretskii [Wed, 14 Nov 2018 15:28:13 +0000 (17:28 +0200)]
Fix a thinko in fileio.c

* src/fileio.c (get_homedir): Fix last change.  Suggested by
Paul Eggert <eggert@cs.ucla.edu>.

6 years agoFix Bug#33364
Michael Albinus [Wed, 14 Nov 2018 15:19:39 +0000 (16:19 +0100)]
Fix Bug#33364

* lisp/net/tramp.el (tramp-parse-sconfig-group): Support also
"Host host1 host2 ..." syntax.  (Bug#33364)

6 years agoNew option vc-find-revision-no-save to not write revision to file
Juri Linkov [Wed, 14 Nov 2018 00:23:04 +0000 (02:23 +0200)]
New option vc-find-revision-no-save to not write revision to file

* lisp/vc/vc.el (vc-find-revision-no-save): New defcustom (bug#33319).
(vc-find-revision): Depending on vc-find-revision-no-save,
call either vc-find-revision-no-save or vc-find-revision-save.
(vc-find-revision-save): Rename from vc-find-revision.
(vc-find-revision-no-save): New function.

* lisp/vc/diff-mode.el (diff-find-source-location):
Let-bind vc-find-revision-no-save to t.

6 years agoSupport VC revisions in diff-goto-source (bug#33319)
Juri Linkov [Wed, 14 Nov 2018 00:14:52 +0000 (02:14 +0200)]
Support VC revisions in diff-goto-source (bug#33319)

* lisp/vc/diff-mode.el (diff-vc-revisions): New defvar.
(diff-find-source-location): Call vc-find-revision for
non-nil values of 'other', diff-vc-backend, diff-vc-revisions.

* lisp/vc/vc.el (vc-diff-internal): Set buffer-local
diff-vc-revisions to the list of used revisions.

* doc/emacs/files.texi (Diff Mode): Update diff-goto-source
for VC-related prefix argument.

6 years agoFix recent change in fileio.c
Eli Zaretskii [Tue, 13 Nov 2018 20:01:57 +0000 (22:01 +0200)]
Fix recent change in fileio.c

* src/fileio.c (get_homedir) [WINDOWSNT]: Convert $HOME to UTF-8.
(Fexpand_file_name): Don't convert it here.

6 years agoNo need to pass absolute program name to call-process
Glenn Morris [Tue, 13 Nov 2018 19:47:35 +0000 (14:47 -0500)]
No need to pass absolute program name to call-process

* lisp/doc-view.el (doc-view-revert-buffer):
* lisp/net/eudcb-mab.el (eudc-mab-query-internal):
Remove superfluous executable-find.

6 years agoUpdate from Gnulib
Paul Eggert [Tue, 13 Nov 2018 18:56:26 +0000 (10:56 -0800)]
Update from Gnulib

This incorporates:
2018-11-03 nstrftime: simplify test for mktime failure
2018-11-02 gnulib-common.m4: port _Noreturn to C++
2018-10-22 std-gnu11: Support Autoconf versions < 2.64
2018-10-22 Assume Autoconf >= 2.63
2018-10-16 Remove support for Ultrix
2018-10-16 getloadavg: Remove support for ConvexOS
2018-10-16 getloadavg: Remove support for Sony NEWS
2018-10-16 Remove support for Dynix/ptx
2018-10-16 fsusage: Remove support for AIX 3
2018-10-16 fsusage, stat-size, getloadavg: Remove support for AIX PS/2
2018-10-16 getloadavg: Remove support for HP-UX on m68k
2018-10-16 fsusage, mountlist: Remove support for DolphinOS
2018-10-16 getloadavg: Remove support for Alliant FX/2800
2018-10-16 getloadavg: Remove support for tek4300
2018-10-16 getloadavg: Remove support for Ardent
* build-aux/config.guess, build-aux/config.sub, lib/_Noreturn.h:
* lib/fsusage.c, lib/getgroups.c, lib/getloadavg.c:
* lib/nstrftime.c, lib/time.in.h, m4/errno_h.m4:
* m4/fsusage.m4, m4/getgroups.m4, m4/gnulib-common.m4, m4/longlong.m4:
* m4/std-gnu11.m4, m4/stdint.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate:

6 years agoRoot emacsclient no longer connects to non-root sockets
Glenn Morris [Tue, 13 Nov 2018 18:15:39 +0000 (13:15 -0500)]
Root emacsclient no longer connects to non-root sockets

* lib-src/emacsclient.c (set_local_socket): Don't ignore socket
ownership when run by root.
Ref: http://lists.gnu.org/r/emacs-devel/2018-11/msg00019.html

6 years agoAvoid byte-compilation warning in emacsbug.el
Eli Zaretskii [Tue, 13 Nov 2018 17:46:08 +0000 (19:46 +0200)]
Avoid byte-compilation warning in emacsbug.el

* lisp/mail/emacsbug.el (w32--os-description): Declare it, to
avoid byte-compilation warning.  Reported by Live System User
<nyc4bos@aol.com>.

6 years agoAct like POSIX sh if $HOME is relative
Paul Eggert [Tue, 13 Nov 2018 17:29:14 +0000 (09:29 -0800)]
Act like POSIX sh if $HOME is relative

POSIX says sh ~/foo should act like $HOME/foo even if $HOME is
relative, so be consistent with that (Bug#33255).
* admin/merge-gnulib (GNULIB_MODULES): Add dosname.
* src/buffer.c (init_buffer): Use emacs_wd to get
initial working directory with slash appended if needed.
(default-directory): Say it must be absolute.
* src/emacs.c (emacs_wd): New global variable.
(init_cmdargs): Dir arg is now char const *.
(main): Set emacs_wd.
* src/emacs.c (main) [NS_IMPL_COCOA]:
* src/fileio.c (Fexpand_file_name):
Use get_homedir instead of egetenv ("HOME").
* src/fileio.c: Include dosname.h, for IS_ABSOLUTE_FILE_NAME.
(splice_dir_file, get_homedir): New functions.
* src/xrdb.c (gethomedir): Remove.  All callers changed
to use get_homedir and splice_dir_file.
* test/src/fileio-tests.el (fileio-tests--relative-HOME): New test.

6 years ago* lisp/files.el: Justify binding of read-circle with comments
Stefan Monnier [Tue, 13 Nov 2018 14:03:12 +0000 (09:03 -0500)]
* lisp/files.el: Justify binding of read-circle with comments

6 years agoFix build fail on files.el change (Bug#32352)
Noam Postavsky [Tue, 13 Nov 2018 13:25:35 +0000 (08:25 -0500)]
Fix build fail on files.el change (Bug#32352)

* lisp/files.el (dir-locals-read-from-dir): Reduce scope of
`read-circle' let-binding to go around the `read' call only.
Otherwise it can interfere with loading of files which use the
circular read syntax (e.g., executing the setf expression in
`dir-locals-set-class-variables' may require loading gv.elc).

6 years ago; Cosmetic changes in etc/NEWS
Michael Albinus [Tue, 13 Nov 2018 10:04:20 +0000 (11:04 +0100)]
; Cosmetic changes in etc/NEWS

6 years ago; Cosmetic changes in etc/NEWS
Michael Albinus [Tue, 13 Nov 2018 08:45:42 +0000 (09:45 +0100)]
; Cosmetic changes in etc/NEWS

6 years ago* test/README: Explain $REMOTE_TEMPORARY_FILE_DIRECTORY.
Michael Albinus [Tue, 13 Nov 2018 08:44:06 +0000 (09:44 +0100)]
* test/README: Explain $REMOTE_TEMPORARY_FILE_DIRECTORY.

6 years agoAvoid kill-emacs-hook errors hanging batch mode
Glenn Morris [Wed, 24 Jan 2018 01:55:09 +0000 (20:55 -0500)]
Avoid kill-emacs-hook errors hanging batch mode

* src/emacs.c (Fkill_emacs): Prevent errors from kill-emacs-hook
hanging Emacs in batch mode.  (Bug#29955)

(cherry picked from commit 109da684c5124e22505917fe0255ca66f2a6bfc9)

6 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

e3b3683 (origin/emacs-26) Bump Emacs version to 26.1.90

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
Merge from origin/emacs-26

189c49e * etc/AUTHORS: Update.
9723c21 ; ChangeLog.3 update

6 years ago; Merge from origin/emacs-26
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

1d79c2e Work around dumping bug on GNU/Linux ppc64le

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 12 Nov 2018 17:38:27 +0000 (09:38 -0800)]
Merge from origin/emacs-26

913c001 * lisp/files.el (write-file): Clarify the doc string.  (Bug#3...
d614b84 Fix typos in midnight.el
8c2778a Improve documentation of 'move-file-to-trash'
c7b8a51 ; * doc/lispref/functions.texi (Anonymous Functions): Fix typo.
92296de * src/data.c (Ftype_of): xwidget objects are possible! (bug#3...
a3242cc Improve documentation of Diff mode
39e85a0 Note that lex bound lambda forms are not self-quoting (Bug#33...
fa605f2 Rewrite buffer display related doc-strings and doc
aa55659 Fix call to GlobalMemoryStatusEx in w32.c

# Conflicts:
# doc/emacs/files.texi
# src/data.c

6 years agoBump Emacs version to 26.1.90
Nicolas Petton [Mon, 12 Nov 2018 15:45:23 +0000 (16:45 +0100)]
Bump Emacs version to 26.1.90

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

6 years ago* etc/AUTHORS: Update.
Nicolas Petton [Mon, 12 Nov 2018 15:43:30 +0000 (16:43 +0100)]
* etc/AUTHORS: Update.

6 years ago; ChangeLog.3 update
Nicolas Petton [Mon, 12 Nov 2018 15:42:49 +0000 (16:42 +0100)]
; ChangeLog.3 update

6 years agomaybe_disable_address_randomization always returns "int argc"
Sam Steingold [Mon, 12 Nov 2018 14:10:11 +0000 (09:10 -0500)]
maybe_disable_address_randomization always returns "int argc"

maybe_disable_address_randomization needs a consistent signature
regardless of HAVE_PERSONALITY_ADDR_NO_RANDOMIZE.

6 years agoWork around dumping bug on GNU/Linux ppc64le
Paul Eggert [Mon, 12 Nov 2018 06:34:46 +0000 (22:34 -0800)]
Work around dumping bug on GNU/Linux ppc64le

Problem reported by Thomas Fitzsimmons (Bug#33174).
Do not merge to master, as we have a better fix there.
* src/Makefile.in (emacs$(EXEEXT)):
(bootstrap-emacs$(EXEEXT)):
Unset EMACS_HEAP_EXEC before invoking temacs.

6 years agoFix dumping on GNU/Linux ppc64le
Paul Eggert [Mon, 12 Nov 2018 06:18:47 +0000 (22:18 -0800)]
Fix dumping on GNU/Linux ppc64le

Problem reported by Thomas Fitzsimmons (Bug#33174).
* src/emacs.c (main): Adjust to sysdep.c changes.
* src/sysdep.c (exec_personality): New static var.
(disable_address_randomization): Remove, replacing with ...
(maybe_disable_address_randomization): ... this new function.
Do not set or use an environment variable; use a command-line
argument instead, and set the new static var.  Migrate the emacs.c
personality-change code to here, where it belongs.
(emacs_exec_file): Simplify by using new static var.

6 years agoPacify gcc -Wmaybe-uninitialized without X11-XCB
Paul Eggert [Sun, 11 Nov 2018 18:01:40 +0000 (10:01 -0800)]
Pacify gcc -Wmaybe-uninitialized without X11-XCB

I ran into this problem on Ubuntu 18.04.1 LTS.
* src/xterm.c (get_current_wm_state) [!USE_XCB]:
Mark reply_data as UNINIT here too.

6 years agoPacify gcc -Wunused-macros in older GnuTLS
Paul Eggert [Sun, 11 Nov 2018 17:58:29 +0000 (09:58 -0800)]
Pacify gcc -Wunused-macros in older GnuTLS

I ran into this problem on Ubuntu 18.04.1 LTS.
* src/gnutls.c (HAVE_GNUTLS_CIPHER_GET_IV_SIZE)
(HAVE_GNUTLS_CIPHER_GET_TAG_SIZE, HAVE_GNUTLS_DIGEST_LIST):
New macros.  This uses the same style as the other
macros that depend on GnuTLS version, as opposed to trying
to do things a bit more cleverly.
(gnutls_cipher_get_iv_size, gnutls_cipher_get_tag_size)
(gnutls_digest_list, gnutls_digest_get_name):
Define these macros only if they will be used.

6 years agoAdd masking module to CSS property list
Simen Heggestøyl [Sun, 11 Nov 2018 14:18:53 +0000 (15:18 +0100)]
Add masking module to CSS property list

* lisp/textmodes/css-mode.el (css-property-alist)
(css-value-class-alist): Add properties and value classes from CSS
Masking Module.

6 years ago* lisp/files.el (write-file): Clarify the doc string. (Bug#33339)
Eli Zaretskii [Sun, 11 Nov 2018 16:17:51 +0000 (18:17 +0200)]
* lisp/files.el (write-file): Clarify the doc string.  (Bug#33339)

6 years agoFix typos in midnight.el
Simen Heggestøyl [Sun, 11 Nov 2018 09:21:30 +0000 (10:21 +0100)]
Fix typos in midnight.el

* lisp/midnight.el (clean-buffer-list-delay-general)
(clean-buffer-list-kill-regexps)
(clean-buffer-list-kill-buffer-names): Fix docstring typos.

6 years ago; * test/src/editfns-tests.el (test-group-name): Ignore getent errors.
Glenn Morris [Sun, 11 Nov 2018 03:15:59 +0000 (19:15 -0800)]
; * test/src/editfns-tests.el (test-group-name): Ignore getent errors.

6 years ago* test/src/editfns-tests.el (test-group-name): Improve test.
Glenn Morris [Sun, 11 Nov 2018 03:13:20 +0000 (19:13 -0800)]
* test/src/editfns-tests.el (test-group-name): Improve test.

Make more portable and hopefully more robust using getent.  (Bug#33195)

6 years agoImprove documentation of 'move-file-to-trash'
Eli Zaretskii [Sat, 10 Nov 2018 20:22:39 +0000 (22:22 +0200)]
Improve documentation of 'move-file-to-trash'

* doc/emacs/files.texi (Misc File Ops): Index
move-file-to-trash.  State that the way to restore trashed
files is system-dependent.

6 years agoMake 'move-file-to-trash' behave according to the documentation
Eli Zaretskii [Sat, 10 Nov 2018 20:14:42 +0000 (22:14 +0200)]
Make 'move-file-to-trash' behave according to the documentation

* lisp/files.el (move-file-to-trash): Behave like the doc
string says: check whether 'system-move-file-to-trash' is
defined before testing that 'trash-directory' is non-nil.
(Bug#33335)

6 years ago; * doc/lispref/functions.texi (Anonymous Functions): Fix typo.
Charles A. Roelli [Sat, 10 Nov 2018 19:32:36 +0000 (20:32 +0100)]
; * doc/lispref/functions.texi (Anonymous Functions): Fix typo.

6 years ago* test/src/editfns-tests.el (test-group-name): Small fix.
Glenn Morris [Sat, 10 Nov 2018 18:37:47 +0000 (10:37 -0800)]
* test/src/editfns-tests.el (test-group-name): Small fix.

Do not assume user 1000 has group name = user name.

6 years agoDissociate controlling tty better on Darwin
Paul Eggert [Sat, 10 Nov 2018 17:00:43 +0000 (09:00 -0800)]
Dissociate controlling tty better on Darwin

* src/process.c (dissociate_controlling_tty): New function.
(create_process): Use it to dissociate controlling tty if setsid
fails, which happens on Darwin after a vfork (Bug#33154).
Do this on all platforms, not just on Darwin, as a similar
problem is plausible elsewhere.
* src/callproc.c (call_process): Use the new function here, too,
for consistency and to avoid duplicate code.

6 years agoProvide branch information for both Emacs and Tramp (Bug#33328)
Michael Albinus [Sat, 10 Nov 2018 15:03:12 +0000 (16:03 +0100)]
Provide branch information for both Emacs and Tramp (Bug#33328)

* doc/lispref/intro.texi (Version Info):
Document `emacs-repository-version' and `emacs-repository-branch'.

* etc/NEWS: Mention `emacs-repository-branch'.

* lisp/loadup.el: Initialize `emacs-repository-branch'.

* lisp/version.el (emacs-repository-branch): New variable.
(emacs-repository-branch-git, emacs-repository-get-branch):
New defuns.

* lisp/mail/emacsbug.el (report-emacs-bug):
Insert `emacs-repository-branch'.

* lisp/net/tramp.el (tramp-get-local-gid):
Use `group-name' if available.
(tramp-debug-message):
* lisp/net/tramp-cmds.el (tramp-bug): Report also
`tramp-repository-branch' and `tramp-repository-version'.

* lisp/net/trampver.el (tramp-repository-branch)
(tramp-repository-version): New defconst.
(tramp-repository-get-version): Remove.

6 years ago* lisp/net/tramp.el (tramp-get-local-gid): Use `group-name' if available.
Michael Albinus [Sat, 10 Nov 2018 14:55:23 +0000 (15:55 +0100)]
* lisp/net/tramp.el (tramp-get-local-gid): Use `group-name' if available.

6 years agoAdd setter for 'xref-marker-ring-length'
Allen Li [Thu, 25 Oct 2018 02:48:15 +0000 (20:48 -0600)]
Add setter for 'xref-marker-ring-length'

* lisp/progmodes/xref.el (xref-marker-ring-length): Add setter.
* etc/NEWS: Document last change.  (Bug#32849)

6 years agoAdd 'ring-resize' function
Allen Li [Thu, 25 Oct 2018 02:44:01 +0000 (20:44 -0600)]
Add 'ring-resize' function

* lisp/emacs-lisp/ring.el (ring-resize): New function.  (Bug#32849)
* doc/lispref/sequences.texi (Rings): Document new function 'ring-resize'.
* etc/NEWS: Document new function 'ring-resize'.
* test/lisp/emacs-lisp/ring-tests.el (ring-test-ring-resize): New tests.

6 years agoFix last commit
Eli Zaretskii [Sat, 10 Nov 2018 09:32:14 +0000 (11:32 +0200)]
Fix last commit

* doc/lispref/os.texi (User Identification): Fix function name
of 'group-name'.

6 years agoFix last change
Eli Zaretskii [Sat, 10 Nov 2018 09:16:17 +0000 (11:16 +0200)]
Fix last change

* src/editfns.c (Fgroup_name): Fix the doc string.  Move
closer to the "group" functions.
* src/w32.c (getgrgid): Return NULL if GID is not the group ID
of the user of this Emacs session

* test/src/editfns-tests.el (test-group-name): Rename from
'group-name'.  Add tests for non-Posix hosts.  Test error when
the argument to group-name is invalid.

* etc/NEWS: Fix wording of last added entry.

6 years agosrc/editfns.c (group-name): New function.
Jules Tamagnan [Tue, 30 Oct 2018 17:22:03 +0000 (10:22 -0700)]
src/editfns.c (group-name): New function.

6 years ago* src/data.c (Ftype_of): xwidget objects are possible! (bug#33294)
Stefan Monnier [Fri, 9 Nov 2018 14:51:54 +0000 (09:51 -0500)]
* src/data.c (Ftype_of): xwidget objects are possible! (bug#33294)

(syms_of_data): Define Qwidget here.
* src/xwidget.c (syms_of_xwidget): Instead of here.

6 years agoImprove doc strings generated by 'easy-mmode-define-navigation'
Eli Zaretskii [Fri, 9 Nov 2018 09:22:46 +0000 (11:22 +0200)]
Improve doc strings generated by 'easy-mmode-define-navigation'

* lisp/emacs-lisp/easy-mmode.el
(easy-mmode-define-navigation): Include the documentation of
prefix argument in the generated doc string.

6 years agoImprove documentation of Diff mode
Eli Zaretskii [Fri, 9 Nov 2018 09:13:32 +0000 (11:13 +0200)]
Improve documentation of Diff mode

* doc/emacs/files.texi (Diff Mode): Document the effect of
prefix argument on the Diff mode's commands.  Document
'diff-jump-to-old-file'.

6 years agoNote that lex bound lambda forms are not self-quoting (Bug#33199)
Noam Postavsky [Mon, 29 Oct 2018 23:01:07 +0000 (19:01 -0400)]
Note that lex bound lambda forms are not self-quoting (Bug#33199)

* doc/lispref/functions.texi (Anonymous Functions):
* lisp/subr.el (lambda): Note that under lexical binding a lambda form
yields a closure object (Bug#33199).

6 years agoAdd functions to open a bookmark in another frame
Pierre-Yves Luyten [Sat, 13 Oct 2018 20:06:41 +0000 (22:06 +0200)]
Add functions to open a bookmark in another frame

* lisp/bookmark.el (bookmark-jump-other-frame): New function.
Bind in bookmark-map.
(bookmark-bmenu-other-frame): New function.
Bind in bookmark-bmenu-mode-map.

Patch applied by Karl Fogel.

6 years ago* lisp/windmove.el (windmove-create-window): New defcustom (bug#32790).
Juri Linkov [Thu, 8 Nov 2018 21:27:49 +0000 (23:27 +0200)]
* lisp/windmove.el (windmove-create-window): New defcustom (bug#32790).

(windmove-do-window-select): Use it.

6 years agoRewrite buffer display related doc-strings and doc
Martin Rudalics [Thu, 8 Nov 2018 19:20:13 +0000 (20:20 +0100)]
Rewrite buffer display related doc-strings and doc

* lisp/window.el (display-buffer-overriding-action)
(display-buffer-alist, display-buffer-base-action)
(display-buffer-fallback-action, display-buffer-assq-regexp)
(display-buffer): Rewrite doc-strings using suggestions by
Alan Mackenzie <acm@muc.de>.
(display-buffer-use-some-frame): Adjust doc-string and
reformat code.
* doc/lispref/windows.texi (Buffer Display Action Alists):
Make docs on 'window-height', 'window-width' and
'preserve-size' entries more accurate.

6 years ago* doc/misc/tramp.texi (Password handling): Explain Ange FTP case.
Michael Albinus [Thu, 8 Nov 2018 11:48:54 +0000 (12:48 +0100)]
* doc/misc/tramp.texi (Password handling): Explain Ange FTP case.

6 years agoGet rid of own netrc parsing implementation in Tramp
Michael Albinus [Thu, 8 Nov 2018 11:21:48 +0000 (12:21 +0100)]
Get rid of own netrc parsing implementation in Tramp

* lisp/net/tramp.el (tramp-parse-netrc): Reimplement, using
`netrc-parse'.
(tramp-parse-netrc-group): Remove.

6 years agoSupport VC single file operations from Dired (bug#32596).
Juri Linkov [Wed, 7 Nov 2018 22:52:50 +0000 (00:52 +0200)]
Support VC single file operations from Dired (bug#32596).

* lisp/vc/vc.el (vc-ensure-vc-buffer): Use dired-get-filename for dired-mode.
Move error-checking outside of the last branch of cond.
(vc-dired-deduce-fileset): Remove unused error signaling.

6 years ago* lisp/vc/log-view.el: Better error handling (bug#33295).
Juri Linkov [Wed, 7 Nov 2018 22:42:28 +0000 (00:42 +0200)]
* lisp/vc/log-view.el: Better error handling (bug#33295).

* lisp/vc/log-view.el (log-view-find-revision)
(log-view-annotate-version): Add condition to signal an error
when log-view-vc-fileset contains a directory.
Use user-error instead of error.

* lisp/dired.el (dired-get-file-for-visit):
* lisp/locate.el (locate-do-setup):
Use user-error instead of error.

6 years agoAdvertise new hi-lock 'M-s h' key prefix in lisp/bindings.el
Juri Linkov [Wed, 7 Nov 2018 22:33:05 +0000 (00:33 +0200)]
Advertise new hi-lock 'M-s h' key prefix in lisp/bindings.el

https://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00104.html

6 years ago* lisp/files-x.el (modify-dir-local-variable): Use assoc-delete-all
Juri Linkov [Wed, 7 Nov 2018 22:27:58 +0000 (00:27 +0200)]
* lisp/files-x.el (modify-dir-local-variable): Use assoc-delete-all

instead of assq-delete-all for cases when mode is a subdirectory name.
(dir-locals-to-string): Call pp-to-string and string-trim-right
on values.  (Bug#32817)

6 years ago* lisp/window.el (window-state-put): Create a new window
Juri Linkov [Wed, 7 Nov 2018 22:20:16 +0000 (00:20 +0200)]
* lisp/window.el (window-state-put): Create a new window

to replace the existing one on the same frame in case
when WINDOW is not live.  (Bug#32850)

* doc/lispref/windows.texi (Window Configurations):
Describe changes related to WINDOW arg of window-state-put.

6 years ago* lisp/net/tramp.el (tramp-get-debug-buffer): Fix error in setting local map.
Michael Albinus [Wed, 7 Nov 2018 15:07:25 +0000 (16:07 +0100)]
* lisp/net/tramp.el (tramp-get-debug-buffer): Fix error in setting local map.

6 years agoFix call to GlobalMemoryStatusEx in w32.c
Eli Zaretskii [Tue, 6 Nov 2018 15:49:58 +0000 (17:49 +0200)]
Fix call to GlobalMemoryStatusEx in w32.c

* src/w32.c (system_process_attributes): Initialize the size
of the data structure passed to GlobalMemoryStatusEx,
otherwise it fails.

6 years agoHandle also port and domain in Tramp proxy definitions
Michael Albinus [Tue, 6 Nov 2018 14:48:05 +0000 (15:48 +0100)]
Handle also port and domain in Tramp proxy definitions

* doc/misc/tramp.texi (Multi-hops): Exclude ports and domains from
pattern expansion.

* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections):
Remove ad-hoc proxies.

* lisp/net/tramp-sh.el (tramp-compute-multi-hops): Handle also
port and domain in the proxy.  Propertize ad-hoc proxies.

* lisp/net/tramp.el (tramp-default-proxies-alist): Adapt docstring.

* test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect)
(tramp-test02-file-name-dissect-simplified)
(tramp-test02-file-name-dissect-separate): Extend tests.

6 years agoSupport lazy-highlight-buffer in Info (bug#29321, bug#29360).
Juri Linkov [Mon, 5 Nov 2018 21:11:30 +0000 (23:11 +0200)]
Support lazy-highlight-buffer in Info (bug#29321, bug#29360).

* lisp/isearch.el (isearch-lazy-highlight-point-min)
(isearch-lazy-highlight-point-max): New variables.
(isearch-lazy-highlight-new-loop): When lazy-highlight-buffer is
non-nil, compare (point-min) with isearch-lazy-highlight-point-min,
and (point-max) with isearch-lazy-highlight-point-max, for buffers
like Info where narrowing changes the values point-min and point-max.

6 years ago* lisp/image-mode.el (image--imagemagick-wanted-p): Check for nil filename.
Juri Linkov [Mon, 5 Nov 2018 20:57:10 +0000 (22:57 +0200)]
* lisp/image-mode.el (image--imagemagick-wanted-p): Check for nil filename.

(Bug#33241)

6 years ago* src/xfaces.c (face_at_buffer_position): Adapt lookup_basic_face call.
Glenn Morris [Sun, 4 Nov 2018 17:45:59 +0000 (09:45 -0800)]
* src/xfaces.c (face_at_buffer_position): Adapt lookup_basic_face call.

6 years agoMerge from origin/emacs-26
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
Merge from origin/emacs-26

6937c35 (origin/emacs-26) Improve recent changes in documentation of ...
c04b48c Rewrite documentation of buffer display
7cadb32 ; * doc/lispref/control.texi (pcase Macro): Fix another typo.
963f1d9 ; * doc/lispref/control.texi (pcase Macro): Fix a typo.
e824c91 Improve documentation of destructuring-binding macros

6 years ago; Merge from origin/emacs-26
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

74bc0e1 Avoid byte compilation warning in rcirc.el

6 years agoMerge from origin/emacs-26
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
Merge from origin/emacs-26

bd1d617 Avoid race in rcirc process filter (bug#33145)
88ef31a Avoid file-name errors when viewing PDF from Gnus
c939042 Avoid crashes with remapped default face in Org mode
97660fa Doc fix for checkdoc-continue
96f055b Fix a typo in autoload.el

6 years ago; Merge from origin/emacs-26
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

d53a2b6 ; Auto-commit of loaddefs files.

6 years agoMerge from origin/emacs-26
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
Merge from origin/emacs-26

9962cf9 * doc/lispref/control.texi (Destructuring patterns): New subs...