Commit graph

4332 commits

Author SHA1 Message Date
Michael Albinus
579b0c006e Don't use LOCKNAME for temp files in Tramp (Bug#49406)
* lisp/net/tramp.el (tramp-handle-write-region):
* lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
* lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-write-region):
Don't use LOCKNAME for temp file.  (Bug#49406)

* test/lisp/shadowfile-tests.el (password-cache-expiry):
Set `shadow-debug' also on emba.
2021-07-05 12:09:28 +02:00
Amin Bandali
8d957f2dd8
Merge from origin/emacs-27
348b2aed0c Update IRC-related references to point to Libera.Chat
b0e725e2fe Fix typo in c-macro-expand docstring

# Conflicts:
#	doc/misc/erc.texi
#	doc/misc/gnus-faq.texi
#	doc/misc/rcirc.texi
#	etc/NEWS
#	lisp/erc/erc-services.el
#	lisp/erc/erc.el
#	lisp/ldefs-boot.el
#	lisp/net/rcirc.el
2021-07-04 00:14:47 -04:00
Amin Bandali
348b2aed0c
Update IRC-related references to point to Libera.Chat
Per GNU and FSF's announcements [0, 1] of moving official IRC channels
to the Libera.Chat IRC network, as well as several Emacs-related
channels following suit [2], update IRC-related references to reflect
the migration.

[0]: https://lists.gnu.org/archive/html/info-gnu/2021-06/msg00005.html
[1]: https://lists.gnu.org/archive/html/info-gnu/2021-06/msg00007.html
[2]: https://lists.gnu.org/archive/html/info-gnu-emacs/2021-06/msg00000.html
2021-07-03 23:39:18 -04:00
Philip Kaludercic
f222fe6163
* rcirc.el (rcirc-define-command): Mention name of malformed command
Author:
2021-07-02 20:11:08 +02:00
Michael Albinus
225ca617b7 Implement another fix for bug#49229
* lisp/minibuffer.el (read-file-name-default): Respect remote files.
(Bug#49229)

* lisp/net/tramp-sh.el (tramp-sh-handle-expand-file-name):
Handle special file names on MS Windows.

* lisp/net/tramp.el (tramp-file-name-handler): Revert patch.
(Bug#49229)
2021-07-02 14:51:23 +02:00
Jonas Bernoulli
8ebd8e1fea In files that use allout use it for all headings
* lisp/allout.el: Don't prefix regular comments with three
semicolons.
* lisp/icomplete.el: Use allout syntax for all headings.
* lisp/net/eudc.el: Use allout syntax for all headings.
2021-06-30 22:17:01 +02:00
Michael Albinus
cd339e85a6 Sync with Tramp 2.5.1
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.5.1".

* lisp/tramp.el (tramp-handle-write-region):
* lisp/tramp-adb.el (tramp-adb-handle-write-region):
* lisp/tramp-sh.el (tramp-sh-handle-write-region): Call local
`write-region' directly.

* test/lisp/net/tramp-tests.el (tramp--test-utf8): Adapt test for
MS Windows.
2021-06-29 17:15:55 +02:00
Alex McGrath
e3f456255b Fix SASL joining channels after auth 2021-06-29 17:07:00 +02:00
Alex McGrath
a85d27278e Send CAP END after authentication has been successful 2021-06-29 13:41:28 +02:00
Alex McGrath
df6efb1c8b Fix SASL on rcirc-update 2021-06-28 21:41:52 +02:00
Michael Albinus
d456120189 Fix Tramp bug#49229
* lisp/net/tramp.el (tramp-file-name-handler): Drop possible
volume letter when `expand-file-name' is called with a local
absolute file name as first argument.  (Bug#49229)
2021-06-26 16:26:02 +02:00
Michael Albinus
2fbe17c49a Fix Tramp bug#49178
* lisp/net/tramp.el (tramp-handle-find-backup-file-name)
(tramp-handle-make-auto-save-file-name): Adapt checks.  (Bug#49178)
2021-06-25 14:18:28 +02:00
Alex McGrath
6122e4c1f0 Add SASL authentication to rcirc
* lisp/net/rcirc.el (rcirc-handler-AUTHENTICATE): New function
(bug#48601).
(rcirc-authenticate):
(rcirc-connect): Support sasl.
(rcirc-get-server-password, rcirc-get-server-method): New functions.
(rcirc-authinfo): Document it.
2021-06-24 23:27:20 +02:00
Lars Ingebrigtsen
8e6d6daacf Allow `C-u M-x dig' to ask for a query type
* lisp/net/dig.el (dig): Allow prompting for a query type
(bug#31810).
2021-06-24 18:51:38 +02:00
Alex McGrath
8db520837a Add SASL authentication to rcirc
* lisp/net/rcirc.el (rcirc-handler-AUTHENTICATE): New function
(bug#48601).
(rcirc-authenticate):
(rcirc-connect): Support sasl.
(rcirc-get-server-password, rcirc-get-server-method): New functions.
(rcirc-authinfo): Document it.
2021-06-24 18:45:08 +02:00
Philip Kaludercic
b81c977799 Query encryption using yes-or-no-p
* rcirc.el (rcirc-prompt-for-encryption): Replace completing-read
  prompt with yes-or-no-p
2021-06-21 09:12:25 +02:00
Michael Albinus
6636a64459 Fix error in tramp-archive.el
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
Archive must exist.  (Bug#49030, Bug#49043)

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test06-directory-file-name): Tag it :unstable temporarily.
2021-06-19 18:11:50 +02:00
Philip Kaludercic
869db473cb Use add-to-list instead of manually modifying minor-mode-alist 2021-06-19 10:43:26 +02:00
Philip Kaludercic
21148f67f1 Force mode line update after modifying activity string
* rcirc.el (rcirc-update-activity-string): Call force-mode-line-update
2021-06-16 09:43:05 +02:00
Philip Kaludercic
b5d935bb7f Fix edge case with single argument for rcirc-define-command
* rcirc.el (rcirc-define-command): Update regular expression generator
2021-06-15 23:44:56 +02:00
Philip Kaludercic
7e5360f322 Fix argument parser for rcirc-define-command with string input
* rcirc.el (rcirc-define-command): Require at least one space between
arguments
2021-06-15 23:12:02 +02:00
Philip Kaludercic
1181c606b3 Check if server buffer is live
* rcirc.el (with-rcirc-server-buffer): Use live-buffer-p
(rcirc-buffer-nick): Use with-rcirc-server-buffer
(rcirc-switch-to-server-buffer): Use with-rcirc-server-buffer
2021-06-15 18:16:58 +02:00
Philip Kaludercic
946ceca26f Improve message markup
* rcirc.el (rcirc-markup-text-functions): Add rcirc-color-attributes,
rcirc-remove-markup-codes
(rcirc-markup-attributes): Recognize strike-through and monospace,
don't remove control codes
(rcirc-color-attributes): Recognize mIRC color codes
(rcirc-remove-markup-codes): Add function
(rcirc-monospace-text): Add face
2021-06-15 09:37:17 +02:00
Philip Kaludercic
3e31846468 Fix construction of interactive specification in rcirc-define-command
* rcirc.el (rcirc-define-command): Ensure that only one argument is passed.
2021-06-14 18:02:24 +02:00
Philip Kaludercic
f1e79a33b5 Rename set-rcirc-{encode,decode}-coding-system
* rcirc.el (set-rcirc-decode-coding-system): Deprecate command
(rcirc-set-decode-coding-system): New command
(set-rcirc-encode-coding-system): Deprecate command
(rcirc-set-encode-coding-system): New command
2021-06-14 13:25:57 +02:00
Philip Kaludercic
88e07af18c Preserve order of completion during cycling
* rcirc.el (rcirc-completion-at-point): Specify cycle-sort-function
2021-06-14 11:52:28 +02:00
Michael Albinus
6536112bdc Handle sensitive auto-save or backup remote files (Bug#45245)
* doc/misc/tramp.texi (Auto-save and Backup):
Describe tramp-allow-unsafe-temporary-files.
(Ad-hoc multi-hops): Use proper format.

* etc/NEWS: Mention confirmation for writing sensitive auto-save
or backup remote files to the local temporary directory..

* lisp/net/tramp-cache.el (tramp-dump-connection-properties):
Strengthen test.

* lisp/net/tramp.el (tramp-allow-unsafe-temporary-files): New defcustom.
(tramp-handle-find-backup-file-name)
(tramp-handle-make-auto-save-file-name): Don't expose sensible
auto-save or backup files on local temporary directory.  (Bug#45245)

* test/lisp/net/tramp-tests.el (tramp--test-always): New defalias.
(tramp-test10-write-region, tramp-test21-file-links)
(tramp--test--deftest-direct-async-process): Use it.
(tramp-test37-make-auto-save-file-name)
(tramp-test38-find-backup-file-name): Extend tests.
2021-06-14 11:25:13 +02:00
Philip Kaludercic
e17cc751ba Add mouse properties to activity string
* rcirc.el (rcirc-activity-string): Allow clicking on string
2021-06-14 00:21:48 +02:00
Philip Kaludercic
e61bdd5a96 Update activity string after switching to next active buffer
* rcirc.el (rcirc-next-active-buffer): Call rcirc-update-activity-string
2021-06-13 20:00:59 +02:00
Lars Ingebrigtsen
099c7a0c05 Clarify some browse-url doc strings
* lisp/net/browse-url.el (browse-url-of-file)
(browse-url-of-buffer, browse-url-of-region, browse-url)
(browse-url-at-point, browse-url-at-mouse): Clarify doc strings
(bug#42432).
2021-06-12 15:07:07 +02:00
Philip Kaludercic
a44e402b69 Preserve incoming order of messages with same timestamp
* rcirc.el (rcirc-print): Emulate time-less-or-equal-p
2021-06-10 19:44:00 +02:00
Philip Kaludercic
fd96e3a0d9 Allow hiding certain message types after reconnecting
* rcirc.el (rcirc-omit-after-reconnect): Add new user option
(rcirc-reconncting): Add new variable
(rcirc-print): Check if message should be omitted
(reconnect): Mark buffers as freshly reconnected
2021-06-10 17:38:44 +02:00
Philip Kaludercic
3a61e7bca1 Use defvar-local instead of setq-local where applicable 2021-06-10 17:22:58 +02:00
Philip Kaludercic
13f6f78473 Allow for optional arguments using rcirc-define-command
* rcirc.el (rcirc-define-command): Handle &optional arguments
2021-06-10 17:22:58 +02:00
Philip Kaludercic
b67b1eea25 Fix prompt doubling when reconnecting
* rcirc.el (rcirc-connect): Check if rcirc-mode is already active
(rcirc-get-buffer-create): Check if rcirc-mode is already active
2021-06-10 17:22:58 +02:00
Philip Kaludercic
95fdd4b99b Allow filtering how nicks are presented
* rcirc.el (rcirc-nick-filter): Add new option
(rcirc-completion-at-point): Use rcirc-nick-filter
(rcirc-format-response-string): Use rcirc-nick-filter
(rcirc-sort-nicknames-join): Use rcirc-nick-filter
2021-06-10 17:22:58 +02:00
Philip Kaludercic
f6e18c63a6 Implement invite-notify capability
* rcirc.el (rcirc-implemented-capabilities): Add invite-notify
(rcirc-handler-INVITE): Handle invite notifications
2021-06-10 17:22:58 +02:00
Philip Kaludercic
c300326fa0 Add TAGMSG handler
* rcirc.el (rcirc-handler-TAGMSG): Add new message handler
2021-06-10 17:22:58 +02:00
Philip Kaludercic
567e288eb9 Implement message-ids extension
* rcirc.el (rcirc-implemented-capabilities): Add to list of
implemented extensions
(rcirc-print): Insert property denoting message ID
2021-06-10 17:22:58 +02:00
Philip Kaludercic
ab49a9a634 Implement batch extension
* rcirc.el (rcirc-implemented-capabilities): Add batch extension
(rcirc-supported-batch-types): Add new variable
(rcirc-batch-attributes): Add new variable
(rcirc-batched-messages): Add new variable
(rcirc-process-server-response-1): Handle messages with batch tag
(rcirc-handler-BATCH): Add batch dispatcher
2021-06-10 17:22:58 +02:00
Philip Kaludercic
849e71fd83 Implement server-time extension
* rcirc.el (rcirc-implemented-capabilities): Add new capability
(rcirc-print): Insert messages in the right position
(rcirc-log): Use right time value
(rcirc-markup-timestamp): Use right time value
2021-06-10 17:22:58 +02:00
Philip Kaludercic
06af44e3e1 Create framework for IRCv3 support
* rcirc.el (rcirc-implemented-capabilities): Add new variable
(rcirc-requested-capabilities): Add new variable
(rcirc-acked-capabilities): Add new variable
(rcirc-connect): Request capabilities from rcirc-implemented-capabilities
(rcirc-process-regexp): Extend rcirc-process-regexp with tag support
(rcirc-tag-regexp): Add new tokenizer for tags
(rcirc-message-tags): Add new variable
(rcirc-get-tag): Add new function
(rcirc-process-server-response-1): Parse message-tags
(rcirc-handler-CAP): Add new handler for capability requests
2021-06-10 17:22:57 +02:00
Philip Kaludercic
4ff1f66b12 Replace defun-rcirc-command with rcirc-define-command
* rcirc.el (defun-rcirc-command): Remove old macro
(rcirc-define-command): Create new macro
2021-06-10 17:22:57 +02:00
Philip Kaludercic
0b367ec39f Remove custom rcirc-completion implementation
* rcirc.el (rcirc-completion-at-point): Improve completion suggestions
(rcirc-completions): Remove variable
(rcirc-completion-start): Remove variable
(rcirc-complete): Remove function
(rcirc-mode-map): Bind TAB to completion-at-point
(rcirc-mode): Use cycling for completion
2021-06-09 18:21:01 +02:00
Philip Kaludercic
8ea5766050 Recognize quoted commands in rcirc-process-input-line
* rcirc.el (rcirc-process-input-line): Check for quoted commands
(rcirc-process-command): Don't check for quoted commands
2021-06-09 18:20:21 +02:00
Philip Kaludercic
e6c99a761d Integrate formatting into rcirc-send-string
* rcirc.el (rcirc-connect): Use new syntax
(rcirc-send-string): Allow for more arguments
(rcirc-send-privmsg): Use new syntax
(rcirc-send-ctcp): Use new syntax
(rcirc-send-message): Use new syntax
(rcirc-clean-up-buffer): Use new syntax
(join): Use new syntax
(invite): Use new syntax
(part): Use new syntax
(quit): Use new syntax
(nick): Use new syntax
(names): Use new syntax
(topic): Use new syntax
(whois): Use new syntax
(mode): Use new syntax
(list): Use new syntax
(oper): Use new syntax
(kick): Use new syntax
(rcirc-handler-PING): Use new syntax
(rcirc-handler-ctcp-VERSION): Use new syntax
(rcirc-handler-ctcp-ACTION): Use new syntax
(rcirc-handler-ctcp-TIME): Use new syntax
2021-06-09 18:19:46 +02:00
Philip Kaludercic
fb158754c4 Fix checkdoc complaints and related issues 2021-06-09 18:19:11 +02:00
Philip Kaludercic
c6b6c2d596 Use auth-source for user-passwords
* (rcirc): Use auth-source is no password was specifed
2021-06-09 16:09:55 +02:00
Philip Kaludercic
6898816b7d Default to libera instead of freenode
* rcirc.el (rcirc-server-alist): Update default value
2021-06-09 16:08:36 +02:00
Michael Albinus
fcc827619f Improve support of remote files in browse-url.el
* etc/NEWS: Mention support of remote file browsing.

* lisp/net/browse-url.el (browse-url-of-buffer): Revert last change.
(browse-url-of-file): Use temporary file in case of remote file.
(Bug#48397)
2021-06-07 20:41:30 +02:00