Po Lu
ecf08f0621
Merge from savannah/emacs-29
...
dc4e6b1329
; Update copyright years in more files
64b3777631
; Run set-copyright from admin.el
8e1c56ae46
; Add 2024 to copyright years
# Conflicts:
# doc/misc/modus-themes.org
# doc/misc/texinfo.tex
# etc/NEWS
# etc/refcards/ru-refcard.tex
# etc/themes/modus-operandi-theme.el
# etc/themes/modus-themes.el
# etc/themes/modus-vivendi-theme.el
# lib/alloca.in.h
# lib/binary-io.h
# lib/c-ctype.h
# lib/c-strcasecmp.c
# lib/c-strncasecmp.c
# lib/careadlinkat.c
# lib/cloexec.c
# lib/close-stream.c
# lib/diffseq.h
# lib/dup2.c
# lib/filemode.h
# lib/fpending.c
# lib/fpending.h
# lib/fsusage.c
# lib/getgroups.c
# lib/getloadavg.c
# lib/gettext.h
# lib/gettime.c
# lib/gettimeofday.c
# lib/group-member.c
# lib/malloc.c
# lib/md5-stream.c
# lib/md5.c
# lib/md5.h
# lib/memmem.c
# lib/memrchr.c
# lib/nanosleep.c
# lib/save-cwd.h
# lib/sha1.c
# lib/sig2str.c
# lib/stdlib.in.h
# lib/strtoimax.c
# lib/strtol.c
# lib/strtoll.c
# lib/time_r.c
# lib/xalloc-oversized.h
# lisp/auth-source-pass.el
# lisp/emacs-lisp/lisp-mnt.el
# lisp/emacs-lisp/timer.el
# lisp/info-look.el
# lisp/jit-lock.el
# lisp/loadhist.el
# lisp/mail/rmail.el
# lisp/net/ntlm.el
# lisp/net/webjump.el
# lisp/progmodes/asm-mode.el
# lisp/progmodes/project.el
# lisp/progmodes/sh-script.el
# lisp/textmodes/flyspell.el
# lisp/textmodes/reftex-toc.el
# lisp/textmodes/reftex.el
# lisp/textmodes/tex-mode.el
# lisp/url/url-gw.el
# m4/alloca.m4
# m4/clock_time.m4
# m4/d-type.m4
# m4/dirent_h.m4
# m4/dup2.m4
# m4/euidaccess.m4
# m4/fchmodat.m4
# m4/filemode.m4
# m4/fsusage.m4
# m4/getgroups.m4
# m4/getloadavg.m4
# m4/getrandom.m4
# m4/gettime.m4
# m4/gettimeofday.m4
# m4/gnulib-common.m4
# m4/group-member.m4
# m4/inttypes.m4
# m4/malloc.m4
# m4/manywarnings.m4
# m4/mempcpy.m4
# m4/memrchr.m4
# m4/mkostemp.m4
# m4/mktime.m4
# m4/nproc.m4
# m4/nstrftime.m4
# m4/pathmax.m4
# m4/pipe2.m4
# m4/pselect.m4
# m4/pthread_sigmask.m4
# m4/readlink.m4
# m4/realloc.m4
# m4/sig2str.m4
# m4/ssize_t.m4
# m4/stat-time.m4
# m4/stddef_h.m4
# m4/stdint.m4
# m4/stdio_h.m4
# m4/stdlib_h.m4
# m4/stpcpy.m4
# m4/strnlen.m4
# m4/strtoimax.m4
# m4/strtoll.m4
# m4/time_h.m4
# m4/timegm.m4
# m4/timer_time.m4
# m4/timespec.m4
# m4/unistd_h.m4
# m4/warnings.m4
# nt/configure.bat
# nt/preprep.c
# test/lisp/register-tests.el
2024-01-02 10:28:14 +08:00
Po Lu
8e1c56ae46
; Add 2024 to copyright years
2024-01-02 09:47:10 +08:00
Po Lu
cfa3887e2d
Mollify byte compiler in builds without SQLite
...
* lisp/sqlite-mode.el (sqlite-open): New declare-function.
2023-10-26 02:52:23 +00:00
Thomas Hilke
f549d4330f
Remove column quoting from sqlite-mode
...
* lisp/sqlite-mode.el (sqlite-mode--column-names): Unquote column
name. (Bug#65998)
Copyright-paperwork-exempt: yes
2023-09-17 13:02:50 +03:00
Thomas Hilke
d9a1175a61
Close SQL database when corresponding 'sqlite-mode' buffer is killed
...
* lisp/sqlite-mode.el (sqlite-mode-open-file): Close DB when the
buffer is killed. (Bug#65998)
Copyright-paperwork-exempt: yes
2023-09-16 13:20:45 +03:00
john muhl
04996b2124
Handle tabs in the SQL shown in the column listing
...
* lisp/sqlite-mode.el (sqlite-mode-list-columns): Handle tabs.
(Bug#64964)
2023-08-03 11:48:04 +03:00
Eli Zaretskii
9f5008b9b2
Improve error message from sqlite-mode.el
...
* lisp/sqlite-mode.el (sqlite-mode-open-file): Add error
checking. (Bug#60490)
2023-01-15 12:06:54 +02:00
Eli Zaretskii
cae528457c
; Add 2023 to copyright years.
2023-01-01 05:31:12 -05:00
Lars Ingebrigtsen
49910adf87
Fix cl-generic bootstrap problems
...
* lisp/sqlite-mode.el (require):
* lisp/net/eudc.el (require):
* lisp/arc-mode.el (require): Require subr-x, since these files
are using macros from there.
* lisp/emacs-lisp/subr-x.el (with-memoization): Move from here...
* lisp/subr.el (with-memoization): ... to here, as it's used from
the preloaded cl-generic.el file.
* lisp/emacs-lisp/cl-generic.el (cl--generic-compiler): Don't use
the autoloaded `byte-compile' function during bootstrap.
(cl--generic-get-dispatcher): Don't require subr-x, either.
cl-generic has been preloaded since 2015, and most usages of it (in
preloaded files) work fine. In particular, using `cl-defgeneric' is
unproblematic. However, `cl-defmethod' would end up pulling in the
byte compiler (at load time), which would make it impossible to use
`cl-defmethod' in pre-loaded files, and this change fixes that (but
possibly not in the most self-evidently correct way).
2022-06-24 11:04:51 +02:00
Yoav Marco
72b1007987
(sqlite-mode--column-names): Suppport nested parens
...
* lisp/sqlite-mode.el (sqlite-mode--column-names): Make parsing
more resilient (bug#55363).
Copyright-paperwork-exempt: yes
2022-05-11 14:05:37 +02:00
Eli Zaretskii
823b6b8d26
; Add 2022 to copyright years.
2022-01-01 07:07:15 -05:00
Lars Ingebrigtsen
6c9adafa93
Check for support in sqlite-mode-open-file
...
* lisp/sqlite-mode.el (sqlite-mode-open-file): Error out earlier
when we don't have sqlite support.
2021-12-12 10:22:58 +01:00
dick r. chiang
8e948ab97e
Fix some compilation warnings in sqlite-less builds
...
* test/src/sqlite-tests.el:
* lisp/sqlite-mode.el: Avoid compilation warnings in builds
without libsqlite (bug#52440).
2021-12-12 07:13:46 +01:00
Lars Ingebrigtsen
4b29468dbe
Tweak erroring in sqlite-mode-delete
...
* lisp/sqlite-mode.el (sqlite-mode-delete): Use user-error instead
of error for user-level stuff.
2021-12-12 05:55:35 +01:00
Lars Ingebrigtsen
6656a4d161
Make sqlite-mode-list-tables work on older sqlite versions
...
* lisp/sqlite-mode.el (sqlite-mode-list-tables): Use sqlite_master
instead of sqlite_schema, since the former name is the historical
name and is available in all sqlite3 versions:
https://sqlite.org/schematab.html
2021-12-12 05:41:07 +01:00
Eli Zaretskii
8c50016b10
Improve documentation of sqlite3 support
...
* lisp/sqlite-mode.el (sqlite-mode-list-data):
* configure.ac (HAVE_SQLITE3): Fix typos.
* doc/lispref/text.texi (Database): Improve and clarify wording,
add index entries, mention all the function arguments.
* etc/NEWS: Minor wording changes of the sqlite entries.
2021-12-11 13:04:55 +02:00
Lars Ingebrigtsen
cabb049a50
Add confirmation to sqlite-mode-delete
...
* lisp/sqlite-mode.el (sqlite-mode-delete): Add confirmation.
2021-12-11 09:28:57 +01:00
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
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
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
e5f71051a0
Add a new mode for examining sqlite files
...
* lisp/sqlite-mode.el: New file.
2021-12-11 06:23:57 +01:00