]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoDisallow reversed char ranges in `rx'
Mattias Engdegård [Tue, 12 Mar 2019 13:39:47 +0000 (14:39 +0100)]
Disallow reversed char ranges in `rx'

(any "a-Z0-9") generated "[0-9]", and (any (?9 . ?0)) generated "[9-0]".
Reversed ranges are either mistakes or abuse.  Neither should be allowed.

etc/NEWS: Explain the change.
lisp/emacs-lisp/rx.el (rx): Document.
(rx-check-any-string, rx-check-any): Add error checks for reversed ranges.
test/lisp/emacs-lisp/rx-tests.el (rx-char-any-range-bad): New test.

5 years agoRemove buggy regexp use in comint-output-filter
Paul Eggert [Tue, 19 Mar 2019 00:44:21 +0000 (17:44 -0700)]
Remove buggy regexp use in comint-output-filter

This reverts commit 2012-07-02T16:18:02!monnier@iro.umontreal.ca
which perhaps could be rethought and recommitted, and perhaps
it’s no longer needed now that comint-use-prompt-regexp
is almost always nil.
* lisp/comint.el (comint-output-filter): Don’t try to skip
repeated prompts, since comint-prompt-regexp typically begins
with "^" and the resulting "^^" in the regular expression does
not have the desired effect.  Noted by Mattias Engdegård in:
https://lists.gnu.org/r/emacs-devel/2019-03/msg00380.html

5 years agoFix more regular expression typos
Paul Eggert [Tue, 19 Mar 2019 00:02:01 +0000 (17:02 -0700)]
Fix more regular expression typos

Problem reported by Mattias Engdegård in:
https://lists.gnu.org/r/emacs-devel/2019-03/msg00548.html
except that I didn’t address the issues involving Hebrew,
or involving comint-prompt-regexp.
* lisp/align.el (align-rules-list, align-exclude-rules-list):
* lisp/auth-source-pass.el (auth-source-pass--parse-secret)
(auth-source-pass--parse-data):
* lisp/cedet/data-debug.el (data-debug-next)
(data-debug-prev, data-debug-expand-or-contract):
* lisp/comint.el (comint-within-quotes):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
* lisp/emulation/viper-ex.el (ex-cmd-complete):
* lisp/gnus/gnus-cite.el (gnus-message-search-citation-line):
* lisp/gnus/nnir.el (nnir-imap-end-of-input):
* lisp/mail/mail-extr.el (mail-extr-all-letters):
* lisp/minibuffer.el (minibuffer-maybe-quote-filename):
* lisp/nxml/rng-nxml.el (rng-complete-tag)
(rng-complete-end-tag, rng-complete-attribute-name):
* lisp/obsolete/vip.el (vip-get-ex-token, vip-get-ex-pat):
* lisp/org/org-pcomplete.el (org-thing-at-point):
* lisp/org/org.el (org-set-tags)
(org-increase-number-at-point)
(org-fill-line-break-nobreak-p):
* lisp/pcomplete.el (pcomplete-parse-comint-arguments):
* lisp/progmodes/ada-mode.el (ada-compile-goto-error):
* lisp/progmodes/cperl-mode.el (cperl-highlight-charclass)
(cperl-find-pods-heres, cperl-not-bad-style-regexp)
(cperl-regext-to-level-start):
* lisp/progmodes/ebnf-yac.el (ebnf-yac-skip-spaces):
* lisp/progmodes/flymake-proc.el (flymake-proc-master-tex-init):
* lisp/progmodes/flymake.el (flymake-diag-region):
* lisp/progmodes/fortran.el (fortran-current-line-indentation):
* lisp/progmodes/idlw-complete-structtag.el:
(idlwave-complete-structure-tag):
* lisp/progmodes/idlwave.el (idlwave-complete-sysvar-or-tag):
* lisp/progmodes/prolog.el (prolog-pred-end)
(prolog-clause-info):
* lisp/progmodes/ruby-mode.el (ruby-forward-sexp)
(ruby-backward-sexp):
* lisp/progmodes/verilog-mode.el (verilog-repair-open-comma):
* lisp/term.el (term-within-quotes):
* lisp/textmodes/bib-mode.el (bib-capitalize-title-stop-words):
* lisp/textmodes/refbib.el (r2b-capitalize-title-stop-words):
* lisp/textmodes/reftex-parse.el (reftex-nth-arg):
* lisp/textmodes/rst.el (rst-svn-rev):
* lisp/url/url-http.el (url-http-parse-response):
* test/lisp/progmodes/f90-tests.el (f90-test-bug3730):
Fix regular expression typos.

5 years ago* src/fileio.c: Don't convert \r to \n just because of C-x $
Stefan Monnier [Mon, 18 Mar 2019 18:57:10 +0000 (14:57 -0400)]
* src/fileio.c: Don't convert \r to \n just because of C-x $

(choose_write_coding_system): Setup the \r to \n conversion only if
selective-display is t.

5 years ago* lisp/locate.el (locate-mode): Setup invisibility for Dired commands
Stefan Monnier [Mon, 18 Mar 2019 18:25:49 +0000 (14:25 -0400)]
* lisp/locate.el (locate-mode): Setup invisibility for Dired commands

Also, use lexical-binding.

5 years agoEbrowse: Use invisibility-spec instead of selective-display
Stefan Monnier [Mon, 18 Mar 2019 12:09:42 +0000 (08:09 -0400)]
Ebrowse: Use invisibility-spec instead of selective-display

* lisp/progmodes/ebrowse.el: Use lexical-binding.
(ebrowse-tree-mode): Set invisibility-spec instead of selective-display.
(ebrowse--hidden-p, ebrowse--hide, ebrowse--unhide): New functions.
(ebrowse-expand-all, ebrowse-unhide-base-classes, ebrowse-hide-line)
(ebrowse-mouse-1-in-tree-buffer): Use them.
(ebrowse-output): Remove macro, use with-silent-modifications instead.
(ebrowse-save-selective): Remove macro, not needed any more.
(ebrowse-trim-string, ebrowse-read, ebrowse-collapse-fn):
No need to pay attention to \r.
(ebrowse-files-list): Use push.
(ebrowse-view/find-file-and-search-pattern): Use add-hook here...
(ebrowse-find-pattern): ...and remove-hook here.
(ebrowse-view/find-position): Use add/remove-hook.

5 years agoDired: Use invisibility-spec instead of selective-display
Stefan Monnier [Sun, 17 Mar 2019 17:35:20 +0000 (13:35 -0400)]
Dired: Use invisibility-spec instead of selective-display

* lisp/dired.el (dired-subdir-regexp): No need to pay attention to \r.
(dired-remember-hidden): Use pcase-dolist and dired--hidden-p.
(dired-mode): Set invisibility-spec instead of selective-display.
(dired--hidden-p, dired--hide, dired--unhide, dired--find-hidden-pos):
New functions.
(dired-move-to-end-of-filename): Use dired--hidden-p.
(dired-next-subdir): No need to pay attention to \r.
(dired-fun-in-all-buffers): Use push.

* lisp/dired-aux.el (dired-unhide-subdir, dired-hide-subdir, dired-hide-all):
Use the new functions and with-silent-modifications.
(dired-add-entry): Use dired--hidden-p.
(dired-goto-subdir): No need to pay attention to \r.
(dired-hide-check): Remove.
(dired-subdir-hidden-p): Use dired--hidden-p.
(dired-do-find-regexp): Use file-name-as-directory.

5 years ago* doc/lispref/display.texi (Selective Display): Declare it deprecated
Stefan Monnier [Sun, 17 Mar 2019 16:16:59 +0000 (12:16 -0400)]
* doc/lispref/display.texi (Selective Display): Declare it deprecated

5 years agoFix 'define-charset' after dumping with pdumper
Eli Zaretskii [Sun, 17 Mar 2019 15:49:37 +0000 (17:49 +0200)]
Fix 'define-charset' after dumping with pdumper

* src/charset.h:
* src/charset.c (charset_table_used): Now static.
(charset_table_size): Now extern.
* src/pdumper.c (dump_charset_table): Dump the entire
charset_table, not just its used slots.  (Bug#34826)

5 years ago* lisp/subr.el (combine-change-calls-1): Don't combine syntax-ppss flushes
Stefan Monnier [Sun, 17 Mar 2019 00:11:45 +0000 (20:11 -0400)]
* lisp/subr.el (combine-change-calls-1): Don't combine syntax-ppss flushes

5 years agoDefine macros to abstract support for external menu/tool-bars
Alexander Gramiak [Sat, 16 Mar 2019 17:46:39 +0000 (11:46 -0600)]
Define macros to abstract support for external menu/tool-bars

* src/lisp.h (HAVE_EXT_MENU_BAR)
(HAVE_EXT_TOOL_BAR): Define.

*src/dispnew.c:
*src/frame.c:
*src/frame.h:
*src/keyboard.c:
*src/menu.c:
*src/menu.h:
*src/window.c:
*src/window.h:
*src/xdisp.c:
*src/xfns: Use the new macros.

5 years agoFix regexp typo in vc-git--program-version
Paul Eggert [Sat, 16 Mar 2019 18:38:36 +0000 (11:38 -0700)]
Fix regexp typo in vc-git--program-version

* lisp/vc/vc-git.el (vc-git--program-version):
Require a period after ".windows", instead of allowing any char.

5 years agoFix some ineffective backslashes in string literals
Mattias Engdegård [Sat, 16 Mar 2019 18:36:38 +0000 (11:36 -0700)]
Fix some ineffective backslashes in string literals

Deal with lone backslashes that have no effect in string literals,
but indicate that something is amiss.

* lisp/auth-source-pass.el (auth-source-pass-entries):
* lisp/textmodes/artist.el (artist-figlet-get-font-list-windows):
* lisp/org/ob-abc.el (org-babel-expand-body:abc, org-babel-execute:abc):
* lisp/org/ob-forth.el (org-babel-forth-session-execute):
* lisp/vc/vc-git.el (vc-git--program-version):
Add backslash in regexp for correctness.

* lisp/gnus/nnmail.el (nnmail-split-abbrev-alist):
Replace `\||' with `\\|' to follow the obvious regexp intent.

* lisp/org/org-list.el (org-plain-list-ordered-item-terminator):
Add backslash in doc comment so that it appears as intended.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1, c-end-of-decl-1):
* lisp/progmodes/f90.el (f90-font-lock-keywords-2):
* lisp/progmodes/etags.el (etags-tags-completion-table):
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
* test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-1):
Remove superfluous backslashes from regexp.

* test/lisp/emacs-lisp/rx-tests.el (rx-char-any):
Remove superfluous backslash from doc comment.

5 years agoImprove locale and language environment setting at startup
Eli Zaretskii [Sat, 16 Mar 2019 11:59:03 +0000 (13:59 +0200)]
Improve locale and language environment setting at startup

* lisp/international/mule-cmds.el (locale-language-names): Add
more locales and their language environments.
(set-locale-environment): Use w32-multibyte-code-page, if
non-zero, as locale-coding-system.  (Bug#34684)

* src/w32fns.c (globals_of_w32fns) <w32-multibyte-code-page>:
New variable.

* etc/NEWS: Mention w32-multibyte-code-page.

5 years agoBring back Emacs 26 compatibility to flymake.el
Paul Eggert [Sat, 16 Mar 2019 01:31:31 +0000 (18:31 -0700)]
Bring back Emacs 26 compatibility to flymake.el

* lisp/progmodes/flymake.el (flymake--schedule-timer-maybe):
Revert to using seconds-to-time, since this file is part
of ELPA and needs to work on Emacs 26 too.

5 years agoUse bool for menu_items_inuse
Paul Eggert [Sat, 16 Mar 2019 01:24:20 +0000 (18:24 -0700)]
Use bool for menu_items_inuse

* src/menu.c (menu_items_inuse): Now bool, instead of a
Lisp_Object that is always Qt or Qnil.  All uses changed.

5 years agoCustomize tabulated-list sort indicators
Philippe Vaucher [Sat, 2 Mar 2019 19:03:41 +0000 (20:03 +0100)]
Customize tabulated-list sort indicators

This allows the user to customize the sorting indicators displayed
near the current column.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list): New group.
(tabulated-list-gui-sort-indicator-asc)
(tabulated-list-gui-sort-indicator-desc)
(tabulated-list-tty-sort-indicator-asc)
(tabulated-list-tty-sort-indicator-desc): New defcustomd.
(tabulated-list-glyphless-char-display): Remove.
(tabulated-list-make-glyphless-char-display-table): New function.

* doc/lispref/modes.texi (Tabulated List Mode): Add documentation
for new options.

* etc/NEWS: Mention the new options.

5 years ago* etc/NEWS: Document Sami input methods. (Bug#34866)
Eli Zaretskii [Fri, 15 Mar 2019 08:02:58 +0000 (10:02 +0200)]
* etc/NEWS: Document Sami input methods.  (Bug#34866)

5 years agoAdd notice and fix missing character
Wojciech Gac [Fri, 15 Mar 2019 01:01:48 +0000 (02:01 +0100)]
Add notice and fix missing character

5 years agoAdd remaining Sami input methods
Wojciech Gac [Wed, 13 Mar 2019 07:09:31 +0000 (08:09 +0100)]
Add remaining Sami input methods

5 years agoAdd Skolt Sami and Inari Sami input methods
Wojciech Gac [Wed, 13 Mar 2019 01:10:19 +0000 (02:10 +0100)]
Add Skolt Sami and Inari Sami input methods

5 years ago* lisp/doc-view.el (doc-view--text-view-mode): Derive from text-mode.
Stefan Monnier [Wed, 13 Mar 2019 22:22:57 +0000 (18:22 -0400)]
* lisp/doc-view.el (doc-view--text-view-mode): Derive from text-mode.

5 years agoFix file attribute accessor typo in Elisp manual
Basil L. Contovounesios [Wed, 13 Mar 2019 18:30:07 +0000 (18:30 +0000)]
Fix file attribute accessor typo in Elisp manual

This was introduced in 662bee7d70ccd3903e123b08c7ec9108a1a2ce0b
2018-09-24T01:30:46Z!eggert@cs.ucla.edu.
* doc/lispref/files.texi (File Attributes): Fix typo referring to
wrong file attribute accessor.

5 years ago* test/lisp/progmodes/python-tests.el
Glenn Morris [Wed, 13 Mar 2019 21:33:25 +0000 (17:33 -0400)]
* test/lisp/progmodes/python-tests.el
(python-syntax-after-python-backspace): Expect failure again.

; since 5feaf90

5 years ago* lisp/emacs-lisp/easy-mmode.el: Fix most obvious bug#34723
Stefan Monnier [Wed, 13 Mar 2019 19:55:39 +0000 (15:55 -0400)]
* lisp/emacs-lisp/easy-mmode.el: Fix most obvious bug#34723

(easy-mmode-define-navigation): Don't scroll in the opposite direction of
the movement.

5 years ago* lisp/mail/hashcash.el (hashcash-insert-payment-async): Fix last change
Stefan Monnier [Wed, 13 Mar 2019 18:25:28 +0000 (14:25 -0400)]
* lisp/mail/hashcash.el (hashcash-insert-payment-async): Fix last change

5 years ago* lisp/progmodes/python.el (python-rx-constituents): Fix ordering in `or`
Stefan Monnier [Wed, 13 Mar 2019 17:40:36 +0000 (13:40 -0400)]
* lisp/progmodes/python.el (python-rx-constituents): Fix ordering in `or`

The previous code worked earlier because of a bug in `rx` (which used
`regexp-opt` without passing it to `keep-order` argument), but now that `rx`
has been fixed the underlying bug here reared its ugly head.

5 years agoAvoid gratuitous errors in 'url-retrieve-synchronously'
Eli Zaretskii [Wed, 13 Mar 2019 16:53:08 +0000 (18:53 +0200)]
Avoid gratuitous errors in 'url-retrieve-synchronously'

* lisp/url/url-http.el (url-http-debug):
* lisp/url/url-util.el (url-debug): Don't signal an error if
quit-flag is non-nil, but not t.  This could happen because
some unrelated code is running inside while-no-input.
(Bug#34763)

5 years ago* lisp/battery.el (battery-bsd-apm): Group indices together; use pcase
Stefan Monnier [Wed, 13 Mar 2019 14:27:46 +0000 (10:27 -0400)]
* lisp/battery.el (battery-bsd-apm): Group indices together; use pcase

5 years ago* lisp/battery.el (battery-bsd-apm): Make it work on FreeBSD
Ahmed Khanzada [Wed, 13 Mar 2019 14:10:19 +0000 (10:10 -0400)]
* lisp/battery.el (battery-bsd-apm): Make it work on FreeBSD

Copyright-paperwork-exempt: yes

Use flag "t" to get remaining time, and adjust to different output order.

5 years ago* lisp/mail/hashcash.el: Get rid of backquoted lambdas
Christopher Wellons [Tue, 12 Mar 2019 20:35:28 +0000 (16:35 -0400)]
* lisp/mail/hashcash.el: Get rid of backquoted lambdas

Copyright-paperwork-exempt: yes

(hashcash-generate-payment-async): η-reduce.
(hashcash-insert-payment-async): Use proper closure.

5 years ago* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
Michael Albinus [Tue, 12 Mar 2019 18:40:16 +0000 (19:40 +0100)]
* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):

Use proper range when deleting the region.

5 years agoCorrect the indentation of CC Mode brace lists
Alan Mackenzie [Tue, 12 Mar 2019 18:33:31 +0000 (18:33 +0000)]
Correct the indentation of CC Mode brace lists

while preserving the indentation of nested C++ uniform initialization.

* lisp/progmodes/cc-align.el (c-lineup-2nd-brace-entry-in-arglist)
(c-lineup-class-decl-init-+, c-lineup-class-decl-init-after-brace): New
indentation functions.

* lisp/progmodes/cc-engine.el (c-forward-class-decl): New function.
(c-do-declarators): New function, partially extracted from
c-font-lock-declarators, which now calls the new function.
(c-inside-bracelist-p): Amend the introductory comment.
(c-add-stmt-syntax): Add code to prevent the spurious recognition of a
'defun-block-intro when a brace pair is used as an initializer.
(c-evaluate-offset): No longer ignore vectors of length >= 2.
(c-calc-offset): Refactor clumsily nested `if'/`or' into a cond form.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Replace the bulk of
this function by a call to the new c-forward-class-decl.

* lisp/progmodes/cc-langs.el (c-type-decl-prefix-key): Recognize "~" as a
type decl operator.

* lisp/progmodes/cc-mode.el (c-fl-decl-start): While searching backward for a
"}" at an EOD, deal with actually finding the end of a brace list.

* doc/misc/cc-mode.texi (List Line-Up): document
c-lineup-2nd-brace-entry-in-arglist, c-lineup-class-decl-init-+, and
c-lineup-class-decl-init-after-brace.

* lisp/progmodes/cc-styles.el (c-style-alist): In styles "gnu", "bsd",
"stroustrup", "python", and "java", change the offset for brace-list-intro
from the default value or c-lineup-arglist-intro-after-paren to a list
beginning with the symbol first, followed by two of the new alignment
functions, followed by +.

* lisp/progmodes/cc-vars.el (c-offset-alist): Change the default value of
brace-list-entry from c-lineup-under-anchor back to 0.

5 years agoRevert last tweak in 'comint-output-filter'
Martin Rudalics [Tue, 12 Mar 2019 09:48:19 +0000 (10:48 +0100)]
Revert last tweak in 'comint-output-filter'

* lisp/comint.el (comint-output-filter): Revert last tweak because
it can hang gdb indefinitely.

5 years agoReindent pdumper per usual Emacs style
Paul Eggert [Mon, 11 Mar 2019 18:07:30 +0000 (11:07 -0700)]
Reindent pdumper per usual Emacs style

* src/pdumper.c, src/pdumper.h: Reindent.

5 years agoFix show-trailing-whitespace in R2L text
Eli Zaretskii [Mon, 11 Mar 2019 15:32:38 +0000 (17:32 +0200)]
Fix show-trailing-whitespace in R2L text

* src/xdisp.c (highlight_trailing_whitespace): Allow for
stretch glyphs at the left edge of R2L lines, when skipping
glyphs inserted by the display engine.  This unbreaks
show-trailing-whitespace in R2L lines.

5 years agoFix a small pdumper memory leak
Paul Eggert [Mon, 11 Mar 2019 15:20:54 +0000 (08:20 -0700)]
Fix a small pdumper memory leak

* src/pdumper.c (dump_mmap_reset): Free the private area here ...
(dump_mm_heap_cb_release): ... instead of here.
(dump_mmap_release_heap): Simplify by avoiding a local.
(dump_mmap_contiguous): Reindent GNU style.

5 years agoRewrite minibuffer window resizing code
Martin Rudalics [Mon, 11 Mar 2019 08:57:23 +0000 (09:57 +0100)]
Rewrite minibuffer window resizing code

* src/frame.c (resize_mini_frames): New variable.
* src/window.c (resize_mini_window_apply): New function.
(grow_mini_window, shrink_mini_window): Remove PIXELWISE
argument.  Call resize_mini_window_apply to apply changes.
(Fresize_mini_window_internal): Call resize_mini_window_apply
to apply changes.
(Qwindow__resize_mini_frame): New symbol.
* src/window.h (grow_mini_window, shrink_mini_window): Adjust
external declarations.
* src/xdisp.c (resize_mini_window): For minibuffer-only frames
call 'window--resize-mini-frame' if resize_mini_frames is
non-nil.  Offload parts of logic to grow_mini_window and
shrink_mini_window which are now called without the PIXELWISE
argument.
(Vresize_mini_windows): Mention 'resize-mini-frames' in
doc-string.
* lisp/cus-start.el (resize-mini-frames): Add customization
support.
* lisp/window.el (window--resize-mini-window): Simplify code.
(window--resize-mini-frame): New function.
* doc/lispref/minibuf.texi (Minibuffer Windows): Describe new
option 'resize-mini-frames'.
* etc/NEWS: Mention new option 'resize-mini-frames'.

5 years ago* src/editfns.c: Fix docstring typo.
Paul Eggert [Mon, 11 Mar 2019 06:46:26 +0000 (23:46 -0700)]
* src/editfns.c: Fix docstring typo.

5 years agoImprove binary-as-unsigned treatment (Bug#34792)
Paul Eggert [Mon, 11 Mar 2019 06:39:48 +0000 (23:39 -0700)]
Improve binary-as-unsigned treatment (Bug#34792)

* etc/NEWS:
* src/editfns.c (Fformat, binary_as_unsigned):
Update now that we always have bignums.
(syms_of_editfns) [!defined lisp_h_FIXNUMP]: Remove now-obsolete
code, since lisp_h_FIXNUMP is always defined now.
* test/src/editfns-tests.el (read-large-integer): Simplify,
now that we can assume binary-as-unsigned defaults to nil.

5 years agoMore regexp corrections and tweaks
Paul Eggert [Mon, 11 Mar 2019 06:08:37 +0000 (23:08 -0700)]
More regexp corrections and tweaks

Problems reported by Mattias Engdegård in:
https://lists.gnu.org/r/emacs-devel/2019-03/msg00247.html
* lisp/align.el (align-rules-list):
* lisp/comint.el (comint-output-filter):
* lisp/language/china-util.el (encode-hz-region):
* lisp/progmodes/cperl-mode.el (cperl-indent-exp):
* lisp/progmodes/idlwave.el (idlwave-is-pointer-dereference):
* lisp/progmodes/scheme.el (dsssl-font-lock-keywords):
* lisp/textmodes/texinfmt.el (texinfo-accent-commands):
* test/src/regex-emacs-tests.el (regex-tests-re-even-escapes):
Fix some regular-expression typos.

5 years agoUpdate from Gnulib
Paul Eggert [Mon, 11 Mar 2019 06:03:48 +0000 (23:03 -0700)]
Update from Gnulib

This incorporates:
2019-03-10 alloca-opt: Fix conflict mingw's new <alloca.h> file
2019-03-03 getloadavg: Write NULL for the null pointer
Reported by Michal Privoznik <mprivozn@redhat.com>.
* lib/getloadavg.c (getloadavg): Write NULL instead of 0.
* build-aux/config.guess, build-aux/move-if-change:
* doc/misc/texinfo.tex, lib/alloca.in.h, lib/getloadavg.c:
* m4/alloca.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.

5 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 11 Mar 2019 00:50:09 +0000 (17:50 -0700)]
; Auto-commit of loaddefs files.

5 years ago(ruby-add-log-current-method): Recognize methods ending with ? or !
Dmitry Gutov [Mon, 11 Mar 2019 00:30:08 +0000 (02:30 +0200)]
(ruby-add-log-current-method): Recognize methods ending with ? or !

* lisp/progmodes/ruby-mode.el (ruby-add-log-current-method):
Recognize method names ending with ? or !.

5 years agoproject--find-regexp-in-files: Use 'grep -E'
Dmitry Gutov [Mon, 11 Mar 2019 00:22:54 +0000 (02:22 +0200)]
project--find-regexp-in-files: Use 'grep -E'

* lisp/progmodes/project.el (project--find-regexp-in-files): Use
'grep -E' because we convert the regexp to extended already.

5 years agoChanges in Tramp adb process handling
Michael Albinus [Sun, 10 Mar 2019 14:56:24 +0000 (15:56 +0100)]
Changes in Tramp adb process handling

* lisp/net/tramp-adb.el (tramp-methods) <adb>: Add `tramp-remote-shell'
and `tramp-remote-shell-args'.
(tramp-adb-file-name-handler-alist): Use `tramp-handle-shell-command'
rather than `tramp-adb-handle-shell-command'.
(tramp-adb-handle-shell-command): Remove.
(tramp-adb-handle-make-process): Use a proper prompt.
(tramp-adb-wait-for-output): Simplify.

5 years agoUse a runtime test for timerfd on Cygwin (Bug#34618)
Ken Brown [Sat, 9 Mar 2019 22:06:54 +0000 (17:06 -0500)]
Use a runtime test for timerfd on Cygwin (Bug#34618)

* src/atimer.c [HAVE_TIMERFD] (have_buggy_timerfd): New
function.
(init_atimer) Use it.

5 years ago* lisp/speedbar.el: Minor tweaks
Stefan Monnier [Sun, 10 Mar 2019 07:54:46 +0000 (03:54 -0400)]
* lisp/speedbar.el: Minor tweaks

(speedbar-directory-buttons-follow): Use file-name-as-directory.
(speedbar-ignored-directory-expressions)
(speedbar-supported-extension-expressions): Use `sym` in the setter.
(speedbar-frame-mode): Use with-current-buffer.
(speedbar-item-info-tag-helper): Use 'cond'.
(speedbar-highlight-one-tag-line): Don't use position beyond EOB.

5 years agoMake doc-view work with text-mode as default major-mode (bug#34451)
Tassilo Horn [Sat, 9 Mar 2019 21:05:38 +0000 (22:05 +0100)]
Make doc-view work with text-mode as default major-mode (bug#34451)

* lisp/doc-view.el (doc-view--text-view-mode): New alias for view-mode.
(doc-view-open-text): Use it.
(doc-view-toggle-display): Use it.

5 years ago* list/emulation/viper: Use user-error for "Viper bell"
Christopher Wellons [Sat, 9 Mar 2019 20:49:49 +0000 (15:49 -0500)]
* list/emulation/viper: Use user-error for "Viper bell"

Copyright-paperwork-exempt: yes

* lisp/emulation/viper-init.el (viper-ViperBell): New constant.
* lisp/emulation/viper-cmd.el (viper-prefix-arg-com)
(viper-forward-char, viper-backward-char, viper-goto-col)
(viper-find-char, viper-paren-match, viper-put-back, viper-Put-back)
(viper-delete-char, viper-mark-point, viper-goto-mark-subr):
* lisp/emulation/viper-ex.el (ex-delete): Use it and `user-error`.

5 years agoName buffer according to attachment filename (bug#34478).
Tassilo Horn [Sat, 9 Mar 2019 20:27:24 +0000 (21:27 +0100)]
Name buffer according to attachment filename (bug#34478).

* lisp/gnus/mm-decode.el (mm-display-external): Name buffer showing
  the attachment according to the attachment's filename, i.e. "*mm*
  <filename>" instead of " *mm*12345".

5 years agoRe-enable the timerfd interface on Cygwin
Ken Brown [Sat, 9 Mar 2019 19:22:54 +0000 (14:22 -0500)]
Re-enable the timerfd interface on Cygwin

* configure.ac (emacs_cv_have_timerfd): No longer set this to "no"
on Cygwin.  (Bug#34618)

5 years ago; * src/editfns.c (Fformat): Fix last change. (Bug#34792)
Eli Zaretskii [Sat, 9 Mar 2019 18:58:56 +0000 (20:58 +0200)]
; * src/editfns.c (Fformat): Fix last change.  (Bug#34792)

5 years agoMention `binary-as-unsigned' in `format' docstring (Bug#34792)
Ivan Andrus [Sat, 9 Mar 2019 18:03:05 +0000 (11:03 -0700)]
Mention `binary-as-unsigned' in `format' docstring (Bug#34792)

* src/src/editfns.c (format): Update docstring to mention binary-as-unsigned
(Bug#34792)

5 years agoMerge from origin/emacs-26
Glenn Morris [Sat, 9 Mar 2019 18:07:46 +0000 (10:07 -0800)]
Merge from origin/emacs-26

0589de5 (origin/emacs-26) Fix markup of fake keys in the ELisp manual
82d4b98 Avoid errors in Auto Revert mode
a3b1935 Mention empty strings in file name expansion, emacs lisp refe...
a38da0d cc-mode.texi: Work around makeinfo alignment bug.  Fix proble...
464ee80 Warn against recursive invocations of 'buffer-list-update-hoo...
60b5c10 Provide more details in doc-string of 'delete-windows-on' (Bu...
f0be0f1 Improve documentation of 'delete-windows-on'
f1bddc7 * lisp/frame.el (make-frame-command): Doc fix.  (Bug#34715)
2848623 Avoid undefined behavior in gdb-mi.el
dbf1837 * lisp/window.el (fit-frame-to-buffer): Make doc-string more ...
099ef44 Minor spelling and grammar fixes (bug#34756)
52fd400 Minor improvement of documentation of '(when CONDITION . SPEC)'
f872b65 Improve documentation of 'auto-coding-functions'
04cad5e Fix visiting XML files with non-Unix EOL format
a89fabe Update example major mode code in Elisp manual

# Conflicts:
# lisp/autorevert.el
# lisp/window.el

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 9 Mar 2019 17:48:25 +0000 (19:48 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoConsult 'face-remapping-alist' for 'internal-border' face
Eli Zaretskii [Sat, 9 Mar 2019 17:45:13 +0000 (19:45 +0200)]
Consult 'face-remapping-alist' for 'internal-border' face

* src/xterm.c (x_clear_under_internal_border)
(x_after_update_window_line):
* src/w32fns.c (x_clear_under_internal_border):
* src/w32term.c (x_after_update_window_line): Consult
'face-remapping-alist' when using the 'internal-border' face.

5 years agoCC Mode: Correct some incorrect regular expressions:
Alan Mackenzie [Sat, 9 Mar 2019 17:41:11 +0000 (17:41 +0000)]
CC Mode: Correct some incorrect regular expressions:

* lisp/progmodes/cc-awk.el (c-awk-regexp-char-list-re): "^" -> "\\^".  R*x?R*
-> \(R*x\)?R*.

* lisp/progmodes/cc-mode.el (c-after-change-re-mark-unbalanced-strings): "|"
-> "\\|".

5 years agoDo not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723
Michael Albinus [Sat, 9 Mar 2019 15:44:24 +0000 (16:44 +0100)]
Do not hardcode "/bin/sh" in compile.  Bug#24338, Bug#29723

* doc/emacs/custom.texi (Connection Variables): New node.

* doc/emacs/emacs.texi (Top): Add entry for Connection Variables.

* doc/emacs/misc.texi (Single Shell): Mention default value for
remote buffers.

* doc/lispref/variables.texi (Connection Local Variables):
Describe `with-connection-local-variables' instead of
`with-connection-local-profiles'.

* doc/misc/tramp.texi (Remote processes): Refer to Emacs manual.
Mention default connection-local settings for `shell-file-name'
and `shell-command-switch'.

* etc/NEWS: Mention connection-local variables changes.

* lisp/files-x.el (hack-connection-local-variables):
Push connection-local variables to `file-local-variables-alist'.
(connection-local-criteria-for-default-directory): New defsubst.
(with-connection-local-variables): Rename from
`with-connection-local-profiles'.  Adapt implementation.

* lisp/files.el (hack-local-variables):
Call `hack-connection-local-variables'.

* lisp/shell.el (shell): Use `with-connection-local-variables'.

* lisp/subr.el (start-file-process-shell-command):
* lisp/progmodes/compile.el (compilation-start):
Use `with-connection-local-variables'.  Do not set "/bin/sh" for
remote buffers, trust settings of `shell-file-name'.  (Bug#24338),
(Bug#29723)

* lisp/net/ange-ftp.el (ange-ftp-compress, ange-ftp-uncompress):
Use `shell-command-switch'.

* lisp/net/tramp-adb.el (tramp-adb-connection-local-default-profile):
New defvar.  Add it to connection-local profiles after loading "shell".

* lisp/net/tramp-integration.el (tramp-compat): Require tramp-compat.
(tramp-compat-exec-path): Do not declare anymore.
(tramp-connection-local-safe-shell-file-names): New defvar.
(tramp-connection-local-default-profile): New defconst.  Activate
it after loading "shell".
(shell-file-name, shell-command-switch): Add safe-local-variable
property.

* lisp/net/tramp-sh.el (tramp-display-escape-sequence-regexp):
Add tramp-autoload cookie.

* test/lisp/files-x-tests.el (remote-shell-file-name):
Add safe-local-variable property to remote-* variables.
(tramp-connection-local-default-profile): Declare.
(files-x-test-with-connection-local-variables):
Rename from `files-x-test-with-connection-local-profiles'.  Adapt
implementation.

* test/lisp/net/tramp-tests.el
(tramp-test34-connection-local-variables): New test.
(tramp-test34-explicit-shell-file-name): Run it also for tramp-adb.
Bind connection-local-{profile,criteria}-alist.  Use tramp-adb
specific `shell-file-name'.  Add safe-local-variable property to
`explicit-shell-file-name' and `explicit-sh-args'.

5 years agoMake help for file supersession more readable
Charles A. Roelli [Sat, 9 Mar 2019 15:47:38 +0000 (16:47 +0100)]
Make help for file supersession more readable

* lisp/userlock.el (ask-user-about-supersession-help): Use
'substitute-command-keys' to show the command key for
"\\[revert-buffer]" properly.

5 years agoFix markup of fake keys in the ELisp manual
Eli Zaretskii [Sat, 9 Mar 2019 11:20:28 +0000 (13:20 +0200)]
Fix markup of fake keys in the ELisp manual

* doc/lispref/keymaps.texi (Menu Bar, Tool Bar): Fix markup of
fake keys.  (Bug#34785)

5 years agoAvoid errors in Auto Revert mode
Eli Zaretskii [Sat, 9 Mar 2019 10:51:33 +0000 (12:51 +0200)]
Avoid errors in Auto Revert mode

* lisp/autorevert.el (auto-revert-buffers): Cancel
auto-revert-timer only if it is non-nil.  This avoids errors
on first invocation of Auto-Revert mode.

5 years agoImport Unicode 12.0 data files
Eli Zaretskii [Sat, 9 Mar 2019 10:41:48 +0000 (12:41 +0200)]
Import Unicode 12.0 data files

* admin/unidata/copyright.html:
* admin/unidata/UnicodeData.txt:
* admin/unidata/SpecialCasing.txt:
* admin/unidata/NormalizationTest.txt:
* admin/unidata/Blocks.txt:
* admin/unidata/BidiMirroring.txt:
* admin/unidata/BidiBrackets.txt: New versions from Unicode 12.0.
* admin/unidata/unidata-gen.el (unidata-gen-file):
* admin/unidata/blocks.awk (name2alias): Adapt to changes in
new data files.
* admin/notes/unicode: Update and improve instructions for
importing a new Unicode Standard.

* lisp/international/characters.el (char-width-table): Update
lists of characters according to Unicode 12.0.
* lisp/international/fontset.el (script-representative-chars):
Add characters from new scripts to 'script-representative-chars'.
(otf-script-alist): Update according to data on the MS site.
* lisp/international/mule-cmds.el (ucs-names): Update unused
ranges of codepoints according to Unicode 12.0.

* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-tests--failing-lines-part1)
(ucs-normalize-tests--failing-lines-part2): Update for the new
NormalizationTest.txt file.
* test/manual/BidiCharacterTest.txt: Update with the new
version from Unicode 12.0.

5 years agoFurther redesign of window change functions
Martin Rudalics [Sat, 9 Mar 2019 10:13:18 +0000 (11:13 +0100)]
Further redesign of window change functions

* doc/lispref/windows.texi (Window Hooks): Revise description
of window change functions.  Add documentation for
'window-state-change-hook' and window state change flag.
* etc/NEWS: Update entry for window change functions.
* src/frame.c (Fframe_window_state_change)
(Fset_frame_window_state_change): New functions.
* src/frame.h (struct frame): New boolean window_state_change.
(FRAME_WINDOW_STATE_CHANGE): New macro.
* src/window.c (window_change_record_frames): New static
boolean.
(window_change_record_frame): Remove function - code moved to
window_change_record.
(window_change_record): Record frame changes here taking
window_change_record_frames into account.
(run_window_change_functions_1): Set window_change_record_frames
whenever we run one of our hooks.
(run_window_change_functions): Run hooks also when
FRAME_WINDOW_STATE_CHANGE has been set.  Run
Vwindow_state_change_hook.  Leave decision whether to record
changes for all frames to window_change_record.
(Vwindow_state_change_functions): Update doc-string.
(Vwindow_state_change_hook): New normal hook.

5 years agoDon't redraw the glyph on top of bar cursors
Alan Third [Sat, 16 Feb 2019 10:56:13 +0000 (10:56 +0000)]
Don't redraw the glyph on top of bar cursors

* src/nsterm.m (ns_draw_window_cursor): Limit when we redraw the
glyph.

5 years agoMention empty strings in file name expansion, emacs lisp reference
Michael Albinus [Sat, 9 Mar 2019 08:47:07 +0000 (09:47 +0100)]
Mention empty strings in file name expansion, emacs lisp reference

* doc/lispref/files.texi (Files, File Name Expansion):
Mention also empty strings.

5 years ago; Improve matching of key-val labels yet more (bug#34629)
Arash Esbati [Fri, 8 Mar 2019 21:01:01 +0000 (22:01 +0100)]
; Improve matching of key-val labels yet more (bug#34629)

* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Match
explicitly for key-val labels in optional arguments of
environments provided by "listings" and "breqn" packages and the
macro "\ctable" from the package of the same name.
Update docstring.

5 years ago* lisp/emacs-lisp/autoload.el (make-autoload): Don't add useless doc
Stefan Monnier [Fri, 8 Mar 2019 22:27:38 +0000 (17:27 -0500)]
* lisp/emacs-lisp/autoload.el (make-autoload): Don't add useless doc

More specifically, don't add a useless '(fn)' to the docstring for
functions which take no arguments.
This should fix the 'No docstring slot for pcase--make-docstring'
warning during bootstrap.

5 years ago* lisp/emacs-lisp/cursor-sensor.el: Fix sensor behavior with overlays
Stefan Monnier [Fri, 8 Mar 2019 22:20:58 +0000 (17:20 -0500)]
* lisp/emacs-lisp/cursor-sensor.el: Fix sensor behavior with overlays

(cursor-sensor--detect): Also consult overlay properties when checking
to see if we just moved inside the same "element" as opposed to
changing from one to another of the same type.

5 years agoNew command ido-switch-to-completions.
Tassilo Horn [Fri, 8 Mar 2019 18:59:32 +0000 (19:59 +0100)]
New command ido-switch-to-completions.

* lisp/ido.el (ido-switch-to-completions): New command.

5 years agocc-mode.texi: Work around makeinfo alignment bug. Fix problem with ss index
Alan Mackenzie [Fri, 8 Mar 2019 18:07:48 +0000 (18:07 +0000)]
cc-mode.texi: Work around makeinfo alignment bug.  Fix problem with ss index

* doc/misc/cc-mode.texi (top level): Using txicommandconditionals to
differentiate between the C and perl versions of Texinfo, create an "ss
index" unless we are both using the C Texinfo and are building the .dvi output
format.
(Config Basics): Work around a perl Texinfo alignment bug by writing a
separate version of an item list structure for this version, simplifying it
considerably.

5 years agoWarn against recursive invocations of 'buffer-list-update-hook' (Bug#34765)
Martin Rudalics [Fri, 8 Mar 2019 18:10:27 +0000 (19:10 +0100)]
Warn against recursive invocations of 'buffer-list-update-hook' (Bug#34765)

* src/buffer.c (Vbuffer_list_update_hook):
* doc/lispref/buffers.texi (Buffer List): Warn against
recursive invocations of 'buffer-list-update-hook' (Bug#34765).

5 years agoProvide more details in doc-string of 'delete-windows-on' (Bug#34749)
Martin Rudalics [Fri, 8 Mar 2019 18:04:35 +0000 (19:04 +0100)]
Provide more details in doc-string of 'delete-windows-on' (Bug#34749)

* lisp/window.el (delete-windows-on): Provide more details in
doc-string (Bug#34749).

5 years agoMore regexp corrections and tweaks
Paul Eggert [Fri, 8 Mar 2019 17:08:46 +0000 (09:08 -0800)]
More regexp corrections and tweaks

From suggestions by Mattias Engdegård in:
https://lists.gnu.org/r/emacs-devel/2019-03/msg00131.html
* lisp/arc-mode.el (archive-rar-summarize):
* lisp/gnus/gnus-art.el (gnus-button-valid-localpart-regexp):
* lisp/language/ethio-util.el (ethio-fidel-to-tex-buffer):
* lisp/nxml/rng-uri.el (rng-file-name-uri):
* lisp/org/org-mobile.el (org-mobile-apply):
* lisp/progmodes/cperl-mode.el (cperl-init-faces):
* lisp/progmodes/fortran.el (fortran-fill):
* lisp/progmodes/mantemp.el (mantemp-remove-comments)
(mantemp-remove-memfuncs, mantemp-insert-cxx-syntax):
* lisp/speedbar.el (speedbar-directory-buttons-follow):
* lisp/vc/add-log.el (change-log-font-lock-keywords):
Fix more regular expressions that seem to be typos or infelicities.

5 years agoImprove documentation of 'delete-windows-on'
Eli Zaretskii [Fri, 8 Mar 2019 10:21:29 +0000 (12:21 +0200)]
Improve documentation of 'delete-windows-on'

* doc/emacs/windows.texi (Change Window): Document
'delete-windows-on'.

* lisp/window.el (delete-windows-on): Doc fix.  (Bug#34749)

5 years ago* lisp/frame.el (make-frame-command): Doc fix. (Bug#34715)
Eli Zaretskii [Fri, 8 Mar 2019 09:45:55 +0000 (11:45 +0200)]
* lisp/frame.el (make-frame-command): Doc fix.  (Bug#34715)

5 years agoImprove ispell.el diagnostics if Hunspell dictionaries aren't found
Mark Diekhans [Sun, 24 Feb 2019 18:27:09 +0000 (10:27 -0800)]
Improve ispell.el diagnostics if Hunspell dictionaries aren't found

* lisp/textmodes/ispell.el (ispell-set-spellchecker-params):
Set ispell-last-program-name only at the end, so as to produce
useful diagnostics when Hunspell dictionaries are not found.
(Bug#34640)

Copyright-paperwork-exempt: yes

5 years ago* lisp/net/rcirc.el: Undo previous change; it was a typo.
Paul Eggert [Thu, 7 Mar 2019 18:43:19 +0000 (10:43 -0800)]
* lisp/net/rcirc.el: Undo previous change; it was a typo.

5 years agoBe safer about "%" in message formats
Paul Eggert [Thu, 7 Mar 2019 17:02:15 +0000 (09:02 -0800)]
Be safer about "%" in message formats

* lisp/calc/calc-store.el (calc-copy-special-constant):
* lisp/net/rcirc.el (rcirc-handler-PART, rcirc-handler-KICK):
* lisp/org/org-agenda.el (org-agenda):
* lisp/org/org-clock.el (org-clock-out, org-clock-display):
* lisp/org/org.el (org-refile):
* lisp/progmodes/ada-xref.el (ada-goto-declaration):
* lisp/progmodes/idlwave.el (idlwave-scan-library-catalogs):
Don’t trust arbitrary strings to not contain "%" or "`" in
(message (concat STRING1 STRING2 ...)).

5 years agoAvoid undefined behavior in gdb-mi.el
Eli Zaretskii [Thu, 7 Mar 2019 15:16:43 +0000 (17:16 +0200)]
Avoid undefined behavior in gdb-mi.el

* lisp/progmodes/gdb-mi.el (gdb-send): Don't call match-string
if this is not a control command.  (Bug#34769)

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Thu, 7 Mar 2019 14:19:00 +0000 (16:19 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoRename regexp-opt argument noreorder to keep-order
Mattias Engdegård [Wed, 6 Mar 2019 21:50:36 +0000 (22:50 +0100)]
Rename regexp-opt argument noreorder to keep-order

* doc/lispref/searching.texi (Regular Expression Functions):
* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
Rename newly added `noreorder' argument to `keep-order', to avoid a
negative in the name.  Suggested by Phil Sainty (Bug#34641).

5 years agoFix OBJECT binding in conditional display specs
Eli Zaretskii [Wed, 6 Mar 2019 19:06:00 +0000 (21:06 +0200)]
Fix OBJECT binding in conditional display specs

* src/xdisp.c (compute_display_string_pos): Pass OBJECT1, not
OBJECT to handle_display_spec, as the latter doesn't expect a
window object.  (Bug#34771)

5 years agoFix typo in fix for Bug#33498
Paul Eggert [Wed, 6 Mar 2019 19:04:57 +0000 (11:04 -0800)]
Fix typo in fix for Bug#33498

* src/frame.c (delete_frame): Fix typo in previous patch,
which caused GCC to complain about the use of an uninitialized
variable.

5 years ago; * lisp/window.el (fit-frame-to-buffer): Fix once more.
Martin Rudalics [Wed, 6 Mar 2019 13:49:00 +0000 (14:49 +0100)]
; * lisp/window.el (fit-frame-to-buffer): Fix once more.

5 years ago* lisp/window.el (fit-frame-to-buffer): Make doc-string more accurate.
Martin Rudalics [Wed, 6 Mar 2019 13:45:05 +0000 (14:45 +0100)]
* lisp/window.el (fit-frame-to-buffer): Make doc-string more accurate.

5 years agoHandle empty strings in Tramp's expand-file-name implementations
Michael Albinus [Wed, 6 Mar 2019 11:06:09 +0000 (12:06 +0100)]
Handle empty strings in Tramp's expand-file-name implementations

* lisp/net/tramp.el (tramp-handle-expand-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name):
* lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name):
* lisp/net/tramp-smb.el (tramp-smb-handle-expand-file-name):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-expand-file-name):
Handle empty NAME.

* test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax)
(tramp-test01-file-name-syntax-simplified)
(tramp-test01-file-name-syntax-separate): Use neutral IPv4 address.
(tramp-test05-expand-file-name): Check also "." and "".

5 years ago* lisp/window.el (fit-frame-to-buffer): Make doc-string more accurate.
Martin Rudalics [Wed, 6 Mar 2019 09:54:07 +0000 (10:54 +0100)]
* lisp/window.el (fit-frame-to-buffer): Make doc-string more accurate.

5 years agoIn unwind_with_echo_area_buffer use set_marker_restricted_both
Martin Rudalics [Wed, 6 Mar 2019 09:20:48 +0000 (10:20 +0100)]
In unwind_with_echo_area_buffer use set_marker_restricted_both

* src/xdisp.c (unwind_with_echo_area_buffer): Use
set_marker_restricted_both instead of set_marker_both to avoid
spurious assertion failures.

5 years agoFix handling of 'window-combination-resize' with fixed-size windows
Martin Rudalics [Wed, 6 Mar 2019 09:11:08 +0000 (10:11 +0100)]
Fix handling of 'window-combination-resize' with fixed-size windows

* lisp/window.el (window-combinations): New optional argument
IGNORE-FIXED.
(window--combination-resizable): New function.
(split-window): Fix handling of 'window-combination-resize'
in the presence of fixed-size windows.

5 years agoFix initialization of Vwindow_state_change_functions
Martin Rudalics [Wed, 6 Mar 2019 08:18:27 +0000 (09:18 +0100)]
Fix initialization of Vwindow_state_change_functions

* src/window.c (Vwindow_state_change_functions): Initialize the
right variable.

5 years ago; * etc/CALC-NEWS: Update header for 2015/11 maintainer change.
Glenn Morris [Wed, 6 Mar 2019 06:37:21 +0000 (22:37 -0800)]
; * etc/CALC-NEWS: Update header for 2015/11 maintainer change.

5 years ago* doc/misc/gnus-coding.texi: Remove no longer relevant sections.
Glenn Morris [Wed, 6 Mar 2019 06:27:35 +0000 (22:27 -0800)]
* doc/misc/gnus-coding.texi: Remove no longer relevant sections.
; The whole remaining file is probably no longer relevant.
; It's just some basic info from 15 years ago.

5 years ago* doc/misc/gnus.texi (New Features): Refer to NEWS for newer items.
Glenn Morris [Wed, 6 Mar 2019 06:22:12 +0000 (22:22 -0800)]
* doc/misc/gnus.texi (New Features): Refer to NEWS for newer items.

5 years agoRemove doc/misc/gnus-news.texi
Glenn Morris [Wed, 6 Mar 2019 06:19:29 +0000 (22:19 -0800)]
Remove doc/misc/gnus-news.texi

* doc/misc/gnus.texi (No Gnus): Merge in gnus-news.texi.
* doc/misc/gnus-news.texi: Remove.

5 years agoRemove etc/GNUS-NEWS (bug#34662)
Glenn Morris [Wed, 6 Mar 2019 06:15:02 +0000 (22:15 -0800)]
Remove etc/GNUS-NEWS (bug#34662)

It is not relevant since Gnus stopped being distributed separately.
* etc/GNUS-NEWS: Remove this generated file.
* etc/NEWS.26: Relocate an entry mistakenly added to GNUS-NEWS.
* doc/misc/gnus-coding.texi (Gnus Maintenance Guide):
No longer mention GNUS-NEWS.
* doc/misc/gnus-news.el: Remove.
* doc/misc/gnus-news.texi: Update a comment.
* lisp/Makefile.in (update-gnus-news): Remove this phony target.

5 years agoRemove gnus-overrides.texi
Glenn Morris [Wed, 6 Mar 2019 05:55:09 +0000 (21:55 -0800)]
Remove gnus-overrides.texi

* doc/misc/gnus-overrides.texi: Remove.
* doc/misc/auth.texi, doc/misc/emacs-mime.texi:
* doc/misc/gnus.texi, doc/misc/message.texi, doc/misc/pgg.texi:
* doc/misc/sasl.texi, doc/misc/sieve.texi:
Do not include gnus-overrides.texi.

5 years agoFix regexp issues introduced in last trunk commit.
Wilson Snyder [Wed, 6 Mar 2019 01:51:35 +0000 (20:51 -0500)]
Fix regexp issues introduced in last trunk commit.

* verilog-mode.el (verilog-coverpoint-re): Fix regexp issues introduced
in last trunk commit.

5 years agoMinor spelling and grammar fixes (bug#34756)
Basil L. Contovounesios [Tue, 5 Mar 2019 20:24:41 +0000 (20:24 +0000)]
Minor spelling and grammar fixes (bug#34756)

doc/misc/cc-mode.texi (Style Variables, Customizing Indentation):
doc/misc/ede.texi (Extending EDE, ede-project-placeholder)
(ede-target, ede-proj-target, ede-compilation-program, ede-compiler)
(ede-linker): Remove apostrophe from possessive "it's".
doc/lispintro/emacs-lisp-intro.texi (Find a File):
doc/misc/gnus-faq.texi (FAQ 2-2): Write "an other" as a single word.
doc/misc/gnus.texi (Article Buttons):
lisp/gnus/gnus-art.el (gnus-button-mid-or-mail-heuristic-alist)
(gnus-button-mid-or-mail-heuristic): Write singular number of
Message-IDs, rather than plural.
lisp/gnus/message.el (message-user-fqdn): Capitalize initialism.

5 years agoRemove unreliable assertion in buf_bytepos_to_charpos
Eli Zaretskii [Tue, 5 Mar 2019 16:25:23 +0000 (18:25 +0200)]
Remove unreliable assertion in buf_bytepos_to_charpos

* src/marker.c (buf_bytepos_to_charpos): Remove the assertion
regarding bytepos always at the head byte of a multibyte
sequence.  For the reasons, see
http://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00100.html
http://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00102.html