1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 00:31:01 -08:00
Commit graph

134565 commits

Author SHA1 Message Date
Paul Eggert
900276502f 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.
2018-11-13 09:32:50 -08:00
Stefan Monnier
ce1fb157e8 * lisp/files.el: Justify binding of read-circle with comments 2018-11-13 09:03:12 -05:00
Noam Postavsky
197bf4eaac 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).
2018-11-13 08:25:35 -05:00
Michael Albinus
b8d5075476 ; Cosmetic changes in etc/NEWS 2018-11-13 11:04:20 +01:00
Glenn Morris
73ba6f16d1 ; Merge from origin/emacs-26
The following commit was skipped:

e3b3683 (origin/emacs-26) Bump Emacs version to 26.1.90
2018-11-12 09:38:27 -08:00
Glenn Morris
f8e4a8b260 Merge from origin/emacs-26
189c49e * etc/AUTHORS: Update.
9723c21 ; ChangeLog.3 update
2018-11-12 09:38:27 -08:00
Glenn Morris
db80043fb6 ; Merge from origin/emacs-26
The following commit was skipped:

1d79c2e Work around dumping bug on GNU/Linux ppc64le
2018-11-12 09:38:27 -08:00
Glenn Morris
23209e2c19 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
2018-11-12 09:38:27 -08:00
Nicolas Petton
e3b3683660
Bump Emacs version to 26.1.90
* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 26.1.90.
2018-11-12 16:45:23 +01:00
Nicolas Petton
189c49ebd8
* etc/AUTHORS: Update. 2018-11-12 16:43:30 +01:00
Nicolas Petton
9723c214a5
; ChangeLog.3 update 2018-11-12 16:42:49 +01:00
Sam Steingold
db711687c3 maybe_disable_address_randomization always returns "int argc"
maybe_disable_address_randomization needs a consistent signature
regardless of HAVE_PERSONALITY_ADDR_NO_RANDOMIZE.
2018-11-12 09:10:11 -05:00
Paul Eggert
1d79c2ebd9 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.
2018-11-11 22:35:10 -08:00
Paul Eggert
c14eab222c 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.
2018-11-11 22:20:39 -08:00
Paul Eggert
b87c874aa1 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.
2018-11-11 10:03:32 -08:00
Paul Eggert
2917238758 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.
2018-11-11 10:03:32 -08:00
Simen Heggestøyl
2523ac9fa3 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.
2018-11-11 18:57:39 +01:00
Eli Zaretskii
913c001f43 * lisp/files.el (write-file): Clarify the doc string. (Bug#33339) 2018-11-11 18:17:51 +02:00
Simen Heggestøyl
d614b84fa4 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.
2018-11-11 10:31:51 +01:00
Glenn Morris
a004d3bbba ; * test/src/editfns-tests.el (test-group-name): Ignore getent errors. 2018-11-10 19:15:59 -08:00
Glenn Morris
c30f24d03d * test/src/editfns-tests.el (test-group-name): Improve test.
Make more portable and hopefully more robust using getent.  (Bug#33195)
2018-11-10 19:13:20 -08:00
Eli Zaretskii
8c2778a9fb 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.
2018-11-10 22:22:39 +02:00
Eli Zaretskii
1a3d471d87 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)
2018-11-10 22:14:42 +02:00
Charles A. Roelli
c7b8a51b79 ; * doc/lispref/functions.texi (Anonymous Functions): Fix typo. 2018-11-10 20:32:36 +01:00
Glenn Morris
663613a1c0 * test/src/editfns-tests.el (test-group-name): Small fix.
Do not assume user 1000 has group name = user name.
2018-11-10 10:37:47 -08:00
Paul Eggert
9cd23a2914 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.
2018-11-10 09:04:42 -08:00
Michael Albinus
a062fc4137 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.
2018-11-10 16:03:12 +01:00
Michael Albinus
55f3f21b39 * lisp/net/tramp.el (tramp-get-local-gid): Use `group-name' if available. 2018-11-10 15:55:23 +01:00
Allen Li
70c75167ed Add setter for 'xref-marker-ring-length'
* lisp/progmodes/xref.el (xref-marker-ring-length): Add setter.
* etc/NEWS: Document last change.  (Bug#32849)
2018-11-10 11:43:39 +02:00
Allen Li
5578112e18 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.
2018-11-10 11:41:51 +02:00
Eli Zaretskii
705adc2376 Fix last commit
* doc/lispref/os.texi (User Identification): Fix function name
of 'group-name'.
2018-11-10 11:32:14 +02:00
Eli Zaretskii
d6b7b60cd0 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.
2018-11-10 11:16:17 +02:00
Jules Tamagnan
ffb4c76d99 src/editfns.c (group-name): New function. 2018-11-10 10:06:50 +02:00
Stefan Monnier
92296de42b * 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.
2018-11-09 09:51:54 -05:00
Eli Zaretskii
4f0e54223a 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.
2018-11-09 11:22:46 +02:00
Eli Zaretskii
a3242cc459 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'.
2018-11-09 11:13:32 +02:00
Noam Postavsky
39e85a0c6c 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).
2018-11-08 20:13:56 -05:00
Pierre-Yves Luyten
f3345dee4b 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.
2018-11-08 16:37:23 -08:00
Juri Linkov
3450970dac * lisp/windmove.el (windmove-create-window): New defcustom (bug#32790).
(windmove-do-window-select): Use it.
2018-11-08 23:27:49 +02:00
Martin Rudalics
fa605f242e 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.
2018-11-08 20:20:13 +01:00
Michael Albinus
48f6f28132 * doc/misc/tramp.texi (Password handling): Explain Ange FTP case. 2018-11-08 12:48:54 +01:00
Michael Albinus
b61f6c9ac0 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.
2018-11-08 12:21:48 +01:00
Juri Linkov
6b7e492f6c 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.
2018-11-08 00:52:50 +02:00
Juri Linkov
7aa5056b57 * 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.
2018-11-08 00:42:28 +02:00
Juri Linkov
25ab0980c7 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
2018-11-08 00:33:05 +02:00
Juri Linkov
fdbe4035ac * 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)
2018-11-08 00:27:58 +02:00
Juri Linkov
4254caa2d3 * 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.
2018-11-08 00:20:16 +02:00
Michael Albinus
811d9291fc * lisp/net/tramp.el (tramp-get-debug-buffer): Fix error in setting local map. 2018-11-07 16:07:25 +01:00
Eli Zaretskii
aa556596fa 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.
2018-11-06 17:49:58 +02:00
Michael Albinus
3abe7bfe30 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.
2018-11-06 15:48:05 +01:00