]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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

5 years agoFix regular-expression glitches and typos. Update verilog-mode from upstream.
Wilson Snyder [Tue, 5 Mar 2019 14:46:36 +0000 (09:46 -0500)]
Fix regular-expression glitches and typos. Update verilog-mode from upstream.

* lisp/progmodes/verilog-mode.el (verilog-read-decls): Fix AUTO vectors with
double brackets, msg2839.
(verilog-read-auto-template-middle): Fix AUTO_TEMPLATE with regexp
capture group reference, but1379.  Reported by David Rogoff.

5 years agoFix interactive spec of some functions in window.el (Bug#34749)
Martin Rudalics [Tue, 5 Mar 2019 10:01:14 +0000 (11:01 +0100)]
Fix interactive spec of some functions in window.el (Bug#34749)

* lisp/window.el (delete-windows-on, quit-windows-on)
(display-buffer-other-frame): Interactively, permit existing
buffers only (Bug#34749).

5 years agoFix handling of minibuffer-only child frames (Bug#33498)
Martin Rudalics [Tue, 5 Mar 2019 09:46:19 +0000 (10:46 +0100)]
Fix handling of minibuffer-only child frames (Bug#33498)

* doc/lispref/frames.texi (Buffer Parameters): Describe how to
make a minibuffer-only child frame.
(Child Frames): Describe how minbuffer child frames are
deleted.
* src/frame.c (delete_frame): Handle deletion of minibuffer
child frames (Bug#33498).  In the course, fix reassigning of
'default-minibuffer-frame' with minibuffer-only frames.
* lisp/frame.el (frame-notice-user-settings): Handle creation of
initial minibuffer-only child frame.
(make-frame): Handle creation of frame with a minibuffer-only
child frame.

5 years agoTest an IPv4 mapped IPv6 address in Tramp
Michael Albinus [Tue, 5 Mar 2019 08:36:33 +0000 (09:36 +0100)]
Test an IPv4 mapped IPv6 address in Tramp

* test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax)
(tramp-test01-file-name-syntax-simplified)
(tramp-test01-file-name-syntax-separate): Check also an IPv4
mapped IPv6 address.

5 years agoFix regular-expression glitches and typos
Paul Eggert [Tue, 5 Mar 2019 02:00:00 +0000 (18:00 -0800)]
Fix regular-expression glitches and typos

Problems reported by Mattias Engdegård in:
https://lists.gnu.org/r/emacs-devel/2019-03/msg00085.html
* admin/admin.el (set-version):
* lisp/allout.el (allout-latexify-one-item):
* lisp/arc-mode.el (archive-arc-rename-entry)
(archive-rar-summarize):
* lisp/calc/calc-graph.el (calc-graph-set-styles)
(calc-graph-hide):
* lisp/calc/calc-help.el (calc-describe-key):
* lisp/calc/calc-lang.el (math-compose-tex-func, eqn):
* lisp/calc/calc.el (calcDigit-key):
* lisp/cedet/ede/makefile-edit.el (makefile-macro-file-list):
* lisp/cedet/ede/speedbar.el (ede-tag-expand):
* lisp/cedet/semantic/sb.el (semantic-sb-show-extra)
(semantic-sb-expand-group):
* lisp/comint.el (comint-substitute-in-file-name):
* lisp/dired.el (dired-actual-switches):
* lisp/emacs-lisp/chart.el (chart-rmail-from):
* lisp/emacs-lisp/eieio-opt.el (eieio-sb-expand):
* lisp/emacs-lisp/eieio-speedbar.el (eieio-speedbar-object-expand):
* lisp/emacs-lisp/rx.el (rx-not, rx-atomic-p):
* lisp/emulation/viper-ex.el (viper-get-ex-token)
(viper-get-ex-pat, ex-set-read-variable):
* lisp/epg.el (epg--status-SIG_CREATED):
* lisp/erc/erc-speedbar.el (erc-speedbar-expand-user):
(erc-speedbar-expand-channel, erc-speedbar-expand-server)
* lisp/erc/erc.el (erc-is-message-ctcp-and-not-action-p)
(erc-banlist-update):
* lisp/eshell/em-dirs.el (eshell-parse-drive-letter, eshell/pwd):
* lisp/find-dired.el (find-dired):
* lisp/frame.el (frame-set-background-mode):
* lisp/generic-x.el (apache-log-generic-mode):
* lisp/gnus/gnus-art.el (gnus-button-valid-localpart-regexp):
* lisp/gnus/gnus.el (gnus-short-group-name):
* lisp/gnus/message.el (message-mailer-swallows-blank-line):
* lisp/ibuffer.el (ibuffer-fontification-alist):
* lisp/ido.el (ido-set-matches-1):
* lisp/info-xref.el (info-xref-lock-file-p):
* lisp/info.el (Info-dir-remove-duplicates)
(Info-unescape-quotes, Info-split-parameter-string)
(Info-speedbar-expand-node):
* lisp/international/mule.el (sgml-html-meta-auto-coding-function):
* lisp/isearch.el (isearch-pre-command-hook):
* lisp/language/ethio-util.el (ethio-fidel-to-tex-buffer):
* lisp/mail/rmail.el (rmail-collect-deleted):
* lisp/mh-e/mh-alias.el (mh-alias-suggest-alias):
* lisp/mh-e/mh-comp.el (mh-forward):
* lisp/mh-e/mh-search.el (mh-index-next-folder)
(mh-index-create-imenu-index):
* lisp/mh-e/mh-xface.el (mh-picon-get-image):
* lisp/minibuffer.el (completion--embedded-envvar-re):
* lisp/net/ange-ftp.el (ange-ftp-ls-parser):
* lisp/net/goto-addr.el (goto-address-mail-regexp)
(goto-address-find-address-at-point):
* lisp/net/pop3.el (pop3-read-response, pop3-user)
(pop3-pass, pop3-apop):
* lisp/net/tramp.el (tramp-ipv6-regexp)
(tramp-replace-environment-variables):
* lisp/nxml/nxml-maint.el (nxml-insert-target-repertoire-glyph-set):
* lisp/nxml/rng-uri.el (rng-uri-escape-multibyte):
* lisp/nxml/rng-xsd.el (rng-xsd-convert-any-uri):
* lisp/obsolete/pgg.el (pgg-fetch-key):
* lisp/obsolete/vip.el (vip-get-ex-token):
* lisp/org/ob-core.el (org-babel-string-read):
* lisp/org/org-agenda.el:
(org-agenda-add-entry-to-org-agenda-diary-file):
* lisp/org/org-element.el (org-element-keyword-parser):
* lisp/org/org-list.el (org-list-indent-item-generic):
* lisp/org/org-mhe.el (org-mhe-get-message-folder-from-index):
* lisp/org/org-mobile.el (org-mobile-apply):
* lisp/org/org-mouse.el (org-mouse-context-menu):
* lisp/org/org-plot.el (org-plot/gnuplot):
* lisp/org/org-protocol.el (org-protocol-flatten-greedy):
* lisp/org/org-table.el (org-table-copy-down)
(org-table-formula-make-cmp-string)
(org-table-get-stored-formulas, org-table-recalculate)
(org-table-edit-formulas):
* lisp/org/org.el (org-translate-link-from-planner)
(org-fill-line-break-nobreak-p):
* lisp/org/ox-ascii.el (org-ascii-item):
* lisp/org/ox-latex.el (org-latex-clean-invalid-line-breaks):
* lisp/org/ox.el (org-export-expand-include-keyword):
* lisp/progmodes/ada-xref.el (ada-treat-cmd-string):
* lisp/progmodes/cfengine.el (cfengine2-font-lock-keywords):
* lisp/progmodes/cperl-mode.el (cperl-to-comment-or-eol)
(cperl-find-pods-heres, cperl-fix-line-spacing)
(cperl-have-help-regexp, cperl-word-at-point-hard)
(cperl-make-regexp-x):
* lisp/progmodes/dcl-mode.el (dcl-option-value-offset):
* lisp/progmodes/etags.el (tag-implicit-name-match-p):
* lisp/progmodes/fortran.el (fortran-fill):
* lisp/progmodes/gdb-mi.el (gdb-speedbar-expand-node)
(gdb-locals-handler-custom):
* lisp/progmodes/grep.el (grep-mode-font-lock-keywords):
* lisp/progmodes/gud.el (gud-jdb-find-source-using-classpath):
* lisp/progmodes/js.el (js--continued-expression-p):
* lisp/progmodes/m4-mode.el (m4-font-lock-keywords):
* lisp/progmodes/meta-mode.el (meta-indent-level-count):
* lisp/progmodes/mixal-mode.el (mixal-font-lock-keywords):
* lisp/progmodes/opascal.el (opascal-find-unit-in-directory):
* lisp/progmodes/pascal.el (pascal-progbeg-re):
* lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re)
(ruby-expr-beg, ruby-parse-partial)
(ruby-toggle-string-quotes, ruby-font-lock-keywords):
* lisp/progmodes/sql.el (sql--make-help-docstring):
* lisp/progmodes/verilog-mode.el (verilog-coverpoint-re)
(verilog-skip-forward-comment-p)
(verilog-read-sub-decls-gate)
(verilog-read-auto-template-middle):
* lisp/progmodes/vhdl-mode.el (vhdl-resolve-env-variable)
(vhdl-speedbar-expand-project, vhdl-speedbar-expand-entity)
(vhdl-speedbar-expand-architecture)
(vhdl-speedbar-expand-config, vhdl-speedbar-expand-package)
(vhdl-speedbar-dired):
* lisp/speedbar.el (speedbar-dired, speedbar-tag-file)
(speedbar-tag-expand):
* lisp/textmodes/dns-mode.el (dns-mode-font-lock-keywords):
* lisp/textmodes/flyspell.el (flyspell-debug-signal-word-checked):
* lisp/textmodes/ispell.el (ispell-process-line):
* lisp/textmodes/reftex-cite.el (reftex-end-of-bib-entry):
* lisp/textmodes/reftex-ref.el (reftex-replace-prefix-escapes):
* lisp/url/url-parse.el (url-generic-parse-url):
* lisp/url/url-util.el (url-truncate-url-for-viewing):
* lisp/vc/diff-mode.el (diff-unified->context):
* lisp/vc/vc-bzr.el (vc-bzr-error-regexp-alist):
* lisp/vc/vc-cvs.el (vc-cvs-parse-status):
* lisp/woman.el (woman0-el, woman-if-ignore)
(woman-change-fonts):
* lisp/xdg.el (xdg--substitute-home-env):
Fix regular-expression infelicities and typos.

Fix regular expression typos
Fix typos reported by Mattias Engdegård in:
that occurred in preloaded modules.
* lisp/frame.el (frame-set-background-mode):
* lisp/international/mule.el (sgml-html-meta-auto-coding-function):
* lisp/isearch.el (isearch-pre-command-hook):
* lisp/minibuffer.el (completion--embedded-envvar-re):

5 years agoFix diff-mode tests after renaming diff-font-lock-refine
Charles A. Roelli [Mon, 4 Mar 2019 18:43:25 +0000 (19:43 +0100)]
Fix diff-mode tests after renaming diff-font-lock-refine

This fixes tests broken in my last change, "Merge
diff-font-lock-refine and diff-auto-refine-mode into diff-refine" from
2019-02-24.

* test/lisp/vc/diff-mode-tests.el (diff-mode-test-font-lock):
Bind diff-refine to symbol 'font-lock' instead of binding
diff-font-lock-refine to t.
(diff-mode-test-font-lock-syntax-one-line): Bind diff-refine
to nil instead of binding diff-font-lock-refine to nil.

5 years agoMinor improvement of documentation of '(when CONDITION . SPEC)'
Eli Zaretskii [Mon, 4 Mar 2019 17:49:47 +0000 (19:49 +0200)]
Minor improvement of documentation of '(when CONDITION . SPEC)'

* doc/lispref/display.texi (Other Display Specs): Add a caveat
to using the '(when CONDITION . SPEC)' display specs.

5 years agoAvoid assertion violations in buf_bytepos_to_charpos
Eli Zaretskii [Mon, 4 Mar 2019 17:22:23 +0000 (19:22 +0200)]
Avoid assertion violations in buf_bytepos_to_charpos

* src/marker.c (buf_bytepos_to_charpos): Disable the assertion
regarding bytepos always at the head byte of a multibyte
sequence.

5 years agoFix invocation with -rv on the command line
Eli Zaretskii [Mon, 4 Mar 2019 16:28:18 +0000 (18:28 +0200)]
Fix invocation with -rv on the command line

* lisp/frame.el (frame-set-background-mode): Avoid errors from
'face-spec-match-p' when the face was not yet realized for
FRAME.  (Bug#34725)

5 years ago* lisp/emacs-lisp/map.el: Bump version to 2.0.
Nicolas Petton [Mon, 4 Mar 2019 12:10:45 +0000 (13:10 +0100)]
* lisp/emacs-lisp/map.el: Bump version to 2.0.

5 years agoPrevent introducing invalid scroll bar width/height values (Bug#34569)
Martin Rudalics [Mon, 4 Mar 2019 09:28:56 +0000 (10:28 +0100)]
Prevent introducing invalid scroll bar width/height values (Bug#34569)

* src/frame.c (store_frame_param): Don't store invalid values
for scroll_bar_width/height.
(x_report_frame_params): Don't report invalid values for
scroll_bar_width/height.
(x_set_scroll_bar_width, x_set_scroll_bar_height): Don't set
invalid values for scroll_bar_width/height.

5 years agoFix minibuffer resizing with temporarily selected frames (Bug#34317)
Martin Rudalics [Mon, 4 Mar 2019 09:11:53 +0000 (10:11 +0100)]
Fix minibuffer resizing with temporarily selected frames (Bug#34317)

* src/keyboard.c (command_loop_1): Resize echo area exactly
only if the echo area window is the minibuffer window of the
selected frame (Bug#34317).
* src/xdisp.c (x_consider_frame_title): Inhibit redisplay also
when restoring the selected window/frame to avoid that
resize_mini_window sizes back the minibuffer window of a
temporarily selected frame (Bug#34317).

5 years ago* src/alloc.c (gcstat): Now static.
Paul Eggert [Mon, 4 Mar 2019 08:12:09 +0000 (00:12 -0800)]
* src/alloc.c (gcstat): Now static.

5 years ago* src/gfilenotify.c: Fix indenting.
Paul Eggert [Mon, 4 Mar 2019 08:04:46 +0000 (00:04 -0800)]
* src/gfilenotify.c: Fix indenting.

5 years ago* src/font.h: Fix commentary.
Paul Eggert [Mon, 4 Mar 2019 08:04:27 +0000 (00:04 -0800)]
* src/font.h: Fix commentary.

5 years agoSimplify list creation in C code
Paul Eggert [Mon, 4 Mar 2019 08:00:39 +0000 (00:00 -0800)]
Simplify list creation in C code

The main new thing here is that C code can now say
‘list (a, b, c, d, e, f)’ instead of
‘listn (CONSTYPE_HEAP, 6, a, b, c, d, e, f)’,
thus relieving callers of the responsibility of counting
arguments (plus, the code feels more like Lisp).  The old
list1 ... list5 functions remain, as they’re probably a bit
faster for small lists.
* src/alloc.c (cons_listn, pure_listn): New functions.
(listn): Omit enum argument.
All callers changed to use either new ‘list’ or ‘pure_list’ macros.
* src/charset.c (Fdefine_charset_internal):
* src/coding.c (detect_coding_system)
(Fset_terminal_coding_system_internal):
* src/frame.c (frame_size_history_add, adjust_frame_size):
* src/gtkutil.c (xg_frame_set_char_size):
* src/keyboard.c (command_loop_1):
* src/nsfns.m (frame_geometry):
* src/widget.c (set_frame_size):
* src/xfaces.c (Fcolor_distance):
* src/xfns.c (frame_geometry):
* src/xterm.c (x_set_window_size_1):
* src/xwidget.c (Fxwidget_size_request):
Prefer list1i, list2i, etc. to open-coding them.
* src/charset.c (Fset_charset_priority):
* src/nsterm.m (append2):
* src/window.c (window_list):
* src/xfaces.c (Fx_list_fonts):
Use nconc2 instead of open-coding it.
* src/eval.c (eval_sub, backtrace_frame_apply):
* src/kqueue.c (kqueue_generate_event):
* src/nsterm.m (performDragOperation:):
* src/pdumper.c (Fpdumper_stats):
* src/w32.c (init_environment):
Prefer list1, list2, etc. to open-coding them.
* src/font.c (font_list_entities):
Parenthesize to avoid expanding new ‘list’ macro.
* src/gtkutil.c (GETSETUP): Rename from MAKE_FLOAT_PAGE_SETUP
to get lines to fit.  Move outside the ‘list’ call, since it’s
now a macro.
* src/keymap.c (Fmake_keymap): Simplify.
* src/lisp.h (list, pure_list): New macros.
(list1i): New function.

5 years agoMerge diff-font-lock-refine and diff-auto-refine-mode into diff-refine
Charles A. Roelli [Sun, 24 Feb 2019 15:13:13 +0000 (16:13 +0100)]
Merge diff-font-lock-refine and diff-auto-refine-mode into diff-refine

This change was discussed in Bug#32991.

* admin/gitmerge.el (gitmerge-resolve): Bind 'diff-refine'
instead of 'diff-auto-refine-mode' to nil.
* doc/emacs/files.texi (Diff Mode): Explain 'diff-refine'
instead of 'diff-auto-refine-mode' in the documentation of
'diff-hunk-next' and 'diff-hunk-prev'.  Mention in the
documentation of 'diff-refine-hunk' that refining is already
done by default.
* etc/NEWS (Diff mode): Explain renamed 'diff-refine' variable
and mention deprecation and disabling of
'diff-auto-refine-mode'.
* lisp/vc/diff-mode.el (diff-font-lock-refine): Rename to
'diff-refine' and allow choices nil, 'font-lock' and 'navigation'.
(diff-auto-refine-mode): Disable it by default, make it
obsolete and make it set 'diff-refine' appropriately to keep
backward compatibility.
(diff-hunk-next, diff-hunk-prev): Adapt to rename of
diff-auto-refine-mode and ensure that refining only happens
when calling these commands interactively.
(diff--font-lock-refined): Adapt to rename of
diff-font-lock-refine.
* lisp/vc/smerge-mode.el (smerge-next, smerge-prev): Check
that 'diff-refine' is set instead of checking
'diff-auto-refine-mode' when deciding whether to refine a
conflict.

5 years agoCorrect some slightly incorrect regular expressions:
Alan Mackenzie [Sun, 3 Mar 2019 20:03:56 +0000 (20:03 +0000)]
Correct some slightly incorrect regular expressions:

* lisp/progmodes/cc-awk.el (c-awk-harmless-char-re)
(c-awk-harmless-line-char-re, c-awk-_-harmless-nonws-char-re): [...\\\\...]
-> [...\\...].

* lisp/progmodes/cc-engine.el (c-literal-limits): "*/" -> "\\*/".

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

5 years agoFix starting temacs interactively
Eli Zaretskii [Sun, 3 Mar 2019 17:02:34 +0000 (19:02 +0200)]
Fix starting temacs interactively

* src/dispnew.c (init_display_interactive): Don't call
init_faces_initial if we aren't initialized, since
tty-set-up-initial-frame-faces is not available then.  This
restores the ability to start "temacs -nw" and also avoids
bad crashes in "emacs -nw" if the pdumper file is not found.
(Bug#34707)

5 years agoFix typo in previous change
Paul Eggert [Sun, 3 Mar 2019 07:02:01 +0000 (23:02 -0800)]
Fix typo in previous change

* src/alloc.c (memory_full_cons_threshold):
Move to after definition of struct cons_block.
Problem reported by Basil L. Contovounesios in:
https://lists.gnu.org/r/emacs-devel/2019-03/msg00067.html

5 years ago* test/lisp/progmodes/python-tests.el
Glenn Morris [Sun, 3 Mar 2019 03:02:50 +0000 (19:02 -0800)]
* test/lisp/progmodes/python-tests.el
(python-syntax-after-python-backspace): Expect success.

5 years agomemory_full_cons_threshold is a constant
Paul Eggert [Sat, 2 Mar 2019 21:13:05 +0000 (13:13 -0800)]
memory_full_cons_threshold is a constant

* src/alloc.c (memory_full_cons_threshold): Now const.
(memory_full): Omit no-longer-needed initialization.

5 years agoAvoid staticvec duplicates
Paul Eggert [Sat, 2 Mar 2019 19:05:40 +0000 (11:05 -0800)]
Avoid staticvec duplicates

* src/alloc.c (staticpro) [ENABLE_CHECKING]: Check for duplicates.
* src/keyboard.c (syms_of_keyboard): Define
while-no-input-ignore-events and inhibit--record-char here ...
(syms_of_keyboard_for_pdumper): ... instead of here.
This avoids duplicates in staticvec.

5 years agoCheck by eassert that a bytepos argument isn't in the middle of a character
Alan Mackenzie [Sat, 2 Mar 2019 18:23:34 +0000 (18:23 +0000)]
Check by eassert that a bytepos argument isn't in the middle of a character

* src/marker.c (buf_bytepos_to_charpos): Add an eassert to check that the
parameter bytepos is at the beginning of a character or EOB.

5 years agoFix DND on MS-Windows with files from UNC directories
Eli Zaretskii [Sat, 2 Mar 2019 18:07:36 +0000 (20:07 +0200)]
Fix DND on MS-Windows with files from UNC directories

* lisp/dnd.el (dnd-get-local-file-uri): Always return nil on
MS-Windows, as this method cannot possibly work there: URIs
that begin with the local system's name are UNCs, where the
//SERVER part cannot be removed.  (Bug#34675)

5 years agoRevert "Add hook for all events"
Phillip Lord [Sat, 2 Mar 2019 16:52:53 +0000 (16:52 +0000)]
Revert "Add hook for all events"

This reverts commit 7b31de4d107302ed91ce7519cd778b340a9880ee.

5 years agoRevert "; Fix typos in NEWS"
Phillip Lord [Sat, 2 Mar 2019 16:51:31 +0000 (16:51 +0000)]
Revert "; Fix typos in NEWS"

This reverts commit d52bc534d799c255f24ff2a56e8bed830d8f68ca.

5 years agoRevert "; Document input-event-functions"
Phillip Lord [Sat, 2 Mar 2019 16:48:50 +0000 (16:48 +0000)]
Revert "; Document input-event-functions"

This reverts commit 27fffb2701c38090916e077d28a4a6b9e2bc09d2.

5 years agoCorrect regexp-opt return value for empty string list
Mattias Engdegård [Mon, 25 Feb 2019 14:22:02 +0000 (15:22 +0100)]
Correct regexp-opt return value for empty string list

When regexp-opt is called with an empty list of strings, return a regexp
that doesn't match anything instead of the empty string (Bug#20307).

* doc/lispref/searching.texi (Regular Expression Functions):
* etc/NEWS:
Document the new behaviour.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
Return a never-match regexp for empty inputs.

5 years agorx: fix `or' ordering by adding argument to regexp-opt
Mattias Engdegård [Sun, 24 Feb 2019 21:12:52 +0000 (22:12 +0100)]
rx: fix `or' ordering by adding argument to regexp-opt

The rx `or' form may reorder its arguments in an unpredictable way,
contrary to user expectation, since it sometimes uses `regexp-opt'.
Add a NOREORDER option to `regexp-opt' for preventing it from
producing a reordered regexp (Bug#34641).

* doc/lispref/searching.texi (Regular Expression Functions):
* etc/NEWS (Lisp Changes in Emacs 27.1):
Describe the new regexp-opt NOREORDER argument.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt): Add NOREORDER.
Make no attempt at regexp improvement if the set of strings contains
a prefix of another string.
(regexp-opt--contains-prefix): New.
* lisp/emacs-lisp/rx.el (rx-or): Call regexp-opt with NOREORDER.
* test/lisp/emacs-lisp/rx-tests.el: Test rx `or' form match order.

5 years agoFix 'end-of-visual-line' with overlay strings with newlines
Eli Zaretskii [Sat, 2 Mar 2019 10:17:47 +0000 (12:17 +0200)]
Fix 'end-of-visual-line' with overlay strings with newlines

* src/indent.c (Fvertical_motion): Get out of overlay strings
with embedded newlines even if moving within the same screen
line.  See https://github.com/emacs-lsp/lsp-mode/issues/677
for more details.
Fix test for IT_CHARPOS being at the beginning of the
accessible portion of the buffer.

5 years agoImprove documentation of 'auto-coding-functions'
Eli Zaretskii [Sat, 2 Mar 2019 08:42:29 +0000 (10:42 +0200)]
Improve documentation of 'auto-coding-functions'

* doc/lispref/nonascii.texi (Default Coding Systems): Clarify
that the functions in 'auto-coding-functions' are called both
for decoding and for encoding.

* lisp/international/mule.el (auto-coding-functions): Doc fix.

5 years agoFix visiting XML files with non-Unix EOL format
Eli Zaretskii [Sat, 2 Mar 2019 08:32:06 +0000 (10:32 +0200)]
Fix visiting XML files with non-Unix EOL format

* lisp/international/mule.el (sgml-xml-auto-coding-function)
(sgml-html-meta-auto-coding-function): Don't use
'buffer-file-coding-system' if the buffer is unibyte.
(Bug#34704)

5 years agoUpdate example major mode code in Elisp manual
Basil L. Contovounesios [Tue, 26 Feb 2019 11:57:53 +0000 (11:57 +0000)]
Update example major mode code in Elisp manual

* doc/lispref/modes.texi (Example Major Modes): Update code examples
to reflect current state of lisp/textmodes/text-mode.el and
lisp/emacs-lisp/lisp-mode.el. (bug#34671)

5 years ago* src/syntax.c (update_syntax_table): Prefer 'else' to 'goto'
Stefan Monnier [Fri, 1 Mar 2019 21:04:11 +0000 (16:04 -0500)]
* src/syntax.c (update_syntax_table): Prefer 'else' to 'goto'

5 years ago* lisp/Makefile.in (leim): Fix void-function pinyin-convert
Stefan Monnier [Fri, 1 Mar 2019 20:57:40 +0000 (15:57 -0500)]
* lisp/Makefile.in (leim): Fix void-function pinyin-convert

5 years agoMaintain interval ->position fields correctly in update_interval
Alan Mackenzie [Fri, 1 Mar 2019 17:35:12 +0000 (17:35 +0000)]
Maintain interval ->position fields correctly in update_interval

Also fix some anomalies in the handling of byte positions in regexp-emacs.c
This fixes bug #34525.

* src/intervals.c (SET_PARENT_POSITION): New macro.
(update_interval): When moving to an interval's parent, set that parent's
->position field, to maintain the consistency of the tree.

* src/intervals.h (struct interval): Amend the comment describing when
->position is valid.

* src/pdumper.c: Update the hash associated with struct interval.

* src/regex-emacs.c: (re_match_2_internal): Only invoke POINTER_TO_OFFSET on a
known character boundary.  Only perform arithmetic on character positions, not
on byte positions.  Correct the argument to an invocation of
UPDATE_SYNTAX_TABLE_FORWARD by adding 1 to it (in case wordend:).

* src/syntax.c: (update_syntax_table): Remove the now redundant code that set
the ->position field of all parents of the interval found by update_interval.

5 years ago; Merge from origin/emacs-26
Glenn Morris [Fri, 1 Mar 2019 17:40:22 +0000 (09:40 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

5ec7ca1 (origin/emacs-26) ; Auto-commit of loaddefs files.

5 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 1 Mar 2019 17:40:22 +0000 (09:40 -0800)]
Merge from origin/emacs-26

9df1365 Fix a typo in the Calc manual
f3dab02 Minor improvement in cross-references of the ELisp manual
560c84b Fix last change on 'compilation-parse-errors'

5 years ago; Merge from origin/emacs-26
Glenn Morris [Fri, 1 Mar 2019 17:40:22 +0000 (09:40 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

1dff097 Backport: js--re-search-backward-inner: Fix infloop

5 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 1 Mar 2019 17:40:22 +0000 (09:40 -0800)]
Merge from origin/emacs-26

dee3cdc Minor improvement for docs of completion
c86d419 ; * src/image.c (imagemagick_load, svg_load): Fix typos in co...
6d46fa9 Disable the timerfd interface on Cygwin
3707ea4 Fix a typo in the doc string of 'regex-opt'
d9905d5 Document bash 5.0.0 misbehavior in tramp.texi (Bug#34192)

# Conflicts:
# doc/misc/tramp.texi

5 years agoSuppress GC stats when obviously not needed
Paul Eggert [Fri, 1 Mar 2019 17:01:59 +0000 (09:01 -0800)]
Suppress GC stats when obviously not needed

This should help future improvements where these stats can be
bignums that do not fit into intmax_t.
* src/alloc.c (struct gcstat, gcstat): New type and static var,
to package up GC statistics into one C object.  It replaces ...
(total_free_intervals, total_intervals, total_strings)
(total_free_strings, total_string_bytes, total_vectors)
(total_vector_slots, total_free_vector_slots): ... these
removed static vars.  All uses changed.
(garbage_collect_1): Accept a struct gcstat *, not a void *
which was not used anymore anyway.  Return a bool indicating
success, instead of a Lisp object.  All callers changed.
(garbage_collect): New function.  All C callers of
Fgarbage_collect changed to use it, since none of them use the
return value.  Now, only Lisp code uses Fgarbage_collect.
(Fgarbage_collect): No longer noinline.  Cons up the return
value here, not in garbage_collect_1.

5 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 Mar 2019 12:31:58 +0000 (07:31 -0500)]
; Auto-commit of loaddefs files.

5 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 1 Mar 2019 11:23:38 +0000 (06:23 -0500)]
; Auto-commit of loaddefs files.

5 years agoFix a typo in the Calc manual
Eli Zaretskii [Fri, 1 Mar 2019 10:30:47 +0000 (12:30 +0200)]
Fix a typo in the Calc manual

* doc/misc/calc.texi (Algebraic Tutorial): Fix parentheses in
@example.  (Bug#34689)