Lars Ingebrigtsen
d727796e1f
Don't leave open cursors when listing sqlite data
...
* lisp/sqlite-mode.el (sqlite-mode-list-data)
(sqlite--mode--list-data): Don't leave open cursor (because they
block other processes from deleting stuff).
(sqlite-mode-delete): Adjust to new layout.
2021-12-11 09:02:52 +01:00
Lars Ingebrigtsen
5d476a9ed8
Add FIXME comment
...
* lisp/sqlite-mode.el (sqlite-mode-delete): New command.
(sqlite--mode--list-data, sqlite-mode-list-data): Adjust to new
command.
2021-12-11 08:18:09 +01:00
Lars Ingebrigtsen
7cbda71617
Add an sqlite-mode-delete command
...
* lisp/sqlite-mode.el (sqlite-mode-delete): New command.
(sqlite--mode--list-data, sqlite-mode-list-data): Adjust to new
command.
2021-12-11 08:18:09 +01:00
Lars Ingebrigtsen
17569c9495
Fix Fsqlite_finalize book-keeping
...
* src/sqlite.c (Fsqlite_finalize): Mark the object as dead.
2021-12-11 08:18:09 +01:00
Stefan Kangas
19233f6501
; * etc/NEWS: Fix wording in recent entry.
2021-12-11 07:10:02 +01:00
Stefan Kangas
b331819302
Merge from origin/emacs-28
...
5708da48d1 Revert "Make `M-x run-python' select the window again"
aa2872a127 Make `M-x run-python' select the window again
c8e19b3a84 Don't bug out on certain empty elements with ids
2021-12-11 06:56:31 +01:00
Lars Ingebrigtsen
fb11575f3c
Improve sqlite-mode--tablify tables
...
* lisp/sqlite-mode.el (sqlite-mode--tablify): Tweak column widths
and sanitize newlines.
2021-12-11 06:50:58 +01:00
Lars Ingebrigtsen
ebf59d1a28
Check whether the sqlite supports sqlite3_load_extension
...
* configure.ac: Check for sqlite3_load_extension, which is
apparently missing in some versions.
* src/sqlite.c: Add guards.
(Fsqlite_load_extension): Ifdef out on systems that doesn't have it.
2021-12-11 06:40:01 +01:00
Lars Ingebrigtsen
ad1b80d91d
Fix sqlite-mode.el build problems
...
* lisp/sqlite-mode.el (sqlite-mode-list-tables): Fix function
rename usage.
2021-12-11 06:31:42 +01:00
Lars Ingebrigtsen
385f2faf34
Fix some sqlite doc string typos
...
* src/sqlite.c (Fsqlite_load_extension, Fsqlite_more_p): Fix typos
in doc strings.
2021-12-11 06:26:37 +01:00
Lars Ingebrigtsen
e5f71051a0
Add a new mode for examining sqlite files
...
* lisp/sqlite-mode.el: New file.
2021-12-11 06:23:57 +01:00
Lars Ingebrigtsen
7364b60fe9
Fix comment in heading
2021-12-11 05:22:42 +01:00
Lars Ingebrigtsen
d2081b2b33
Add NEWS entry for sqlite
2021-12-11 04:57:22 +01:00
Lars Ingebrigtsen
3d38d1d134
Add sqlite3 support to Emacs
...
* configure.ac: Add check for the sqlite library.
* doc/lispref/text.texi (Database): Document it.
* lisp/sqlite.el: New file.
* lisp/term/w32-win.el (dynamic-library-alist): Add a mapping.
* src/Makefile.in (SQLITE3_LIBS): Add the libraries.
* src/alloc.c (union emacs_align_type): Add a Lisp_Sqlite struct.
* src/data.c (Ftype_of): Add sqlite.
* src/emacs.c (main): Load the syms.
* src/lisp.h (DEFINE_GDB_SYMBOL_BEGIN): Add PVEC_SQLITE.
(GCALIGNED_STRUCT): New struct to keep data for sqlite database
objects and statement objects.
(SQLITEP, SQLITE, CHECK_SQLITE, XSQLITE): New macros for accessing
the objects.
* src/pdumper.c (dump_vectorlike): Update hash.
(dump_vectorlike): Don't dump it.
* src/print.c (print_vectorlike): Add a printer for the sqlite
object.
* src/sqlite.c: New file.
* test/src/sqlite-tests.el: Add tests.
2021-12-11 04:55:57 +01:00
Lars Ingebrigtsen
af1c5ec0fc
Fix bibtex-biblatex-entry-alist sorting when using latex
...
* lisp/textmodes/bibtex.el (bibtex-biblatex-entry-alist): Sort
PhdThesis and TechReport correctly when using the latex variant
(bug#52354).
2021-12-11 04:16:06 +01:00
Stefan Kangas
c9cb59bc4f
* etc/TODO: Entry about converting to defvar-keymap.
2021-12-10 15:48:15 +01:00
Stefan Kangas
eba5cd3ca1
; * lisp/dired.el: Remove code commented out since 2000.
2021-12-10 15:39:23 +01:00
Stefan Kangas
9ccd3d3231
Use defvar-keymap for package-menu-mode-map
...
* lisp/emacs-lisp/package.el (package-menu-mode-map): Use
defvar-keymap.
2021-12-10 15:33:54 +01:00
Stefan Kangas
88ea736c35
; * etc/NEWS: Improve recently added entry.
2021-12-10 14:12:04 +01:00
Lars Ingebrigtsen
79825f724f
Make keymap-lookup work for keymap results, too
...
* lisp/keymap.el (keymap-lookup): Make this function work for
non-symbol lookups, too (bug#52374).
2021-12-10 13:11:26 +01:00
Lars Ingebrigtsen
5708da48d1
Revert "Make `M-x run-python' select the window again"
...
This reverts commit aa2872a127 .
This led to a test failure.
2021-12-10 13:07:24 +01:00
Kévin Le Gouguec
aa2872a127
Make `M-x run-python' select the window again
...
* lisp/progmodes/python.el (python-shell-make-comint): Make `M-x
run-python' select the window again like in 27.2 (bug#52380).
2021-12-10 13:05:49 +01:00
Lars Ingebrigtsen
c8e19b3a84
Don't bug out on certain empty elements with ids
...
* lisp/net/shr.el (shr-descend): Fix empty-element #id targetting
(bug#52391).
2021-12-10 12:47:10 +01:00
Lars Ingebrigtsen
e98ca32176
Make dired-buffers-for-dir expand the DIR argument
...
* lisp/dired.el (dired-buffers-for-dir): Expand DIR argument
(bug#52395).
(dired-find-buffer-nocreate, dired-clean-up-after-deletion):
Adjust callers.
2021-12-10 12:32:49 +01:00
Po Lu
6e865a7171
Further reduce image-related stutter during precision scrolling
...
* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Disable
`scroll-preserve-screen-position' and `auto-window-vscroll'
while scrolling.
2021-12-10 14:20:32 +08:00
Po Lu
636704fab9
Stop setting `make-cursor-line-fully-visible' in precision scrolling
...
* lisp/pixel-scroll.el (pixel-scroll-precision-mode): Stop
setting `make-cursor-line-fully-visible'.
2021-12-10 06:03:39 +00:00
Stefan Kangas
d601fd4692
Merge from origin/emacs-28
...
7a25ba0fde ; * lisp/image-dired.el: Fix typo.
dda6337066 emacsclient takes more care about XDG_RUNTIME_DIR
26fb4168b8 ; Prefer HTTPS in more URLs
6b89578524 ; * lisp/progmodes/flymake.el: Update the minimum Emacs ve...
2021-12-10 06:30:33 +01:00
Po Lu
59db96d83a
Fix bob detection when pixel scrolling upwards
...
* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line):
Don't go to the beginning-of-visual-line if bobp.
2021-12-10 11:30:07 +08:00
Po Lu
2e4740f042
Fix pixel scrolling upwards in Info buffers
...
* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line):
Don't blindly trust window start to be the beginning of a
visual line.
2021-12-10 11:25:10 +08:00
Po Lu
e8d90a3fd4
Remove unused let-bindings from pixel-scroll.el
...
* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Remove unused
bindings.
2021-12-10 10:38:24 +08:00
Po Lu
b867eb2216
Fix precision scrolling for stretch glyphs
...
* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Simplify logic.
(pixel-scroll-precision-interpolate): Block throw-on-input
when actually scrolling.
2021-12-10 10:35:05 +08:00
Stefan Kangas
e796161b6e
* lisp/time.el (world-clock-mode-map): Convert to defvar-keymap.
2021-12-10 03:11:49 +01:00
Stefan Kangas
8c2c8996e7
; * lisp/Makefile.in: Fix typo.
2021-12-10 03:04:51 +01:00
Stefan Kangas
57923818fc
; * lisp/htmlfontify.el: Remove some commented out code.
2021-12-10 03:04:48 +01:00
Stefan Kangas
7a25ba0fde
; * lisp/image-dired.el: Fix typo.
2021-12-10 02:34:12 +01:00
Paul Eggert
dda6337066
emacsclient takes more care about XDG_RUNTIME_DIR
...
* lib-src/emacsclient.c (set_local_socket): Revert to the Emacs 27
behavior of not trying TMPDIR if XDG_RUNTIME_DIR is set.
This is one of the suggestions made by Jim Porter and
independently by Ulrich Mueller in Bug#51327.
2021-12-09 12:03:37 -08:00
Eli Zaretskii
c0b9041ebd
Fix logic in 'compute_window_start_on_continuation_line'
...
* src/xdisp.c (compute_window_start_on_continuation_line): Fix a
thinko in logic. Patch by dickmao <dick.r.chiang@gmail.com>.
(Bug#52378)
2021-12-09 21:29:32 +02:00
Michael Albinus
8f3f785c55
Fix thinko in Tramp test
...
* test/lisp/net/tramp-tests.el (tramp-test07-abbreviate-file-name):
Fix thinko.
2021-12-09 20:11:40 +01:00
Michael Albinus
bbfb373783
Improve lock-pid handling in Tramp
...
* lisp/net/tramp-cache.el: Remove comment.
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
Do not set "lock-pid" connection-property.
(tramp-sudoedit-handle-delete-file): Use "rm -f".
* lisp/net/tramp.el (tramp-test-message): Extend for buffers w/o
remote default-directory.
(tramp-lock-pid): New defvar.
(tramp-get-lock-pid): Reimplement.
2021-12-09 20:03:16 +01:00
Stefan Kangas
26fb4168b8
; Prefer HTTPS in more URLs
2021-12-09 16:26:04 +01:00
Eli Zaretskii
6b89578524
; * lisp/progmodes/flymake.el: Update the minimum Emacs version.
2021-12-09 17:01:57 +02:00
Stefan Kangas
6ecb24f877
Merge from origin/emacs-28
...
1821844357 Add missing K key documentation for Cangjie input methods
be860c1385 Fix manual entry of 'quit-restore-window' (Bug#52328)
35a96139df Clarify a comment in xdisp.c
6ba2f028cf Revert "Grep alias `all' shall not match parent directory"
eb9e33e238 ; * etc/NEWS: Non-nil repeat-keep-prefix is not the defaul...
538fc1d0e0 Fix mode-line display in Calendar mode
# Conflicts:
# etc/NEWS
# lisp/help.el
2021-12-09 14:53:51 +01:00
Stefan Kangas
24e9616a0f
; Merge from origin/emacs-28
...
The following commit was skipped:
c8c7822c51 * etc/tutorials/TUTORIAL.it (CONCLUSIONI): Reword paragraph.
2021-12-09 14:52:46 +01:00
Cameron Desautels
1821844357
Add missing K key documentation for Cangjie input methods
...
* lisp/international/titdic-cnv.el (tsang-quick-converter): Add the
missing K key in input method documentation. (Bug#52264)
2021-12-09 13:03:12 +02:00
Po Lu
948a8936ba
Make precision scrolling up work over display strings
...
* lisp/pixel-scroll.el
(pixel-point-and-height-at-unseen-line): Use
`window-text-pixel-size'.
(pixel-scroll-precision-scroll-up-page): Use delta as vscroll
directly.
2021-12-09 17:57:25 +08:00
Po Lu
07d95325e4
Fix pixel scrolling over lines with different sized glyphs
...
* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Calculate desired
vscroll with `window-text-pixel-size'.
2021-12-09 17:40:08 +08:00
Martin Rudalics
be860c1385
Fix manual entry of 'quit-restore-window' (Bug#52328)
...
* doc/lispref/windows.texi (Quitting Windows): Fix bug in
description of 'quit-restore-window' (Bug#52328).
2021-12-09 10:00:51 +01:00
Eli Zaretskii
35a96139df
Clarify a comment in xdisp.c
...
* src/xdisp.c (compute_window_start_on_continuation_line): Clarify
a comment. (Bug#52378)
2021-12-09 09:18:04 +02:00
Po Lu
52f3fe46a3
Fix jumping cursor during interpolated scrolls
...
* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Go to next position
before setting start or vscroll.
2021-12-09 11:40:39 +08:00
Po Lu
bb1252bdb3
Allow customizing step between each interpolated scroll
...
* lisp/pixel-scroll.el (pixel-scroll-precision-interpolate):
Use new option.
(pixel-scroll-precision-interpolation-between-scroll): New user
option.
2021-12-09 11:12:39 +08:00