]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago* lisp/net/dictionary.el: Remove remnants of package
Torsten Hilbrich [Thu, 19 Nov 2020 20:21:43 +0000 (21:21 +0100)]
* lisp/net/dictionary.el: Remove remnants of package

Version and package depedencies are not useful when included into
Emacs.

3 years agoAdd history of search words to read-string
Matthias Meulien [Sun, 8 Nov 2020 15:08:07 +0000 (16:08 +0100)]
Add history of search words to read-string

3 years agoRemove text property from empty line
Matthias Meulien [Sun, 8 Nov 2020 15:06:02 +0000 (16:06 +0100)]
Remove text property from empty line

3 years agoMove placement of dictionary-tooltip-mouse-event
Torsten Hilbrich [Thu, 19 Nov 2020 07:25:42 +0000 (08:25 +0100)]
Move placement of dictionary-tooltip-mouse-event

* lisp/net/dictionary.el (dictionary-tooltip-mouse-event): Place
variable before dictionary-display-tooltip to avoid warning about use of
free variable when compiling dictionary-display-tooltip

3 years agoSupport nil value for dictionary-server
Torsten Hilbrich [Thu, 19 Nov 2020 07:23:07 +0000 (08:23 +0100)]
Support nil value for dictionary-server

* net/lisp/dictionary.el (dictionary-server): Support choice to select
the dictionary server to use
* net/lisp/dictionary.el (dictionary-check-connection): Support nil
value for dictionary-server

This nil value is the new default value of that variable. When
opening a new connection and dictionary-server is nil the code
behaves the following way:

- it will first try to connect to a dictd server running on localhost
- if that fails, it queries the user if the alternative
  server (dict.org) should be consulted
- if the user agrees, the connection is made to dict.org

This allows the default value of dictionary-server not to connect
a remote server by default. The user is always able to select a
different server by customizing the variable dictionary-search.

4 years agoFix dictionary tooltip mode
Torsten Hilbrich [Sat, 10 Oct 2020 05:04:27 +0000 (07:04 +0200)]
Fix dictionary tooltip mode

* lisp/net/dicionary.el (dictionary-tooltip-mode): Add mouse movement
binding and use tooltip-functions instead of tooltip-hook

There were some changes in Emacs since testing it the last time. I had
to add keybinding for mouse movement and enable track-mouse to get the
mode working again.

4 years agoAdding details page for dictionary
Torsten Hilbrich [Fri, 9 Oct 2020 04:04:35 +0000 (06:04 +0200)]
Adding details page for dictionary

* net/lisp/dictionary.el (dictionary-display-dictionary-line): Allow
getting more details on a dictionary by clicking the "(Details)" link.

I had the functionality to query the dictionary information but no
mechanism to invoke it. So just add a button after the short description
of the dictionary to get more information.

4 years agoDictionary now uses button
Torsten Hilbrich [Fri, 9 Oct 2020 03:00:02 +0000 (05:00 +0200)]
Dictionary now uses button

* net/lisp/dictionary-link.el: Removed now obsolete file
* net/lisp/dictionary.el: Use insert-button and make-button
* net/lisp/dictionary.el (dictionary-mode-map): Now defined using defvar

I had to add a conversion function as parameter for the button 'action
as I need to be able to pass nil data to my function. This is not
possible with the regular button 'action function and the 'button-data
value.

The functionality of searching a link in all dictionaries has been
removed for now. It might appear again once I have an idea how to
implement it.

4 years agoDon't check for existence of defface
Torsten Hilbrich [Thu, 8 Oct 2020 17:35:50 +0000 (19:35 +0200)]
Don't check for existence of defface

* lisp/net/dictionary.el: defface has been available in Emacs for quite
some time now. No need to check it before using it.

4 years agoDont't check coding-system-list for existence
Torsten Hilbrich [Thu, 8 Oct 2020 17:33:33 +0000 (19:33 +0200)]
Dont't check coding-system-list for existence

* lisp/net/dictionary.el (dictionary-coding-systems-for-dictionaries):
Don't check for coding-system-list before using it. It check no longer
be necessary.

4 years agoAdd :version tag to defcustom statement
Torsten Hilbrich [Thu, 8 Oct 2020 17:30:12 +0000 (19:30 +0200)]
Add :version tag to defcustom statement

* lisp/net/dictionary.el: Add :version tag to all defcustom statements

Suggested-By: Robert Pluim <rpluim@gmail.com>
4 years agoRemoved some compability parts in dictionary
Torsten Hilbrich [Mon, 5 Oct 2020 05:06:30 +0000 (07:06 +0200)]
Removed some compability parts in dictionary

* lisp/net/dictionary.el: Use cl-lib, remove defface and defgroup
checks, remove xemacs-related code
* lisp/net/dictionary-link.el: Remove xemacs-related code

4 years agoRenamed link.el
Torsten Hilbrich [Mon, 5 Oct 2020 05:11:25 +0000 (07:11 +0200)]
Renamed link.el

* lisp/net/link.el: Renamed to connection-link.el, also prefixing all
functions with "dictionary-" prefix
* lisp/net/dictionary.el: Adapt to renamed functions

4 years agoRenamed connection.el
Torsten Hilbrich [Mon, 5 Oct 2020 04:56:59 +0000 (06:56 +0200)]
Renamed connection.el

* lisp/net/connection.el: Renamed to dictionary-connection.el, also
prefixing all functions with "dictionary-" prefix
* lisp/net/dictionary.el: Adapt to renamed functions

4 years agoImporting dictionary module
Torsten Hilbrich [Mon, 5 Oct 2020 04:50:25 +0000 (06:50 +0200)]
Importing dictionary module

* lisp/net: Adding files connection.el, link.el, dictionary.el,
imported from https://github.com/myrkr/dictionary-el.git

4 years agoMention two more functions in the commentary
Dmitry Gutov [Mon, 5 Oct 2020 00:02:10 +0000 (03:02 +0300)]
Mention two more functions in the commentary

* lisp/progmodes/project.el:
Mention two more functions in the commentary (bug#43595).

4 years agoImprove documentation of 'isearch-group-N' faces
Eli Zaretskii [Wed, 7 Oct 2020 09:12:06 +0000 (12:12 +0300)]
Improve documentation of 'isearch-group-N' faces

* etc/NEWS:
* doc/emacs/search.texi (Search Customizations): Improve and
clarify the wording of the 'isearch-group-N' faces description.

* lisp/isearch.el (search-highlight-submatches): Doc fix.

4 years agoFix last change in frame.el.
Eli Zaretskii [Wed, 7 Oct 2020 08:35:59 +0000 (11:35 +0300)]
Fix last change in frame.el.

* lisp/frame.el (frame-set-background-mode): Fix last change: yet
another place where FRAME was not taken into account, using the
selected frame instead.  (Bug#43837)

4 years agoFix face recalculation when frame's background mode changes
Eli Zaretskii [Wed, 7 Oct 2020 07:02:20 +0000 (10:02 +0300)]
Fix face recalculation when frame's background mode changes

* lisp/frame.el (frame-set-background-mode): Use the FRAME
argument instead of the selected frame, when calling
'face-spec-match-p'.  (Bug#43837)

4 years agoRemove mention of the obsolete cust-print.el from the manual
Lars Ingebrigtsen [Wed, 7 Oct 2020 04:42:05 +0000 (06:42 +0200)]
Remove mention of the obsolete cust-print.el from the manual

* doc/lispref/edebug.texi (Printing in Edebug): Remove mention of
the obsolete cust-print.el (bug#37956) and adjust the text a bit.

4 years agoUpdate documentation on this-command-keys to reflect new behavior
Lars Ingebrigtsen [Wed, 7 Oct 2020 04:09:18 +0000 (06:09 +0200)]
Update documentation on this-command-keys to reflect new behavior

* doc/lispref/commands.texi (Command Loop Info):
`this-command-keys' does not include the C-u any more, so remove
that from the description and the example
(bug#22107).

* src/keyboard.c (Fthis_single_command_keys): Don't say that
`this-command-keys' returns the C-u prefix (bug#22111).

4 years agoDefault the grep commands to skip directories
Alex Gramiak [Wed, 7 Oct 2020 03:41:23 +0000 (05:41 +0200)]
Default the grep commands to skip directories

* lisp/progmodes/grep.el (grep-compute-defaults): Skip directories
(bug#23590).

4 years agoMake artist-mode work when display-line-numbers-mode is on
Lars Ingebrigtsen [Wed, 7 Oct 2020 03:23:26 +0000 (05:23 +0200)]
Make artist-mode work when display-line-numbers-mode is on

* lisp/textmodes/artist.el (artist--adjust-x): New function.
(artist-mouse-draw-continously, artist-mouse-draw-poly)
(artist-mouse-draw-1point, artist-mouse-draw-2points): Use it to
take `display-line-numbers-mode' widths into account.

4 years agoRemove reference to outdated Gnus variable from the manual
Lars Ingebrigtsen [Wed, 7 Oct 2020 03:05:20 +0000 (05:05 +0200)]
Remove reference to outdated Gnus variable from the manual

* doc/misc/gnus.texi (Startup Variables): Remove reference to
gnus-use-backend-marks, which was removed in 2011 (bug#43833).

4 years agoalist-get doc string further clarification
Lars Ingebrigtsen [Wed, 7 Oct 2020 02:50:52 +0000 (04:50 +0200)]
alist-get doc string further clarification

* lisp/subr.el (alist-get): Mention generalized variables again
for easier cross-referencing (bug#43836).

4 years agoClarify what ``chrooted environment means'' for TRAMP
Hong Xu [Wed, 7 Oct 2020 02:41:29 +0000 (04:41 +0200)]
Clarify what ``chrooted environment means'' for TRAMP

* doc/misc/tramp.texi (Frequently Asked Questions): Clarify what
``chrooted environment means'' for TRAMP (bug#43839).

4 years agoMake the State button in Custom use extended menus
Mauro Aranda [Wed, 7 Oct 2020 02:35:52 +0000 (04:35 +0200)]
Make the State button in Custom use extended menus

* lisp/cus-edit.el (custom-actioned-widget): New variable.
Dynamically hold the widget for which to show the menu.
(custom-variable-extended-menu, custom-face-extended-menu)
(custom-group-extended-menu): Keymap menus for the State menu.  Use
custom-actioned-widget for the :enable and :selected forms.  Make
related items radio buttons.  (Bug#4787)
(custom-variable-menu, custom-face-menu, custom-group-menu): Keep for
backward compatibility, but default to nil, so we prefer the keymap
menus instead.
(custom-variable-action, custom-face-action, custom-group-action):
Pass the keymap menu to widget-choose when the simplified menus
are nil.

4 years ago* test/lisp/progmodes/ruby-mode-tests.el: Fix obsolete warnings
Stefan Monnier [Wed, 7 Oct 2020 02:08:02 +0000 (22:08 -0400)]
* test/lisp/progmodes/ruby-mode-tests.el: Fix obsolete warnings

4 years agoAdd match-data to isearch state and repeat faces to highlight group matches
Juri Linkov [Tue, 6 Oct 2020 20:14:26 +0000 (23:14 +0300)]
Add match-data to isearch state and repeat faces to highlight group matches

* lisp/isearch.el (isearch-match-data): New variable.
(isearch-mode): Set isearch-match-data to nil.
(isearch-update): Call isearch-highlight with isearch-match-data.
(isearch--state): Add isearch-match-data.
(isearch--set-state): Restore isearch-match-data.
(with-isearch-suspended): Preserve isearch-match-data.
(isearch-search): Set isearch-match-data to integers.
(isearch-group-1): Rename from isearch-group-odd and adjust colors.
(isearch-group-2): Rename from isearch-group-even and adjust colors.
(isearch-highlight): Add optional arg 'match-data'.
Rewrite search-highlight-submatches part to recycle faces.

* doc/emacs/search.texi (Search Customizations): Amend the
documentation for isearch-group faces.

(bug#6227, bug#43702)

4 years agoFix crash when creating new NS frame (bug#43812)
Alan Third [Mon, 5 Oct 2020 19:38:45 +0000 (20:38 +0100)]
Fix crash when creating new NS frame (bug#43812)

* src/nsterm.m (ns_clear_under_internal_border): Check the frame is
live.

4 years agoAdd check for bound and true 'ido-everywhere' in multi-occur--prompt
Juri Linkov [Tue, 6 Oct 2020 18:35:53 +0000 (21:35 +0300)]
Add check for bound and true 'ido-everywhere' in multi-occur--prompt

* lisp/replace.el (multi-occur--prompt): Check if 'ido-everywhere' is
bound and true (bug#41633).

4 years agoFix args of truncate-string-to-width in ibuffer-compile-make-substring-form
Juri Linkov [Tue, 6 Oct 2020 18:33:20 +0000 (21:33 +0300)]
Fix args of truncate-string-to-width in ibuffer-compile-make-substring-form

* lisp/ibuffer.el (ibuffer-compile-make-substring-form): Fix args of
truncate-string-to-width call (bug#41250)

4 years ago* lisp/international/mule.el (define-coding-system): Revert accidental change
Stefan Monnier [Tue, 6 Oct 2020 15:02:00 +0000 (11:02 -0400)]
* lisp/international/mule.el (define-coding-system): Revert accidental change

This was accidentally included in a9f147af716aa026ec7778202901c4cb4bd5487d
"Use the full name of the null byte/character, not its abbreviation".

4 years ago* lisp/international/mule-util.el: Revert bug#41250 workaround
Stefan Monnier [Tue, 6 Oct 2020 13:38:25 +0000 (09:38 -0400)]
* lisp/international/mule-util.el: Revert bug#41250 workaround

(truncate-string-ellipsis): Use the '…' character itself since it
should work now and is more readable.

4 years ago* lisp/international/ja-dic-cnv.el: Attempt to fix bug#41250
Stefan Monnier [Tue, 6 Oct 2020 13:34:20 +0000 (09:34 -0400)]
* lisp/international/ja-dic-cnv.el: Attempt to fix bug#41250

(skkdic-convert): Only bind `coding-system-for-read` where needed.

4 years agoSuppress obsoletion warning in test of obsolete rx function
Mattias Engdegård [Tue, 6 Oct 2020 12:22:57 +0000 (14:22 +0200)]
Suppress obsoletion warning in test of obsolete rx function

* test/lisp/emacs-lisp/rx-tests.el (rx-compat): Add byte-compilation
warning suppression.

4 years ago; * lisp/international/mule-util.el (truncate-string-ellipsis): Fix comment.
Eli Zaretskii [Tue, 6 Oct 2020 11:51:13 +0000 (14:51 +0300)]
; * lisp/international/mule-util.el (truncate-string-ellipsis): Fix comment.

4 years agoFix last change
Mattias Engdegård [Tue, 6 Oct 2020 11:09:58 +0000 (13:09 +0200)]
Fix last change

* lisp/international/mule-util.el (truncate-string-ellipsis):
Use Unicode hex escapes instead of named escapes here, because \N{...}
is not available during bootstrapping.  (Bug#41250)

4 years agoFix last change
Eli Zaretskii [Tue, 6 Oct 2020 08:24:15 +0000 (11:24 +0300)]
Fix last change

* lisp/international/mule-util.el (truncate-string-ellipsis): Add
a FIXME comment that explains the last change.  (Bug#41250)

4 years agoDon't use the character '…' literally in mule-util.el (bug#41250)
Juri Linkov [Tue, 6 Oct 2020 07:50:46 +0000 (10:50 +0300)]
Don't use the character '…' literally in mule-util.el (bug#41250)

* lisp/international/mule-util.el (truncate-string-ellipsis):
Replace the character '…' with its Unicode name.

4 years agoFix animate test that somehow changed recently
Lars Ingebrigtsen [Tue, 6 Oct 2020 01:51:17 +0000 (03:51 +0200)]
Fix animate test that somehow changed recently

4 years agoFix mule-util-tests after recent truncation changes
Lars Ingebrigtsen [Tue, 6 Oct 2020 01:48:00 +0000 (03:48 +0200)]
Fix mule-util-tests after recent truncation changes

* test/lisp/international/mule-util-tests.el: Fix truncation checks.

4 years agoAdd missing full stop in MS-DOS processes documentation
Daniel Martín [Tue, 6 Oct 2020 01:42:44 +0000 (03:42 +0200)]
Add missing full stop in MS-DOS processes documentation

* doc/emacs/msdos-xtra.texi (MS-DOS Processes): Minor copy edig
(bug#43820).

4 years agocperl-mode: Fix a test to ensure cperl-mode is active
Harald Jörg [Tue, 6 Oct 2020 01:39:55 +0000 (03:39 +0200)]
cperl-mode: Fix a test to ensure cperl-mode is active

* test/lisp/progmodes/cperl-mode-tests.el
(cperl-mode-test-indent-exp): Make sure that cperl-mode is active
for testing 'cperl-indent-exp', also skip this test under
perl-mode.

* test/lisp/progmodes/cperl-mode-resources/cperl-indent-exp.pl:
Eliminate dependency on unrelated customizable variables (bug#10483).

4 years agoUse the full name of the null byte/character, not its abbreviation
Andreas Schwab [Mon, 5 Oct 2020 17:59:00 +0000 (19:59 +0200)]
Use the full name of the null byte/character, not its abbreviation

* lisp/subr.el (inhibit-nul-byte-detection): Make it an obsolete alias.
* src/coding.c (setup_coding_system): Use original name.
(detect_coding): Rename nul_byte_found => null_byte_found.
(detect_coding_system): Use original name.
Rename nul_byte_found => null_byte_found.
(Fdefine_coding_system_internal): Use original name.
(syms_of_coding): Rename inhibit-nul-byte-detection to
inhibit-null-byte-detection.
* src/w16select.c (get_clipboard_data): Rename nul_char to null_char.
* src/json.c (check_string_without_embedded_nulls): Rename from
check_string_without_embedded_nuls.
(Fjson_parse_string): Adjust accordingly.
* src/coding.h (enum define_coding_undecided_arg_index)
(enum coding_attr_index): Rename ...nul_byte... to ...null_byte....
* lisp/info.el (info-insert-file-contents, Info-insert-dir):
* lisp/international/mule.el (define-coding-system):
* lisp/vc/vc-git.el (vc-git--call):
* doc/lispref/nonascii.texi (Lisp and Coding Systems): Use original name.

4 years ago* src/dbusbind.c (xd_signature): Better type check for array elements.
Michael Albinus [Mon, 5 Oct 2020 11:58:28 +0000 (13:58 +0200)]
* src/dbusbind.c (xd_signature): Better type check for array elements.

* test/lisp/net/dbus-tests.el (dbus-test01-compound-types): Extend test.

4 years agoSort items in tmm properly, and allow clicking the final item
Jared Finder [Mon, 5 Oct 2020 08:20:56 +0000 (10:20 +0200)]
Sort items in tmm properly, and allow clicking the final item

* lisp/tmm.el (tmm-menubar-keymap): Sort the final items properly.
(tmm-menubar): Allow clicking the final menu item (bug#43756).

4 years agoUse … in Gnus mode lines (when shortening them)
Juri Linkov [Mon, 5 Oct 2020 07:01:03 +0000 (09:01 +0200)]
Use … in Gnus mode lines (when shortening them)

* lisp/gnus/gnus-sum.el (gnus-set-mode-line): Defer ellipsis
creation to `truncate-string-to-width' (bug#41250).  This uses …
by default.

4 years agoImprove support for using vc commands in indirect buffers
Nathan Moreau [Mon, 5 Oct 2020 06:50:08 +0000 (08:50 +0200)]
Improve support for using vc commands in indirect buffers

* lisp/vc/vc.el (vc-deduce-fileset-1): New defun.
(vc-deduce-fileset): Adapt.
(vc-maybe-buffer-sync): New defun.
(vc-diff): Adapt.
(vc-ediff): Adapt.
(vc-root-diff): Adapt.
(vc-revision-other-window): Adapt (bug#40967).

4 years agoFix the documentation parts of a recent commit
Eli Zaretskii [Mon, 5 Oct 2020 05:37:02 +0000 (08:37 +0300)]
Fix the documentation parts of a recent commit

* lisp/international/mule-util.el (truncate-string-ellipsis): Doc
fix.

* doc/lispref/display.texi (Size of Displayed Text): Improve
wording and accuracy of the documentation of
'truncate-string-to-width'.  Document the function
'truncate-string-ellipsis'.

* etc/NEWS: Improve the wording of the entry for
'truncate-string-to-width'.

4 years ago* src/xdisp.c (syms_of_xdisp): New var `redisplay_skip_initial_frame`.
Stefan Monnier [Mon, 5 Oct 2020 02:50:38 +0000 (22:50 -0400)]
* src/xdisp.c (syms_of_xdisp): New var `redisplay_skip_initial_frame`.

This makes it possible to run most of the redisplay code (tho not the
actual drawing since there's nowhere to draw) even when there's no
real frame at hand, as is the case in batch mode.
This makes `xdisp-tests--minibuffer-resizing` work even in batch.

(redisplay_internal): Obey it.
(init_xdisp): Set `echo_area_window` even in noninteractive mode.
* src/dispnew.c (update_frame): Skip the initial frame.
* src/frame.c (make_frame): Use 80x25 as the default initial size.

* test/src/xdisp-tests.el (xdisp-tests--minibuffer-resizing):
Use the new var and fix use of `executing-kbd-macro`.

4 years agoUse '…' for ellipsis in truncate-string-to-width by default (bug#41250)
Juri Linkov [Sun, 4 Oct 2020 19:41:36 +0000 (22:41 +0300)]
Use '…' for ellipsis in truncate-string-to-width by default (bug#41250)

* lisp/international/mule-util.el (truncate-string-ellipsis):
Change the default value to nil.
(truncate-string-ellipsis): New function.
(truncate-string-to-width): Use the value returned from the
function 'truncate-string-ellipsis'.

* lisp/tab-bar.el (tab-bar-tab-name-truncated):
* lisp/tab-line.el (tab-line-tab-name-ellipsis):
Take advantage of the improvement of the ellipsis default value
in truncate-string-to-width and truncate-string-ellipsis.

* doc/lispref/display.texi (Size of Displayed Text):
Improve description of truncate-string-ellipsis.

4 years agoMake dbus-unregister-object work for monitors
Michael Albinus [Sun, 4 Oct 2020 16:56:45 +0000 (18:56 +0200)]
Make dbus-unregister-object work for monitors

* doc/misc/dbus.texi (Monitoring Messages): Rename from
"Monitoring Events".
(Register Objects, Monitoring Messages):
Mention returned object.

* lisp/net/dbus.el (dbus-unregister-object): Adapt docstring.
(dbus-unregister-object): Delete monitor if needed.
(dbus-register-monitor): Return proper object.

* src/dbusbind.c (dbus-registered-objects-table): Adapt docstring.

* test/lisp/net/dbus-tests.el (dbus--test-signal-handler):
Adapt docstring.
(dbus-test08-register-monitor): New test.

4 years agoMake update-file-autoloads respect generated-autoload-file
Lars Ingebrigtsen [Sun, 4 Oct 2020 14:32:16 +0000 (16:32 +0200)]
Make update-file-autoloads respect generated-autoload-file

* lisp/emacs-lisp/autoload.el (update-file-autoloads): Make
update-file-autoloads respect `generated-autoload-file', as
documented.

4 years agoAvoid segfaults in lookup_image when faces were freed
Eli Zaretskii [Sat, 3 Oct 2020 17:49:18 +0000 (20:49 +0300)]
Avoid segfaults in lookup_image when faces were freed

* src/image.c (lookup_image): Make sure the frame's face cache
exists and has at least the basic faces.  If FACE_ID is not a
basic face, and is no longer cached, fall back on the 'default'
face.  (Bug#43700)

4 years agoSupport extended menus in widget-choose
Mauro Aranda [Sat, 3 Oct 2020 17:31:50 +0000 (19:31 +0200)]
Support extended menus in widget-choose

* doc/misc/widget.texi (Utilities): Document widget-choose.

* etc/NEWS: Document the feature (bug#4787).
* lisp/wid-edit.el (widget--simplify-menu): New function, to convert
extended menus into simplified menus when using the menu to prompt
through the minibuffer.
(widget-choose): Accept a keymap menu.  When not using x-popup-menu,
simplify the menu with widget--simplify-menu.  Document the changes in
the docstring.

4 years ago; Fix more typos
Stefan Kangas [Fri, 2 Oct 2020 16:02:51 +0000 (18:02 +0200)]
; Fix more typos

4 years ago; Fix trivial typos in ChangeLogs
Stefan Kangas [Fri, 2 Oct 2020 15:56:41 +0000 (17:56 +0200)]
; Fix trivial typos in ChangeLogs

4 years agoEnhance syntax-tests.el to test comments in parse-partial-sexp
Alan Mackenzie [Fri, 2 Oct 2020 21:21:06 +0000 (21:21 +0000)]
Enhance syntax-tests.el to test comments in parse-partial-sexp

This now tests the interface between parse-partial-sexp and the low level
comment function in syntax.c

* test/src/syntax-tests.el (syntax-comments-midpoint): New function.
(syntax-pps-comments): New macro.
(top level): Two new syntax-br-comments tests and five new syntax-pps-comments
tests.

* test/data/syntax-comments.txt (top level): Amend some test fragments and add
some more.

4 years agoCalc: fix formatting and parsing Unix time (bug#43759)
Mattias Engdegård [Fri, 2 Oct 2020 16:50:50 +0000 (18:50 +0200)]
Calc: fix formatting and parsing Unix time (bug#43759)

The number of days from epoch to Jan 1, 1970 that was used in parsing
and formatting Unix time was incorrect.  The previous fix
(in e368697ce36) was incomplete.

Reported by Vincent Belaïche.

* lisp/calc/calc-forms.el (math-unix-epoch): New constant.
(math-format-date-part, math-parse-standard-date, calcFunc-unixtime):
Use math-unix-epoch instead of a constant that is sometimes wrong.
* test/lisp/calc/calc-tests.el (calc-unix-date): New test.

4 years agoEnhance syntax-tests.el to test comments in scan-lists
Alan Mackenzie [Fri, 2 Oct 2020 17:25:02 +0000 (17:25 +0000)]
Enhance syntax-tests.el to test comments in scan-lists

This now tests the interface between scan_lists and the comment functions.

* test/src/syntax-tests.el (syntax-br-comments): New macro.
({-in, ;-in, /*-in): Set parse-sexp-ignore-comments to t.
(top level): Add 15 tests for comments inside brace lists.

* test/data/syntax-comments.txt (top level): Amend some test fragments.

4 years ago; Merge from origin/emacs-27
Glenn Morris [Fri, 2 Oct 2020 16:38:24 +0000 (09:38 -0700)]
; Merge from origin/emacs-27

The following commit was skipped:

ef7bc1cc80 (origin/emacs-27) Fix electric-buffer-list buffer selection

4 years agoMerge from origin/emacs-27
Glenn Morris [Fri, 2 Oct 2020 16:38:24 +0000 (09:38 -0700)]
Merge from origin/emacs-27

78eacf31e8 ; Fix many typos in symbols in docs and comments
d5d12707d6 * doc/misc/flymake.texi (Using Flymake): Fix a typo.  (Bug...

# Conflicts:
# lisp/allout.el
# lisp/progmodes/ebrowse.el

4 years ago; Merge from origin/emacs-27
Glenn Morris [Fri, 2 Oct 2020 16:33:53 +0000 (09:33 -0700)]
; Merge from origin/emacs-27

The following commits were skipped:

9b47ae2304 Don't error if no GPG signing key configured
e274e3f44b 2020-03-29  Michael R. Mauger  <michael@mauger.com>

4 years agoMerge from origin/emacs-27
Glenn Morris [Fri, 2 Oct 2020 16:33:53 +0000 (09:33 -0700)]
Merge from origin/emacs-27

41dcbeccf3 Make aliases introduced in previous patch obsolete
4997032c05 Restore some public debugging functions removed in Emacs 27

4 years ago; Merge from origin/emacs-27
Glenn Morris [Fri, 2 Oct 2020 16:33:53 +0000 (09:33 -0700)]
; Merge from origin/emacs-27

The following commit was skipped:

08bda922b4 (emacs-27) ; Auto-commit of loaddefs files.

4 years agoMerge from origin/emacs-27
Glenn Morris [Fri, 2 Oct 2020 16:33:53 +0000 (09:33 -0700)]
Merge from origin/emacs-27

2af6b3147d Clarification in Tramp manual
8fbaca7d41 Check Emacs version used for Tramp compilation
90e5549f02 Don't signal an error when saving files on WdebDAV volumes
6f73cc3579 ; * lisp/net/eww.el (eww-search-words): Doc fix.
ce0842a165 * lisp/hi-lock.el (hi-lock-find-patterns): Autoload it.  (...

4 years agoFix electric-buffer-list buffer selection
Lars Ingebrigtsen [Fri, 2 Oct 2020 06:07:53 +0000 (08:07 +0200)]
Fix electric-buffer-list buffer selection

* lisp/ebuff-menu.el (electric-buffer-list): Ensure that point is
restored, which isn't always the case if
global-display-line-numbers-mode (bug#43755).  This enables
selecting buffers again.

4 years ago; Fix many typos in symbols in docs and comments
Stefan Kangas [Wed, 23 Sep 2020 11:35:55 +0000 (13:35 +0200)]
; Fix many typos in symbols in docs and comments

4 years ago* doc/misc/flymake.texi (Using Flymake): Fix a typo. (Bug#43758)
Eli Zaretskii [Fri, 2 Oct 2020 10:57:51 +0000 (13:57 +0300)]
* doc/misc/flymake.texi (Using Flymake): Fix a typo.  (Bug#43758)

4 years agoCC Mode: Convert the handling of c-special-indent-hook to standard usage
Stefan Monnier [Fri, 2 Oct 2020 10:34:37 +0000 (10:34 +0000)]
CC Mode: Convert the handling of c-special-indent-hook to standard usage

* lisp/progmodes/cc-styles.el (c-set-style): Use kill-local-variable rather
than copying the hook's global value to the local binding.
(c-make-styles-buffer-local): Remove redundant make-variable-buffer-local.

4 years agoDon't error if no GPG signing key configured
Robert Pluim [Fri, 2 Oct 2020 08:47:06 +0000 (10:47 +0200)]
Don't error if no GPG signing key configured

* lisp/gnus/mml-sec.el (mml-secure-epg-sign): Partially revert
"Make mml-secure-epg-sign bug out if we can't find an identity".
It causes signing to fail for people who have not set up
mml-secure-{smime,openpgp}-sign-with-sender, which is a regression
from Emacs-26 (Bug#40118).  In such a situation gpg will use its
default key.

Do not merge to master. On master Emacs will query the user.

4 years agoCalc: fix business days calculation (bug43677)
Mattias Engdegård [Wed, 30 Sep 2020 21:57:27 +0000 (23:57 +0200)]
Calc: fix business days calculation (bug43677)

The calculation of business days was broken in 2012 (probably
310e60d9454fe2 or thereabouts) when the date representation changed
epoch so that Jan 1, 1 AD became day number 1 instead of 0.  Repair
this, along with an unrelated bug that prevented arbitrary holiday
weekdays from working.

Reported by Aaron Zeng.

* lisp/calc/calc-forms.el (math-to-business-day)
(math-from-business-day): Correct calculation of weekdays using Calc's
current (Rata Die) chronology.  Modify loop condition to cope with odd
sets of holiday weekdays.
* test/lisp/calc/calc-tests.el (calc-business-days): New test.

4 years agoFix electric-buffer-list buffer selection
Lars Ingebrigtsen [Fri, 2 Oct 2020 06:07:53 +0000 (08:07 +0200)]
Fix electric-buffer-list buffer selection

* lisp/ebuff-menu.el (electric-buffer-list): Ensure that point is
restored, which isn't always the case if
global-display-line-numbers-mode (bug#43755).  This enables
selecting buffers again.

4 years agoMake xref work better on variables in shell-script-mode
Dmitry Gutov [Fri, 2 Oct 2020 05:11:56 +0000 (07:11 +0200)]
Make xref work better on variables in shell-script-mode

* lisp/progmodes/sh-script.el (sh-mode-syntax-table): Classify "/"
as punctuation so that `M-.' on $foo/bar works on the $foo part
(bug#25585).

4 years agoMake `C-c C-e' in Python buffers work
Lars Ingebrigtsen [Fri, 2 Oct 2020 03:30:37 +0000 (05:30 +0200)]
Make `C-c C-e' in Python buffers work

* lisp/progmodes/python.el (python-shell-send-statement): Don't
send a cookie, because that leads to the naked expression not
being evaled (bug#43450).
(python-shell-send-region): Allow not sending a cookie.
(python-shell-buffer-substring): Ditto.

4 years agopython-shell-send-defun doesn't find the (whole) definition
Per Starbäck [Fri, 2 Oct 2020 03:11:06 +0000 (05:11 +0200)]
python-shell-send-defun doesn't find the (whole) definition

* lisp/progmodes/python.el (python-shell-send-defun): Fix C-M-x
for definitions like @property\ndef bar(): (bug#37828).

4 years agoMake setting verify-hostname-error not make connections fail
Robert Pluim [Fri, 2 Oct 2020 02:49:39 +0000 (04:49 +0200)]
Make setting verify-hostname-error not make connections fail

* lisp/net/gnutls.el (gnutls-boot-parameters): If
verify-hostname-error was set, this would make verify-error a
non-proper list (bug#38602).

4 years agoStop using a dynamically bound 'generated-autoload-file' variable
Lars Ingebrigtsen [Fri, 2 Oct 2020 02:34:31 +0000 (04:34 +0200)]
Stop using a dynamically bound 'generated-autoload-file' variable

* doc/lispref/loading.texi (Autoload): Document change of name
(bug#39823).

* lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Pass
the file name in.
(autoload-generated-file): Ditto.
(autoload-file-load-name): Ditto.
(generate-file-autoloads): Ditto.
(autoload--setup-output): Ditto.
(autoload-generate-file-autoloads): Ditto, and alter doc string to
reflect when `generated-autoload-file' is heeded.
(update-file-autoloads): Pass outfile in to functions.
(autoload-find-destination): Ditto.
(update-directory-autoloads): Make into an obsolete shim around
`make-directory-autoloads'.
(make-directory-autoloads): Renamed from
`update-directory-autoloads' with new semantics.
(batch-update-autoloads): Adjust caller.

* lisp/emacs-lisp/package.el (package-generate-autoloads): Adjust
caller.

4 years agoFix --with-json message
Shohei YOSHIDA [Fri, 2 Oct 2020 01:14:31 +0000 (03:14 +0200)]
Fix --with-json message

* configure.ac (WIDE_EMACS_INT): Fix --with-json help message
(bug#43754).

4 years agoFix check for derived modes in display-buffer-reuse-mode-window
Trevor Murphy [Thu, 1 Oct 2020 22:30:19 +0000 (00:30 +0200)]
Fix check for derived modes in display-buffer-reuse-mode-window

* lisp/window.el (display-buffer-reuse-mode-window): Make the
check for derived modes actually work (bug#38677).

4 years agoFix wdired-do-perm-changes when over Tramp
Tino Calancha [Thu, 1 Oct 2020 21:33:56 +0000 (23:33 +0200)]
Fix wdired-do-perm-changes when over Tramp

* lisp/wdired.el (wdired-do-perm-changes) Use set-file-modes
instead of external program (bug#39284).  This fixes the problem
of passing the wrong argument to the external chmod.

4 years agoFix bug in wdired-get-filename
Tino Calancha [Thu, 1 Oct 2020 21:25:15 +0000 (23:25 +0200)]
Fix bug in wdired-get-filename

* lisp/wdired.el (wdired-get-filename): Acknowledge the first
argument (bug#39280).
* test/lisp/wdired-tests.el (wdired-test-bug39280): Add test.

4 years agoEnhance syntax-tests.el to test some comment character handling.
Alan Mackenzie [Thu, 1 Oct 2020 20:35:40 +0000 (20:35 +0000)]
Enhance syntax-tests.el to test some comment character handling.

* test/src/syntax-tests: Add a new section testing some aspects of comment
  handling in syntax.c.  This needs further enhancement.  It uses ....

* test/data/syntax-comments.txt: A new test file.

4 years agoUse new faces isearch-group-odd and isearch-group-even (bug#43702)
Juri Linkov [Thu, 1 Oct 2020 19:17:40 +0000 (22:17 +0300)]
Use new faces isearch-group-odd and isearch-group-even (bug#43702)

* lisp/isearch.el (isearch-group-odd, isearch-group-even): New faces
instead of isearch-group-1 .. isearch-group-9.
(isearch-highlight): Use new faces.

4 years agoMake recentf daily cleanup repeat
Allen Li [Thu, 1 Oct 2020 18:53:27 +0000 (20:53 +0200)]
Make recentf daily cleanup repeat

* lisp/recentf.el (recentf-auto-cleanup): Fix wording.
* lisp/recentf.el (recentf-auto-cleanup): Make timer repeat,
update docstring.
* etc/NEWS: Update news (bug#39638).

4 years ago2020-03-29 Michael R. Mauger <michael@mauger.com>
Michael R. Mauger [Mon, 30 Mar 2020 00:52:10 +0000 (20:52 -0400)]
2020-03-29  Michael R. Mauger  <michael@mauger.com>

       * lisp/progmodes/sql.el (sql-add-product): Re-correct argument
       spec.  Previous change was due to my mistake; I have
       resolved back to the prior behavior (Bug#39960).
       * test/lisp/progmodes/sql-tests.el (sql-test-add-product): Added
       test to insure I don't make the same mistake again.

4 years agocommand-execute doc string clarification
Boruch Baum [Thu, 1 Oct 2020 18:26:13 +0000 (20:26 +0200)]
command-execute doc string clarification

* lisp/simple.el (command-execute): Doc string clarification
(bug#43749).

4 years agoMake aliases introduced in previous patch obsolete
Lars Ingebrigtsen [Thu, 1 Oct 2020 18:03:58 +0000 (20:03 +0200)]
Make aliases introduced in previous patch obsolete

* lisp/emacs-lisp/debug.el (debugger-toggle-locals):
(debug-help-follow): Make reinstated aliases obsolete.

4 years agoRestore some public debugging functions removed in Emacs 27
Gemini Lasswell [Thu, 1 Oct 2020 17:59:58 +0000 (19:59 +0200)]
Restore some public debugging functions removed in Emacs 27

* lisp/emacs-lisp/backtrace.el (backtrace--to-string): New function.
(backtrace-to-string): Use it.  Fix whitespace (bug#40728).
* lisp/emacs-lisp/debug.el (debugger-insert-backtrace): New function.
Mark it as obsolete.
(debugger-toggle-locals, debug-help-follow): New aliases.

4 years agoFix loading WSDL data again
Lars Ingebrigtsen [Thu, 1 Oct 2020 17:42:45 +0000 (19:42 +0200)]
Fix loading WSDL data again

* lisp/net/soap-client.el (soap-make-wsdl): Change the WSDL
namespace back again.

4 years agoFix restoring data in visual-line-mode
Lars Ingebrigtsen [Thu, 1 Oct 2020 16:49:45 +0000 (18:49 +0200)]
Fix restoring data in visual-line-mode

* lisp/simple.el (visual-line-mode): Only save values once, even
if the mode is switched on twice (bug#43730).  This makes both
previously set local values for variables like truncate-lines, as
well as default values for truncate-lines restorable.

* lisp/emulation/cua-base.el (cua-mode): Ditto.

4 years agoSilence byte-compiler in two tests
Stefan Kangas [Thu, 1 Oct 2020 13:34:08 +0000 (15:34 +0200)]
Silence byte-compiler in two tests

* test/lisp/obsolete/cl-tests.el (require):
* test/lisp/simple-tests.el (simple-test-count-words-bug-41761):
Silence byte-compiler.

4 years ago; Prefer https to http in many URLs
Stefan Kangas [Thu, 1 Oct 2020 13:24:21 +0000 (15:24 +0200)]
; Prefer https to http in many URLs

These were all tested with https and confirmed working.

4 years agoRemove some obsolete URLs
Stefan Kangas [Thu, 1 Oct 2020 13:18:43 +0000 (15:18 +0200)]
Remove some obsolete URLs

* lisp/net/newst-backend.el (newsticker--raw-url-list-defaults):
Remove some obsolete URLs.

4 years agoDon't quote lambdas in several places
Stefan Kangas [Wed, 30 Sep 2020 14:18:50 +0000 (16:18 +0200)]
Don't quote lambdas in several places

* admin/find-gc.el (find-gc-unsafe):
* lisp/align.el (align-rules-list):
* lisp/comint.el (comint-arguments):
* lisp/double.el (isearch-mode-map):
* lisp/ehelp.el (electric-help-command-loop):
* lisp/emacs-lisp/cl-macs.el (cl-defstruct):
* lisp/emulation/cua-rect.el (cua--copy-rectangle-as-kill)
(cua-copy-rectangle-as-text):
* lisp/eshell/esh-var.el (eshell-parse-variable-ref):
* lisp/hexl.el (hexl-insert-multibyte-char):
* lisp/international/titdic-cnv.el (tsang-quick-converter)
(ziranma-converter):
* lisp/language/tibet-util.el (tibetan-decompose-precomposition-alist):
* lisp/mail/mailalias.el (mail-get-names):
* lisp/mh-e/mh-e.el (mh-auto-fields-list, mh-identity-default):
* lisp/mouse.el (mouse-buffer-menu-map, mouse-buffer-menu-alist):
* lisp/play/gametree.el (gametree-make-heading-function):
* lisp/shell.el (shell--command-completion-data):
* lisp/talk.el (talk-update-buffers):
* lisp/tempo.el (tempo-insert-template, tempo-is-user-element)
(tempo-build-collection):
* lisp/term.el (term-input-filter, term-pager-help):
* lisp/textmodes/table.el (table-delete-column):
* lisp/url/url-cache.el (url-cache-create-filename-human-readable):
* lisp/textmodes/tex-mode.el (latex-imenu-create-index): Don't quote
lambdas.

4 years agoDon't recommend quoting lambdas
Stefan Kangas [Wed, 30 Sep 2020 14:02:22 +0000 (16:02 +0200)]
Don't recommend quoting lambdas

* doc/misc/calc.texi (Symbolic Lisp Functions):
* doc/misc/cl.texi (Obsolete Lexical Binding):
* lisp/master.el:
* lisp/progmodes/sql.el (sql-interactive-mode):
* lisp/textmodes/flyspell.el (flyspell-mode):
* lisp/textmodes/ispell.el (ispell-message):
* lisp/textmodes/table.el: Doc fixes; don't recommend quoting
lambdas.

4 years ago; Auto-commit of loaddefs files.
Glenn Morris [Thu, 1 Oct 2020 13:27:29 +0000 (06:27 -0700)]
; Auto-commit of loaddefs files.

4 years ago; Auto-commit of loaddefs files.
Glenn Morris [Thu, 1 Oct 2020 13:11:26 +0000 (06:11 -0700)]
; Auto-commit of loaddefs files.

4 years agoClarification in Tramp manual
Michael Albinus [Thu, 1 Oct 2020 12:23:20 +0000 (14:23 +0200)]
Clarification in Tramp manual

* doc/misc/tramp.texi: Harmonize "Git" spelling.
(Frequently Asked Questions): Describe Emacs version mismatch.