1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

148524 commits

Author SHA1 Message Date
Daniel Martín
e247b4b691 Add a new documentation group for overlays
* lisp/emacs-lisp/shortdoc.el (overlay): Add documentation group for
buffer overlays(bug#48730).
2021-05-30 06:41:52 +02:00
Daniel Martín
1230651ffd Improve the documentation of documentation groups
* doc/lispref/help.texi (Documentation Groups): Fix typos and add an
example.
* lisp/emacs-lisp/shortdoc.el (define-short-documentation-group): Add
:no-eval* and :result-string keywords to the docstring.  (Bug#48730)
2021-05-30 06:41:24 +02:00
Lars Ingebrigtsen
b0d01982e2 Tweak octave continuation indentation
* lisp/progmodes/octave.el (octave-smie-rules): Further tweak
continuation indentation (bug#17955).
2021-05-30 06:25:47 +02:00
Eli Zaretskii
a4c922d84f Clarify indent-line-function doc string
* lisp/indent.el (indent-line-function): Clarify by avoiding
specifics (bug#20846).
2021-05-30 06:11:02 +02:00
Stefan Monnier
c97716e9a2 * lisp/mpc.el (mpc-format): Fix inf-loop in constructed predicate 2021-05-29 14:24:23 -04:00
Andreas Schwab
1855e3d0c4 * lisp/wdired.el (wdired-normalize-filename): Sync with
dired-get-filename.  (Bug#48659)
2021-05-29 15:37:58 +02:00
Stefan Monnier
246a41759c * lisp/electric.el: Do auto-indent inside strings and comments by default
This fixes bug#20846 where it transpired that there is no good reason
to shy away from auto-indenting inside comments and strings.

(electric-indent-post-self-insert-function): Don't check syntax-ppss.
2021-05-29 09:22:57 -04:00
Keith David Bershatsky
4d4c73da5a Improve tex fontification of quoted strings
* lisp/textmodes/tex-mode.el (tex-font-lock-keywords-2): Fontify
``text like this'' that has an apostrophe correctly (bug#16881).
2021-05-29 13:45:59 +02:00
Eli Zaretskii
e3fc16fd71 Fix last change
* lisp/international/quail.el (quail-add-unread-command-events):
Fix wording of the doc string.  Move the rationale for the
function out of the doc string and into a comment.
2021-05-29 11:17:53 +03:00
Gregory Heytings
bd5c740419 Fix key recording bug when an input method is activated
* lisp/international/quail.el (quail-add-unread-command-events):
New function.
(quail-start-translation, quail-start-conversion)
(quail-update-translation, quail-next-translation)
(quail-prev-translation, quail-next-translation-block)
(quail-prev-translation-block, quail-minibuffer-message): Use
'quail-add-unread-command-events' (and partly revert commit
03e3440dbb).  (Bug#48042)

* lisp/subr.el (inhibit--record-char): Now obsolete.

* lisp/term/xterm.el (xterm--init): New function, with most of the
code of former 'terminal-init-xterm'.
(terminal-init-xterm): Clear the lossage after terminal
initialization (see Bug#44908).
(xterm--read-event-for-query): Do not use 'inhibit--record-char'
anymore (revert commit 3e6525d69f).

* src/keyboard.c (syms_of_keyboard): Remove 'inhibit--record-char'
(partly revert 03e3440dbb).
(record_char, syms_of_keyboard_for_pdumper): Do not use
'inhibit_record_char anymore'.
2021-05-29 11:05:33 +03:00
Mattias Engdegård
7bbd6b720e ; * etc/NEWS: Slight improvement of last entry 2021-05-29 09:32:49 +02:00
Mattias Engdegård
0cbfb7e795 ; * lisp/emacs-lisp/rx.el (rx--pcase-macroexpander): slight rephrase 2021-05-29 09:18:01 +02:00
Mattias Engdegård
61961903fd ; * lisp/mail/rmail.el (rmail-simplified-subject): Dodge relint nag 2021-05-29 09:18:01 +02:00
Mattias Engdegård
93162efd79 Fix shortdoc examples
Make sure that each example in shortdoc actually contains the function
it illustrates, and add a test for it.

* lisp/emacs-lisp/shortdoc.el (string, list, buffer, number):
Use the right functions in examples for string-version-lessp,
lax-plist-put, point-min and ffloor.
* test/lisp/emacs-lisp/shortdoc-tests.el: New test file.
2021-05-29 09:18:00 +02:00
Lars Ingebrigtsen
0eb0fe987b Add lambda to the pretty Ruby symbols list
* lisp/progmodes/ruby-mode.el (ruby--prettify-symbols-alist): Add
lambda (bug#48681).
2021-05-29 08:09:34 +02:00
William Denton
90cd4d6cae Add pretty symbols to ruby-mode
* lisp/progmodes/ruby-mode.el (ruby--prettify-symbols-alist): Add
pretty symbols (bug#48681).
(ruby-mode): Use them.
2021-05-29 08:08:35 +02:00
Lars Ingebrigtsen
2e1510dd00 Mention the recent floating point reader changes in NEWS
* etc/NEWS: Mention the floating point reader changes (bug#48678).
2021-05-29 08:02:10 +02:00
Lars Ingebrigtsen
2ee7e8a129 Improve the dired-guess-shell-alist-user doc string
* lisp/dired-x.el (dired-guess-shell-alist-user): Document how
REGEXP is used (bug#17251).
2021-05-29 07:49:19 +02:00
Lars Ingebrigtsen
22520811e2 Fix folding of non-ASCII lines when printing to Postscript
* lisp/ps-mule.el (ps-mule-plot-string): Fix folding of non-ASCII
Latin-1 lines (bug#17758).
2021-05-29 07:38:00 +02:00
Lars Ingebrigtsen
30c09a1674 Improve Octave indentation after continuation lines
* lisp/progmodes/octave.el (octave-smie-rules): Indent
continuation lines better (bug#17955).
2021-05-29 07:04:34 +02:00
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