]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 Jun 2018 11:32:59 +0000 (07:32 -0400)]
; Auto-commit of loaddefs files.

6 years agoObsolete image-jpeg-p
Robert Pluim [Thu, 24 May 2018 15:28:11 +0000 (17:28 +0200)]
Obsolete image-jpeg-p

* lisp/image.el (image-jpeg-p): Declare obsolete.

6 years agoFdirectory_files_and_attributes doc string clarification
Lars Ingebrigtsen [Thu, 31 May 2018 11:51:45 +0000 (13:51 +0200)]
Fdirectory_files_and_attributes doc string clarification

* src/dired.c (Fdirectory_files_and_attributes): Clarify what data
is returned.

6 years agoAmend c-before-change-check-unbalanced-strings to handle a quote at EOB.
Alan Mackenzie [Thu, 31 May 2018 11:32:15 +0000 (11:32 +0000)]
Amend c-before-change-check-unbalanced-strings to handle a quote at EOB.

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Before
going back a sexp from the \n marked with a string-fence syntax-table text
property, check that it is indeed a \n.  If not, simply delete that text
property from the isolated quote, not the quote and the \n which otherwise
delimit an unterminated string.  Should we encounter a double quote marked
with a string-fence syntax-table text property at the end of the last line,
remove that property.

6 years agoWork around GCC bug 81401
Paul Eggert [Wed, 30 May 2018 19:59:59 +0000 (12:59 -0700)]
Work around GCC bug 81401

* src/xterm.c (x_draw_glyphless_glyph_string_foreground):
Make the buffer a byte longer than it needs to be, if
--enable-gcc-warnings.

6 years agobibtex-search-entry: Reuse the window displaying the buffer.
Roland Winkler [Wed, 30 May 2018 15:24:46 +0000 (10:24 -0500)]
bibtex-search-entry: Reuse the window displaying the buffer.

* textmodes/bibtex.el (bibtex-reposition-window): New optional arg
pos.
(bibtex-search-crossref, bibtex-search-entry): Use it.
(bibtex-search-entry): If possible, reuse the window displaying
the buffer that contains the entry found.

6 years agobibtex-mark-entry: Display no message.
Roland Winkler [Wed, 30 May 2018 15:23:22 +0000 (10:23 -0500)]
bibtex-mark-entry: Display no message.

* textmodes/bibtex.el (bibtex-mark-entry): Display no message.

6 years agobibtex-format-entry: Preserve opt-alt if possible.
Roland Winkler [Wed, 30 May 2018 15:21:57 +0000 (10:21 -0500)]
bibtex-format-entry: Preserve opt-alt if possible.

* textmodes/bibtex.el (bibtex-format-entry):
Preserve opt-alt unless its removal is selected.
(bibtex-parse-entry):  New optional arg keep-opt-alt.

6 years agoAdd Imenu support to CSS mode and its derivatives
Simen Heggestøyl [Tue, 29 May 2018 17:14:34 +0000 (19:14 +0200)]
Add Imenu support to CSS mode and its derivatives

* lisp/textmodes/css-mode.el (css--join-nested-selectors)
(css--prev-index-position, css--extract-index-name): New helper
functions for supporting Imenu.
(css-mode): Set `imenu-space-replacement',
`imenu-prev-index-position-function', and
`imenu-extract-index-name-function'.
(css-current-defun-name): Reuse `css--prev-index-position' and
`css--extract-index-name' to support nested selectors.

* test/lisp/textmodes/css-mode-tests.el (css-test-current-defun-name):
Fix character index.
(css-test-join-nested-selectors): New tests for
`css--join-nested-selectors'.

* etc/NEWS: Add news entry.

6 years agoAllow access to MS-Windows Registry from Lisp programs
Eli Zaretskii [Tue, 29 May 2018 17:52:17 +0000 (20:52 +0300)]
Allow access to MS-Windows Registry from Lisp programs

* src/w32.c (g_b_init_reg_open_key_ex_w)
(g_b_init_reg_query_value_ex_w)
(g_b_init_expand_environment_strings_w): New init flags.
(globals_of_w32): Initialize them at startup.
(RegOpenKeyExW_Proc, RegQueryValueExW_Proc)
(ExpandEnvironmentStringsW_Proc): New function typedefs.
(reg_open_key_ex_w, reg_query_value_ex_w)
(expand_environment_strings_w): New wrapper function.
(w32_read_registry): New function.
* src/w32fns.c (Fw32_read_registry) [WINDOWSNT]: New primitive.
(syms_of_w32fns) [WINDOWSNT]: Defsubr it.  DEFSYM "HKLM", "HKCU",
etc. root keys.

* etc/NEWS: Mention the new primitive.

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

6 years agoMerge from origin/emacs-26
Michael Albinus [Tue, 29 May 2018 10:45:47 +0000 (12:45 +0200)]
Merge from origin/emacs-26

13963a3a5c * doc/misc/tramp.texi (All): Use @code instead of @option ...
6e5f19ada4 Fix Bug#31605

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

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

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

6 years ago; Merge from origin/emacs-26
Michael Albinus [Tue, 29 May 2018 08:07:24 +0000 (10:07 +0200)]
; Merge from origin/emacs-26

The following commit was skipped:

e8912d5be9 Sync with Tramp 2.3.4-pre

6 years agoMerge from origin/emacs-26
Michael Albinus [Tue, 29 May 2018 08:07:23 +0000 (10:07 +0200)]
Merge from origin/emacs-26

9a7a2e919a ; ChangeLog.3: Remove stray phrase.

6 years ago; Merge from origin/emacs-26
Michael Albinus [Tue, 29 May 2018 08:07:23 +0000 (10:07 +0200)]
; Merge from origin/emacs-26

The following commit was skipped:

038063651e Bump Emacs version to 26.1.50

6 years agoMerge from origin/emacs-26
Michael Albinus [Tue, 29 May 2018 08:07:21 +0000 (10:07 +0200)]
Merge from origin/emacs-26

9d6a3ac73a Mention pcase as a fifth conditional form
567cb9046d Overhaul pcase documentation
4d7e54acff Use EXPVAL in docstrings of patterns defined using pcase-d...
7e8227ed68 Introduce EXPVAL for pcase, pcase-defmacro docstrings
e6de5b3d51 Ensure pcase doc shows `QPAT first among extensions

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

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

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

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

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

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

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

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

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

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

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

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

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

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

6 years agoMake cl-print respect print-level and print-length (bug#31559)
Gemini Lasswell [Sun, 27 May 2018 18:38:00 +0000 (11:38 -0700)]
Make cl-print respect print-level and print-length (bug#31559)

* lisp/emacs-lisp/cl-print.el (cl-print--depth): New variable.
(cl-print-object) <cons>: Print ellipsis if printing depth greater
than 'print-level' or length of list greater than 'print-length'.
(cl-print-object) <vector>: Truncate printing with ellipsis if
vector is longer than 'print-length'.
(cl-print-object) <cl-structure-object>: Truncate printing with
ellipsis if structure has more slots than 'print-length'.
(cl-print-object) <:around>: Bind 'cl-print--depth'.
* test/lisp/emacs-lisp/cl-print-tests.el
(cl-print-tests-3, cl-print-tests-4): New tests.

6 years agoPlace epg-pinentry-mode varalias before defcustom
Basil L. Contovounesios [Sat, 26 May 2018 11:09:15 +0000 (12:09 +0100)]
Place epg-pinentry-mode varalias before defcustom

This is needed to avoid losing user settings made under the obsolete
name (Bug#31603).
* lisp/epa.el (epa-pinentry-mode): Move obsolete varalias from here...
* lisp/epg-config.el (epg-pinentry-mode): ...to here.

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

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

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

Suggested by Drew Adams (Bug#31311).

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

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

Suggested by Drew Adams (Bug#31311).

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

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

Suggested by Drew Adams (Bug#31311).

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

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

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

6 years agoPort .gdbinit to unsigned-pointer platforms
Paul Eggert [Sun, 27 May 2018 00:32:56 +0000 (17:32 -0700)]
Port .gdbinit to unsigned-pointer platforms

* src/.gdbinit (Lisp_Object_Printer.to_string):
Don’t assume that GDB treats C pointers as signed integers.
Problem found with GDB Fedora 8.1-15.fc28.

6 years agoGNOME moved URLs for its active bug reports
Paul Eggert [Sat, 26 May 2018 23:42:52 +0000 (16:42 -0700)]
GNOME moved URLs for its active bug reports

* src/emacs.c (main) [USE_GTK]:
* src/gtkutil.c (xg_display_close):
* src/xterm.c (x_connection_closed):
Update GNOME bug report URLs.

6 years agoDon’t set EMACS=t if Bash is 4.4 or newer
Paul Eggert [Sat, 26 May 2018 20:29:06 +0000 (13:29 -0700)]
Don’t set EMACS=t if Bash is 4.4 or newer

(Thanks to Stefan Monnier for improvements to this patch.)
* lisp/term.el (term--bash-needs-EMACS-status): New var.
(term--bash-needs-EMACSp): New function.
(term-exec-1): Use it instead of always setting EMACS.

6 years agoreplace-tests.el: Refactor undo tests
Tino Calancha [Sat, 26 May 2018 15:58:48 +0000 (00:58 +0900)]
replace-tests.el: Refactor undo tests

* test/lisp/replace-tests.el (replace-tests-bind-read-string): New variable.
(replace-tests-with-undo): Add helper macro to generate the boilerplate code.
(replace-tests--query-replace-undo, query-replace-undo-bug31073)
(query-replace-undo-bug31492, query-replace-undo-bug31538): Use it.

6 years ago; * etc/NEWS: Call out recently removed aliases in epa.el.
Eli Zaretskii [Sat, 26 May 2018 15:39:16 +0000 (18:39 +0300)]
; * etc/NEWS: Call out recently removed aliases in epa.el.

6 years agoMake `tramp-make-tramp-file-name' calls consistent.
Michael Albinus [Sat, 26 May 2018 12:29:06 +0000 (14:29 +0200)]
Make `tramp-make-tramp-file-name' calls consistent.

* lisp/net/tramp.el (tramp-get-buffer)
(tramp-handle-file-name-as-directory)
(tramp-handle-file-name-directory, tramp-handle-file-remote-p)
(tramp-handle-file-truename, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name)
(tramp-gvfs-get-remote-uid, tramp-gvfs-get-remote-gid)
(tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-sh-handle-expand-file-name, )
(tramp-sh-handle-process-file, tramp-get-remote-path):
* lisp/net/tramp-smb.el (tramp-smb-handle-expand-file-name)
(tramp-smb-handle-process-file): Make `tramp-make-tramp-file-name'
calls consistent.

6 years ago* etc/HELLO: Add a few more scripts.
Eli Zaretskii [Sat, 26 May 2018 12:11:20 +0000 (15:11 +0300)]
* etc/HELLO: Add a few more scripts.

6 years agoreplace-tests.el: Fix broken tests
Tino Calancha [Sat, 26 May 2018 03:45:55 +0000 (12:45 +0900)]
replace-tests.el: Fix broken tests

After previous commit, all tests using helper function
`replace-tests-clauses' fail: during the expansion
of macro `replace-tests-with-undo', the function
`replace-tests-clauses' is unbound.

Delete those helpers and reimplement test
`query-replace-undo-bug31538'.
* test/lisp/replace-tests.el (query-replace-undo-bug31538):
Reimplement this test without using any helper function/macro.

6 years agoquery-replace undo: Handle when user edits the replacement string
Tino Calancha [Sat, 26 May 2018 02:28:21 +0000 (11:28 +0900)]
query-replace undo: Handle when user edits the replacement string

* lisp/replace.el (perform-replace): Update the replacement string
after the user edit it (Fix Bug#31538).

* test/lisp/replace-tests.el (replace-tests-clauses): New function.
(replace-tests-bind-read-string): New variable.
(replace-tests-with-undo): Macro to create boilerplate code.
(query-replace-undo-bug31073): Use it.
(query-replace-undo-bug31538): New test.

6 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 25 May 2018 16:45:34 +0000 (09:45 -0700)]
Merge from origin/emacs-26

07f8f9b (origin/emacs-26) ; * lisp/ldefs-boot.el: Update.
5cec2b0 * etc/HISTORY: Update for Emacs 26.1 release.
7c474e1 * etc/AUTHORS: Update.
ddc7bea ; * ChangeLog.3: Update.
3557460 ; * admin/authors.el: Update.
2f44d2d Note caveat for backward regexp searching in docstring (Bug#3...
3145d08 Update backtrace in Emacs Lisp Intro
43a9c26 Move window-point in bibtex-search-entry
4bb2741 More fixes of Intro to Emacs Lisp
c57c226 ; * doc/emacs/misc.texi (FFAP): Fix a typo.  (Bug#31580)
0a51113 Add a footnote to Emacs Lisp Intro
5eabe4a ; * doc/emacs/msdos.texi (ls in Lisp): Fix a typo.  (Bug#31575)
d5e0ceb * lisp/help.el (with-help-window): Doc fix.  (Bug#31574)
e7952bd Fix some cross-references in emacs-lisp-intro.texi
a897959 Minor copyedits in Emacs manual in macos.texi

Conflicts:
lisp/ldefs-boot.el

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

6 years agoFix file name completion in Tramp
Michael Albinus [Thu, 24 May 2018 14:55:16 +0000 (16:55 +0200)]
Fix file name completion in Tramp

* lisp/net/tramp.el (tramp-handle-file-name-directory): Fix case
of localname starts w/o a slash.

* test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name):
Extend test.

6 years agoFix Bug#31558
Michael Albinus [Thu, 24 May 2018 12:32:12 +0000 (14:32 +0200)]
Fix Bug#31558

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

* lisp/net/tramp.el (tramp-ignored-file-name-regexp): Use type regexp.

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

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

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

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

6 years agoHonor print-charset-text-property value of nil (Bug#31376)
Noam Postavsky [Fri, 11 May 2018 17:44:46 +0000 (13:44 -0400)]
Honor print-charset-text-property value of nil (Bug#31376)

* src/print.c (print_check_string_charset_prop): Move check
for nil Vprint_charset_text_property from here...
(print_prune_string_charset): ... to here.
(syms_of_print) <print-charset-text-property>: Clarify that any
non-boolean values are treated the same as `default'.
* doc/lispref/streams.texi (Output Variables): Add
print-prune-string-charset.
* test/src/print-tests.el (print-charset-text-property-nil)
(print-charset-text-property-default)
(print-charset-text-property-t): New tests.
(print-tests--prints-with-charset-p): New helper function.

6 years agoAvoid messing up buffer list when starting gud (Bug#22374)
Michael Welsh Duggan [Sun, 23 Nov 2014 23:34:28 +0000 (18:34 -0500)]
Avoid messing up buffer list when starting gud (Bug#22374)

* lisp/progmodes/gud.el (gud-common-init): Use `display-buffer'
instead of `switch-to-buffer'.

6 years agoMove epa-pinentry-mode to epg-config (Bug#26298)
Noam Postavsky [Sun, 29 Apr 2018 14:32:03 +0000 (10:32 -0400)]
Move epa-pinentry-mode to epg-config (Bug#26298)

* lisp/epa.el (epa-pinentry-mode): Make into obsolete alias for...
* lisp/epg-config.el (epg-pinentry-mode): ...this new user option.
* lisp/epg.el (epg-context): Use it as the default value for
pinentry-mode.
* etc/NEWS: Announce name change.

* lisp/epa-file.el (epa-file-insert-file-contents)
(epa-file-write-region):
* lisp/epa.el (epa-decrypt-file, epa-sign-file)
(epa-encrypt-file, epa-decrypt-region)
(epa-sign-region, epa-encrypt-region): Don't change
epg-context-pinentry-mode from the default.

6 years agoDrop some epg/epa backwards compat code for ancient Emacs versions
Noam Postavsky [Mon, 30 Apr 2018 12:49:11 +0000 (08:49 -0400)]
Drop some epg/epa backwards compat code for ancient Emacs versions

* lisp/epa.el (epa--select-safe-coding-system): Remove,
`select-safe-coding-system' has been present since Emacs 20.3.
(epa--encode-coding-string, epa--decode-coding-string):
* lisp/epg.el (epg--decode-coding-string, epg--encode-coding-string)
(epg--clear-string): Remove, the corresponding Emacs functions are so
old they don't show up in NEWS.  Furthermore, the fallback for
the *-coding-string functions was `identity' which wouldn't have
worked anyway, since it only takes a single argument.
(epg--make-temp-file): Remove, `make-temp-file' has been present since
Emacs 21.1.
* lisp/epg-config.el (epg-gpg-program, epg-gpgsm-program)
(epg-gpgconf-program, epg-gpg-home-directory)
(epg-passphrase-coding-system, epg-debug): Remove unneeded :group
parameter.

6 years agoFix corner case in query-replace-regexp undo
Tino Calancha [Wed, 23 May 2018 09:20:36 +0000 (18:20 +0900)]
Fix corner case in query-replace-regexp undo

This commit fixes Bug#31492.
* lisp/replace.el (replace-match-maybe-edit): Preserve match data.

* test/lisp/replace-tests.el (query-replace-undo-bug31492): Add test.

6 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 23 May 2018 08:37:54 +0000 (01:37 -0700)]
Merge from origin/emacs-26

e3f00f5 (origin/emacs-26) Clarify when to use advice-add vs add-function
c0f3e6b Minor formatting tweak in the Emacs manual
fadf653 Update comments in Intro to Emacs Lisp
52ccb24 ; * doc/os.texi (Batch Mode): use = after --eval
d65430f * etc/NEWS: Mention change in `edebug-prin1-to-string'.
ef4aec1 ; * doc/lispref/hash.texi (Defining Hash): Fix typos.
2981952 Another attempt to fix sql.el
b1b96d7 Update binding of 'M-.' in Intro to Emacs Lisp
b239a09 Fix a typo in last change in sql.el
0d8bae5 Fix capitalization of mail headers
845fe03 Fix buffer names in sql.el
a3885f5 Minor fixes in the Emacs manual
542f830 Fix a typo in rmail.texi
eb0bc6f * etc/PROBLEMS: Document Bug#31305.

Conflicts:
doc/emacs/sending.texi
etc/NEWS

6 years ago; Merge from origin/emacs-26
Glenn Morris [Wed, 23 May 2018 08:35:06 +0000 (01:35 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

152a556 (gnus-blocked-images): Clarify privacy implications

6 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 23 May 2018 08:35:05 +0000 (01:35 -0700)]
Merge from origin/emacs-26

73bc6f8 Fix a typo in describing input methods
6b4bafe ; Add a comment to emacs-lisp-intro.texi

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

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

6 years agoMore helpful docstrings for tests of electric-tests.el
João Távora [Tue, 22 May 2018 21:40:48 +0000 (22:40 +0100)]
More helpful docstrings for tests of electric-tests.el

* test/lisp/electric-tests.el (electric-pair-define-test-form):
Improve automatically generated docstring.

6 years agoWork around GCC bug with function attributes
Paul Eggert [Tue, 22 May 2018 20:05:19 +0000 (13:05 -0700)]
Work around GCC bug with function attributes

* src/alloc.c (PNTR_ADD): Put attributes after ‘static’ and before
returned type.  Problem reported by Eli Zaretskii in:
https://lists.gnu.org/r/emacs-devel/2018-05/msg00559.html

6 years agoFix failed assertion when load-force-doc-strings
Paul Eggert [Tue, 22 May 2018 19:26:22 +0000 (12:26 -0700)]
Fix failed assertion when load-force-doc-strings

Problem reported by Philipp Stephani (Bug#31556).
* src/lread.c (read_vector): When load_force_doc_strings, check
for byte code vectors that are invalid because they are too short.
* test/src/lread-tests.el (lread-invalid-bytecodes): New test.

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

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

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

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

6 years agoMinor tweaks to recent fix for Bug#31545
Paul Eggert [Tue, 22 May 2018 16:13:20 +0000 (09:13 -0700)]
Minor tweaks to recent fix for Bug#31545

* src/xwidget.c (webkit_javascript_finished_cb)
(Fxwidget_webkit_execute_script): Use intptr_t to avoid warnings
in the (unlikely) event that ptrdiff_t and void * differ in width.
(save_script_callback): Simplify by using xlispdstrdup and
larger_vector.

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

6 years agoExtend secrets.el by searching for object paths.
Michael Albinus [Tue, 22 May 2018 09:32:33 +0000 (11:32 +0200)]
Extend secrets.el by searching for object paths.

* lisp/net/secrets.el (secrets-search-item-paths): New function.
(secrets-search-items): Use it.
(secrets-create-item): Adapt docstring.

* test/lisp/net/secrets-tests.el (secrets-test04-search): Extend test.

6 years ago* src/xwidget.c (Fxwidget_webkit_goto_uri): Encode uri.
Andreas Schwab [Mon, 21 May 2018 22:00:11 +0000 (00:00 +0200)]
* src/xwidget.c (Fxwidget_webkit_goto_uri): Encode uri.

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

6 years agoMake xwidget-webkit-execute-script safe against GC (Bug#31545)
Andreas Schwab [Mon, 21 May 2018 12:18:24 +0000 (14:18 +0200)]
Make xwidget-webkit-execute-script safe against GC (Bug#31545)

* src/xwidget.h (struct xwidget): Add script_callbacks.
* src/xwidget.c (save_script_callback): New function.
(Fxwidget_webkit_execute_script): Use it.  Encode script
before passing to execution engine.  Always use a callback.
(webkit_javascript_finished_cb): Deallocate script.
(kill_buffer_xwidgets): Deallocate remaining scripts.
(Fxwidget_webkit_zoom): Doc fix.
(Fxwidget_resize): Doc fix.

6 years agoDon’t assume ordering in make-process/mix-stderr
Paul Eggert [Mon, 21 May 2018 19:30:09 +0000 (12:30 -0700)]
Don’t assume ordering in make-process/mix-stderr

* test/src/process-tests.el (process-tests--mixable): New function.
(make-process/mix-stderr): Don’t assume stdout is merged before
stderr.  POSIX does not require this, and the assumption failed to
hold on my Fedora 28 platform.  See Bug#31214.

6 years agoUpdate from Gnulib
Paul Eggert [Mon, 21 May 2018 18:42:18 +0000 (11:42 -0700)]
Update from Gnulib

This incorporates:
2018-05-21 crypto: omit stream ops Emacs doesn’t need
2018-05-13 truncate: Fix compilation error on Android
2018-05-13 imaxdiv: Fix compilation error on Android
2018-05-13 Support selective inclusion of recent mingw.org headers
2018-05-13 Add cross-compilation guesses for Linux systems sans glibc
2018-05-13 stdioext: Fix compilation errors with newer Android headers
2018-05-07 af_alg: Pacify --enable-gcc-warnings
2018-05-06 af_alg: Fix bug with streams that are not at position 0
2018-05-06 Followup to 'af_alg: New module'
2018-05-05 crypto/{md5,sha1,sha256,sha512}: simplify
2018-05-05 af_alg: New module
2018-05-05 af_alg: Improve function signature
2018-04-28 md5sum: Use AF_ALG when available
2018-04-28 sha512sum: Use AF_ALG when available
2018-04-28 sha256sum: Use AF_ALG when available
2018-04-28 sha1sum: Use AF_ALG when available
2018-05-05 all: Replace more http URLs by https URLs
2018-05-03 maint: port more modules to GCC 8
2018-05-03 Simplify code; drop support for Borland C++ on Windows
* admin/merge-gnulib (GNULIB_MODULES): Use crypto/md5-buffer
rather than crypto/md5, since Emacs doesn’t use the stream
operations that in recent Gnulib pull in other stuff Emacs doesn’t
need.  Similarly for crypto/sha1-buffer, crypto/sha256-buffer,
crypto/sha512-buffer.
* build-aux/config.guess, build-aux/config.sub, lib/dosname.h:
* lib/dup2.c, lib/errno.in.h, lib/euidaccess.c, lib/fcntl.c:
* lib/fcntl.in.h, lib/fpending.c, lib/fsync.c, lib/getdtablesize.c:
* lib/getopt.c, lib/gettimeofday.c, lib/inttypes.in.h, lib/md5.c:
* lib/md5.h, lib/open.c, lib/pipe2.c, lib/putenv.c, lib/sha1.c:
* lib/sha1.h, lib/sha256.c, lib/sha256.h, lib/sha512.c:
* lib/sha512.h, lib/stat-time.h, lib/stdio-impl.h, lib/stdio.in.h:
* lib/stdlib.in.h, lib/sys_stat.in.h, lib/sys_types.in.h:
* lib/timespec.h, lib/unistd.in.h, lib/utimens.c, m4/c-strtod.m4:
* m4/gnulib-common.m4, m4/inttypes.m4, m4/lstat.m4, m4/nocrash.m4:
* m4/pselect.m4, m4/readlink.m4, m4/stdio_h.m4, m4/symlink.m4:
* m4/unistd_h.m4, m4/utimens.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.

6 years agoFix Flymake's ruby-mode tests when user has "rubocop" installed
João Távora [Mon, 21 May 2018 18:23:29 +0000 (19:23 +0100)]
Fix Flymake's ruby-mode tests when user has "rubocop" installed

The Flymake test suite fails if the "rubocop" program is installed,
because the ruby-flymake-rubocop backend is selected automatically by
ruby-flymake-auto.  The test was designed for ruby-flymake-simple,
tough, and fails.

* test/lisp/progmodes/flymake-tests.el (ruby-backend): Ensure
this test runs exclusively with the ruby-flymake-simple backend.

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

6 years agoFix Bug#31489
Michael Albinus [Mon, 21 May 2018 17:48:15 +0000 (19:48 +0200)]
Fix Bug#31489

* doc/misc/tramp.texi (Frequently Asked Questions):
Mention `tramp-ignored-file-name-regexp'.  Improve index.

; * etc/NEWS: Mention `tramp-ignored-file-name-regexp'.

* lisp/net/tramp.el (tramp-ignored-file-name-regexp): New defcustom.
(tramp-tramp-file-p): Use it.  Check also for `tramp-mode'.
(tramp-file-name-handler): Don't check for `tramp-mode'.  (Bug#31489)

* test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax):
Extend test.

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

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

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

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

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

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

6 years agoRevert part of the previous change
Eli Zaretskii [Sun, 20 May 2018 18:27:42 +0000 (21:27 +0300)]
Revert part of the previous change

* doc/misc/message.texi:
* doc/misc/efaq.texi:
* doc/emacs/sending.texi:
* doc/emacs/rmail.texi: Revert the CC => Cc etc. conversions.

6 years agoUse “Cc” for email copies, as per RFC 5322.
Paul Eggert [Sun, 20 May 2018 17:47:32 +0000 (10:47 -0700)]
Use “Cc” for email copies, as per RFC 5322.

Also fix similar problems with Bcc, Fcc, In-Reply-To,
and similar email headers.  See thread starting at:
https://lists.gnu.org/r/emacs-devel/2018-05/msg00463.html

6 years ago* make-dist: Add '--no-info' option.
Noam Postavsky [Sat, 5 May 2018 02:13:18 +0000 (22:13 -0400)]
* make-dist: Add '--no-info' option.

6 years agoEnhance CC Mode's fontification, etc., of unterminated strings.
Alan Mackenzie [Sun, 20 May 2018 13:28:14 +0000 (13:28 +0000)]
Enhance CC Mode's fontification, etc., of unterminated strings.

String delimiters, including escaped new lines, of correctly terminated
strings are left in font-lock-string-face.  All others get
font-lock-warning-face.  The latter get syntax-table text properties on the
opening string delim and the "terminating EOL".

Correct two miscellaneous bugs: the handling of text properties on Java Mode's
generic delimiters; the handling of c-just-done-before-change.

* lisp/progmodes/cc-defs.el (c-point): New position 'eoll "end of logical line".
(c-characterp): New macro.

* lisp/progmodes/cc-fonts.el (c-font-lock-invalid-string): Removed.
(c-basic-matchers-before): Use a simple matcher in place of the form around
c-font-lock-invalid-string.

* lisp/progmodes/cc-langs.el (c-get-state-before-change-functions): Add
c-before-change-check-unbalanced-strings to the value for all modes except AWK
Mode.  Also add c-before-change-check-<>-operators to Java Mode, correcting an
error in that mode's handling of generic delimiters.
(c-before-font-lock-functions): Add c-after-change-re-mark-unbalanced-strings
to the value for all modes except AWK Mode.
(c-single-quotes-quote-strings, c-string-delims): New lang variables for
future enhancements.
(c-string-innards-re-alist): New lang variable.

* lisp/progmodes/cc-mode.el (c-just-done-before-change): Do not set this
variable when a change is the alteration of text properties.
(c-basic-common-init): Set parse-sexp-lookup-properties (and the XEmacs
equivalent) also for Pike Mode.
(c-neutralize-CPP-line): No longer neutralize unbalanced quotes here.
(c-unescaped-nls-in-string-p, c-multiline-string-start-is-being-detached)
(c-pps-to-string-delim, c-before-change-check-unbalanced-strings)
(c-after-change-re-mark-unbalanced-strings): New functions.
(c-after-change): Fix a bug with the handling of c-just-done-before-change.

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

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

6 years ago* etc/HELLO: More reasonable placement of 'charset' properties.
Eli Zaretskii [Sun, 20 May 2018 08:53:03 +0000 (11:53 +0300)]
* etc/HELLO: More reasonable placement of 'charset' properties.

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

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

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

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

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

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

6 years ago* admin/notes/unicode: HELLO is again UTF-8.
Paul Eggert [Sat, 19 May 2018 17:01:23 +0000 (10:01 -0700)]
* admin/notes/unicode: HELLO is again UTF-8.

6 years agoUse Enriched mode in etc/HELLO to keep charset information
Eli Zaretskii [Sat, 19 May 2018 15:17:38 +0000 (18:17 +0300)]
Use Enriched mode in etc/HELLO to keep charset information

This allows to encode HELLO in UTF-8, thus supporting the entire
repertory of Unicode, while still keeping the charset info where
that is important.  Suggested by Michael Welsh Duggan <mwd@md5i.com>.
* lisp/textmodes/enriched.el (enriched-translations): Add
translations for 'charset'.
(enriched-decode-charset, enriched-handle-charset-prop): New
functions.
* lisp/facemenu.el (facemenu-special-menu): Add sub-menu for
'charset' property.
(facemenu-set-charset): New function.
(facemenu-remove-special): Remove the 'charset' property as well.

* etc/NEWS: Announce the new feature of Enriched mode.
* etc/HELLO: Recode in UTF-8 and place under Enriched mode.

* doc/emacs/text.texi (Enriched Properties): Mention the support
for 'charset'.

6 years ago* src/alloc.c: Fix comment.
Paul Eggert [Fri, 18 May 2018 22:53:21 +0000 (15:53 -0700)]
* src/alloc.c: Fix comment.

6 years agoPort to GCC 8 -fsanitize=undefined
Paul Eggert [Fri, 18 May 2018 22:45:42 +0000 (15:45 -0700)]
Port to GCC 8 -fsanitize=undefined

In GCC 8, gcc -fsanitize=undefined flags the undefined behavior
that Emacs relies on in its XPNTR and XSYMBOL low-level functions.
Disable undefined sanitization in these functions.  Although this
disabling doesn’t suffice if DEFINE_KEY_OPS_AS_MACROS is true, it
works for -fsanitize=undefined -DINLINING=0, which is good enough.
* src/alloc.c (macro_PNTR_ADD): New macro.
(PNTR_ADD): New function and macro.
The function disables -fsanitize=undefined.
(macro_XPNTR): Use it.
* src/conf_post.h (ATTRIBUTE_NO_SANITIZE_UNDEFINED): New macro.
* src/lisp.h (XSYMBOL): Disable -fsanitize=undefined.

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

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

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

(cherry picked from commit f4d9fd3dd45f767eca33fbf1beee40da790fa74e)

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

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

6 years agoFix decoding of directories when "~" includes non-ASCII chars
Eli Zaretskii [Fri, 18 May 2018 13:34:19 +0000 (16:34 +0300)]
Fix decoding of directories when "~" includes non-ASCII chars

* src/fileio.c (Fexpand_file_name): Don't build multibyte strings
from unibyte non-ASCII strings when NAME and DEFAULT_DIRECTORY
have different multibyteness, as this adds bytes to the byte
sequence, and in some situations, e.g., when the home directory
includes non-ASCII characters, can fail file APIs.  (Bug#30755)

* lisp/startup.el (normal-top-level): Make sure default-directory
is set to a multibyte string when decoded on MS-Windows.