1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-26 15:10:50 -08:00
Commit graph

149304 commits

Author SHA1 Message Date
Lars Ingebrigtsen
cee502ea18 Improve the file-accessible-directory-p doc strin
* src/fileio.c (Ffile_accessible_directory_p): Don't use the
phrase "directory name spec", which isn't defined (bug#18201).
2021-05-29 06:02:13 +02:00
Lars Ingebrigtsen
bff3edfd17 Fix point movement in morse-region and nato-region
* lisp/play/morse.el (morse-region):
(nato-region): Leave point after the translated region
(bug#18717).
2021-05-29 05:22:31 +02:00
Peter Oliver
ee7752aac5 Rename emacs.appdata.xml to emacs.metainfo.xml and add more data
* Makefile.in: Replace "appdata" with "metainfo".

This is the name currently recommended by the spec at
<https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html>.

* etc/emacs.metainfo.xml: Populate more fields, based on those
available in
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html
(bug#48662).

Copyright-paperwork-exempt: yes
2021-05-29 04:15:28 +02:00
Lars Ingebrigtsen
459f89f3bc Revert "Continue checking the same line when hitting SPC in ispell"
This reverts commit 390044f854.

This breaks the `a' command, so it should be fixed in a different way.
2021-05-29 04:08:57 +02:00
Juri Linkov
2003a407c8 * lisp/outline.el (outline-font-lock-keywords): Fix highlight case (bug#48707) 2021-05-28 21:58:11 +03:00
Utkarsh Singh
51c6bafa9b * lisp/outline.el (outline-minor-mode-highlight): Fix safe-local-variable.
Copyright-paperwork-exempt: yes
2021-05-28 21:55:13 +03:00
Philipp Stephani
a52f572e62 ; * src/Makefile.in: Fix typo. 2021-05-28 16:56:17 +02:00
Eli Zaretskii
6d916bfb37 Another stability fix in 'lisp_string_width'
* src/character.c (lisp_string_width): Compute C pointer to data
of STRING immediately before using it, since STRING could be
relocated by GC triggered by processing compositions.  (Bug#48711)
2021-05-28 14:03:16 +03:00
Eli Zaretskii
3fe2f482bd Attempt to fix segfaults caused by changes in 'lisp_string_width'
* src/character.c (lisp_string_width): Validate the value of TO
argument before passing it to 'composition_gstring_width'.
(Bug#48711)
2021-05-28 10:25:26 +03:00
Lars Ingebrigtsen
5a264c3694 Improve previous frames.texi change
* doc/emacs/frames.texi (Fonts): Use conf names instead of path
names (bug#19568).
2021-05-28 03:37:13 +02:00
Lars Ingebrigtsen
d0655b79ab Specify which Gsetting font names are used in the manual
* doc/emacs/frames.texi (Fonts): Explicitly say what Gsettings
names are used (bug#19568).
2021-05-28 03:31:00 +02:00
Lars Ingebrigtsen
fa7993e9a0 Fix previous admin/emake change 2021-05-28 03:04:57 +02:00
Lars Ingebrigtsen
8c529efe47 Adjust admin/emake filters
Recent changes have made etc/doc always be regenerated, so it's no
longer interesting.  And all "git pull"s will make

  INFO     Scraping files for cal-loaddefs.el...
  INFO     Scraping files for cal-loaddefs.el...done

etc be output, so filter them, too.
2021-05-28 03:04:12 +02:00
Lars Ingebrigtsen
390044f854 Continue checking the same line when hitting SPC in ispell
* lisp/textmodes/ispell.el (ispell-process-line): Continue
checking the same line when hitting SPC (bug#20543).
2021-05-28 02:09:10 +02:00
Daniel Martín
651394d845 Fix looking-at-p example in shortdoc.el
* lisp/emacs-lisp/shortdoc.el (regexp): Use `looking-at-p' instead of
`looking-at' (bug#48709).
2021-05-28 01:45:28 +02:00
Alex Bochannek
0eef929cbf Mention the -e switch in an ange-ftp doc string
* lisp/net/ange-ftp.el (ange-ftp-ftp-program-args): Mention the -e
switch (bug#48494).
2021-05-28 01:24:37 +02:00
Alex Bochannek
327accb38f Fix nnimap lexical conversion problem
* lisp/gnus/nnimap.el (nnimap-process-expiry-targets): Fix problem
introduced when converting to lexical binding -- `set' alters the
dynamic value (bug#48577).
2021-05-28 01:19:38 +02:00
Stefan Monnier
24c9657746 * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Silence warnings
(byte-optimize--lexvars): Move before first use instead of using `dlet`
on that first use.
2021-05-27 17:31:57 -04:00
Ingo Lohmar
a29a03c3bc * lisp/progmodes/sql.el: Turn `sql-*-statement-starters' to defvars.
These variables hold information on the SQL standard and
product-specific additions and should not be user-customizable.
2021-05-27 22:54:40 +02:00
Eli Zaretskii
f1c3b82d40 ; * src/character.c (lisp_string_width): Another defensive fix. 2021-05-27 17:15:53 +03:00
Eli Zaretskii
0d0e6143e7 * src/character.c (lisp_string_width): Fix a typo in recent change. 2021-05-27 16:51:56 +03:00
Eli Zaretskii
d3817ad6ce Fix resolution of symlinks during dumping
* src/comp.c (Fcomp_el_to_eln_rel_filename): Don't use
'file-truename', as it is only available once files.el is loaded,
which doesn't work during dumping, until loadup loads files.el.
Instead, use 'realpath'.  (Bug#48578)
* src/w32.c (realpath): New function.
* src/w32.h (realpath): Add prototype.

* nt/mingw-cfg.site (ac_cv_func_realpath)
(gl_cv_func_realpath_works): Define to "yes", as this function is
now implemented in w32.c.
2021-05-27 16:31:14 +03:00
Mattias Engdegård
00f5c2fa38 ; * etc/tutorials/TUTORIAL.sv: Fix typo in last change. 2021-05-27 14:36:33 +02:00
Eli Zaretskii
b8e8f13383 * src/character.c (lisp_string_width): Fix last change. 2021-05-27 15:29:12 +03:00
Mattias Engdegård
de45864cf7 Fix lexing of numbers with trailing decimal point and exponent
Numbers with a trailing dot and an exponent were incorrectly read as
integers (with the exponent ignored) instead of the floats they should
be.  For example, 1.e6 was read as the integer 1, not 1000000.0 as
every sane person would agree was meant. (Bug#48678)

Numbers with a trailing dot but no exponent are still read as
integers.

* src/lread.c (string_to_number): Fix float lexing.
* test/src/lread-tests.el (lread-float): Add test.
* doc/lispref/numbers.texi (Float Basics): Clarify syntax.
2021-05-27 14:16:28 +02:00
Mattias Engdegård
40d2970f43 Don't propagate lexical variables into inlined functions
Functions compiled when inlined (thus from inside the optimiser)
mustn't retain the lexical environment of the caller or there will be
tears.  See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg01227.html .

Bug found by Stefan Monnier.

* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand):
Bind byte-optimize--lexvars to nil when re-entering the compiler
recursively.
* test/lisp/emacs-lisp/bytecomp-resources/bc-test-alpha.el:
* test/lisp/emacs-lisp/bytecomp-resources/bc-test-beta.el: New files.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-defsubst): New test.
2021-05-27 14:16:17 +02:00
Philipp Stephani
501296f994 * src/character.c (lisp_string_width): Add missing type checks. 2021-05-27 12:44:09 +02:00
Eli Zaretskii
c82afdcc88 A better fix for 'string-width'
* src/character.c (lisp_string_width): Compute the width when
automatic compositions can happen more accurately, by using the
pixel widths of the grapheme clusters, divided by the default
face's font width.  Disregard the current state of
'auto-composition-mode', for consistency with 'current-column' .
2021-05-27 12:24:29 +03:00
Deneb Meketa
7f11dea662 Fix filling of overlong first lines in Python doc strings
* lisp/progmodes/python.el (python-fill-string): Fill overlong
first lines correctly (bug#20860).

Copyright-paperwork-exempt: yes
2021-05-27 01:21:59 +02:00
Lars Ingebrigtsen
0dfe193ec4 Improve the prompting in read-directory-name
* lisp/dired-x.el (dired-virtual): Improve doc string and use
`read-directory-name' (bug#20993).
2021-05-27 01:05:35 +02:00
Lars Ingebrigtsen
462112ae0b Fix ediff message parsing in non-English locales
* lisp/vc/ediff-diff.el (ediff-exec-process): Run diff in the C
locale to enable parsing the messages (bug#21387).
2021-05-27 00:38:33 +02:00
Juri Linkov
856e0ec2f8 * lisp/vc/diff-mode.el (diff-hunk-text): Test-driven fix for newlines.
* lisp/vc/diff-mode.el (diff-hunk-text): Fix handling of newlines
to cover all test cases according to new test.

* test/lisp/vc/diff-mode-tests.el (diff-mode-test-hunk-text-no-newline):
New test to cover cases with no newline at end of file.
2021-05-27 01:19:36 +03:00
Alex Bochannek
777d784d8f Remove the base64 Face header repadding in Gnus
* lisp/gnus/gnus-fun.el (gnus-convert-face-to-png): Remove call.

* lisp/gnus/gnus-util.el (gnus-base64-repad): Remove.
2021-05-26 23:54:59 +02:00
Karl Fogel
c4e8d1dbe2 Improve some doc strings in bookmark.el
* lisp/bookmark.el (bookmark-bmenu-load): Describe prefix argument
  behavior.  Refer to related functions for more information.
  (bookmark-bmenu-save): Likewise refer to related functions.

As discussed in this thread:

  https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00389.html

  From: Karl Fogel
  To: Eli Zaretskii
  Cc: Matthias Meulien, Drew Adams, Lars Ingebrigtsen,
      Stefan Monnier, Emacs Devel
  Subject: Re: [External] : Re: [PATCH] When deleting in bookmark menu,
           prompt for confirmation.
  Date: Sun, 09 May 2021 13:37:52 -0500
  Message-ID: <87h7jboirj.fsf@red-bean.com>
2021-05-26 14:28:11 -05:00
Eli Zaretskii
85da7b57bc Make 'string-width' auto-composition aware
* src/composite.c (find_automatic_composition): Now extern.
(char_composable_p): Don't assume 'unicode-category-table' is
always available.
* src/composite.h (find_automatic_composition): Add prototype.
* src/character.c (lisp_string_width): Support automatic
compositions; call 'find_automatic_composition' when
'auto-composition-mode' is ON.
2021-05-26 20:08:47 +03:00
Filipp Gunbin
d5d4e82691 * src/sysdep.c (system_process_attributes): Fix misspelled Qttname for FreeBSD 2021-05-26 17:20:55 +03:00
Filipp Gunbin
6d51805154 Improve system_process_attributes on macOS (Bug#48548)
* src/sysdep.c (system_process_attributes): Fix misprint in 'tty' attr
- should be 'ttname' instead.  Change 'utime', 'stime', 'time',
'majflt' attrs to obtain them from proc_pid_rusage, as sysctl call
used before doesn't give correct values; remove 'minflt' because it's
not available.  Obtain 'vsize' / 'rss' / 'thcount' from proc_pidinfo.
Use sysctl with KERN_PROCARGS2 to obtain args: value contains both
argc and argv, so argv can be reliably cut out.
2021-05-26 16:15:03 +03:00
Protesilaos Stavrou
5a762c946e
Remove modus-themes.org build date (bug#48661)
* modus-themes.org: Delete Org macro of the current export date.

This makes the manual reproducible between Emacs builds.
2021-05-26 12:08:01 +03:00
Juri Linkov
f4dc646e0d * lisp/international/mule-cmds.el (mule--ucs-names-group): Better char check. 2021-05-25 23:55:13 +03:00
Tassilo Horn
5c45e8b65b Make the Alacritty terminal an alias of xterm-256color
* lisp/faces.el (term-file-aliases): Make the Alacritty terminal
an alias of xterm-256color (bug#48439).
2021-05-25 22:38:14 +02:00
Lars Ingebrigtsen
b75db97f31 Make hs-set-up-overlay into user option
* lisp/progmodes/hideshow.el (hs-set-up-overlay): Make into
defcustom (bug#48513).
2021-05-25 22:31:00 +02:00
Stephen Leake
f2a84ef8ee Restore `ff-find-other-file' buffer selection logic
* lisp/find-file.el (ff-find-other-file): Restore selection of
buffer changed by previous change (bug#48535).
2021-05-25 22:26:42 +02:00
Lars Ingebrigtsen
0d91c2ddae Fix font and indentation of call-with-port in scheme-mode
* lisp/progmodes/scheme.el (scheme-font-lock-keywords-2): Add
call-with-port (bug#48544).
(call-with-port): Indent correctly.
2021-05-25 22:22:28 +02:00
Lars Ingebrigtsen
df17725c80 Handle syntactically invalid .dir-locals.el files better
* lisp/files.el (dir-locals-read-from-dir): Handle syntactically
invalid .dir-locals.el files more gently (bug#48568).  Give a
message instead of bugging out later.
2021-05-25 22:17:40 +02:00
Protesilaos Stavrou
ffd2a5c9ae Update modus-themes to version 1.4.0
* doc/misc/modus-themes.org:
(Overview): Document good support for cases with red-green color
deficiency (deuteranopia).
(Customization Options): Add code block with sample configuration.
(Option for mode line presentation): Document new values.
(Option for completion framework aesthetics): Reword statements.
(Option for mail citations): Include new customization.
(Option for line highlighting (hl-line-mode)): Change description
of possible value.
(Option for diff buffer looks): Update the meaning of 'fg-only',
which now is an alias for 'fg-only-deuteranopia'.
(Option for org-mode block styles): Rename possible values.
(Cycle through arbitrary colors (DIY)): Include code samples for
demo case.
(Override colors (DIY)): Use correct symbol.
(Override color saturation (DIY)): Show how to combine manual and
automatic color overrides.
(Update Org block delimiter fontification (DIY)): Provide example.
(Load theme depending on time of day): Include missing "DIY" label.
(Full support for packages or face groups): Update list with
additions, removals.
(Indirectly covered packages): Update list.
(Notes for individual packages)
(Note on dimmer.el)
(Note on display-fill-column-indicator-mode)
(Note on mmm-mode.el background colors)
(Note on prism.el)
(Note on ERC escaped color sequences)
(Note on powerline or spaceline)
(Note on Helm grep)
(Note on EWW and Elfeed fonts (SHR fonts)): Stylistic change to
the heading.
(Note on inline Latex in Org buffers)
(Note on god-mode.el): Add note.
(Frequently Asked Questions (FAQ)): Include new section.
(Acknowledgements): Update list of contributors (bug#48647).
* etc/themes/modus-operandi-theme.el: Bump version number.

* etc/themes/modus-themes.el: Add new defcustom forms and update
existing ones, edit doc strings, remove old obsolete aliases,
tweak internal functions, refine face specifications.

* etc/themes/modus-vivendi-theme.el: Bump version number.
2021-05-25 21:47:37 +02:00
Gregory Heytings
e365e903db Do not switch to other window when minibuffer is selected
* lisp/window.el (handle-select-window): Do not silently switch to
other window when minibuffer is selected and
mouse-autoselect-window is t (Bug#47969).
2021-05-25 21:41:07 +02:00
Eli Zaretskii
3e7a216b77 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2021-05-25 22:30:24 +03:00
Lars Ingebrigtsen
fcb3990b8d Restore `dired-do-create-files' return value
* lisp/dired-aux.el (dired-do-create-files): Preserve the return
value from `dired-create-files', which is apparently an
undocumented feature used by dired-aux-tests.el (dired-test-bug30624).
2021-05-25 21:29:24 +02:00
Eli Zaretskii
dd79a5050a Fix documentation of a recent change
* src/process.c (syms_of_process) <process-prioritize-lower-fds>:
Doc fix.

* etc/NEWS: Reword the entry for 'process-prioritize-lower-fds'.
2021-05-25 22:29:11 +03:00
Lars Ingebrigtsen
caf8eb0381 Update help-tests.el after minibuffer map change 2021-05-25 21:22:22 +02:00