mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Merge from origin/emacs-25
ee73997Make erc work better when encountering unknown prefix charsb99141dMake erc completion case-insensitive again66c4620Make complection in erc use consistent casing8c562b2Make /QUIT in erc more robustd93d2c5Make tracking faces in Emacs work more reliablyaf6ab7eMake shr not bug out on images on non-graphical displays3311f40Fix bookmark display widthsd90ab1eFix typo in eww-make-unique-file-name7f81825Make it possible to TAB to input fieldsa43a1dcInsert complete alt texts when images are disabled56ed4e1Allow eww text fields to grow66b315cMake erc work when subword-mode is switched on255b68fFix IMAP doc example91557f5Quoting fixes in doc strings and diagnostics2c0dc9fFix warning message in hack-local-variables504696dEtags: yet another improvement in Ruby tags8784ebfFix x-popup-menu on TTYs without a mouse8b87ecb* lisp/emacs-lisp/map.el: Improvements to the docstring of the pcase macro6191003Use pop-to-buffer-same-window in ewwfe321fd* autogen.sh: Revert all recent changes.74ebd4a* make-dist: Updates related to nt/.737193a* make-dist: Add modules/.3696bf2* make-dist: Update for super-special file that can't live in etc/.a4278e2Fix failure to compile ns-win.el in parallel builds860da4dFix names of tags generated for Ruby accessorsf6213ceFix file-name recognition in 'etags'e42e662Change Ruby file names and extensions recognized by 'etags'58bfb6aMore improvements for Ruby support in 'etags'c04e911Add --git-config option to autogen.sh5713466Fix editing undo changes in eww fields51362d6Allow the user more control of popping up the eww windowee0fbd8Make eww-browse-url with new-window parameter work again9c3142dClean up eww code slightlycb035f3Don't insert nil faces in shr 4c3fae3 ; * lisp/progmodes/prolog.el: Remove some obsolete commentary.93f2153Improve the custom type of some user options.9f60d7eMark some risky calendar variables.1d07dcdHighlight two additional SCSS keywordsee8b466Recommend enabling integrity-checking in gite639e10Some corrections in Elisp manuald766ca8Chatter when autogen.sh changes Git configuration3b734e1* org/org-compat.el (org-font-lock-ensure): Fix bogus test (bug#22399)43cb9f8Omit unnecessary history from Lisp intro2fbd1da* etc/HISTORY: Add some more history, plus git tags.c90e1b4Improve elisp “Security Considerations” doccedd7caautogen.sh now arranges for git to check hashes86ce76b; Fix ChangeLog.2 commit ID.7b1d2b1Fix (c & 040) typo in emergency escapesa8273daFix display of overlay strings with 'display' and 'box' propertyfc48106Fix imap-starttls-opencdecbedFix return value of imap-starttls-open20c7e34; * etc/NEWS: Fix renamed command name98bdbdbCorrect reference to DARWIN_OS preprocessor symbolb250d29Spelling fixb920a0eSpelling fixes93b144bPacify GCC on C library without glibc API
This commit is contained in:
commit
0608bf1c3d
68 changed files with 1384 additions and 625 deletions
|
|
@ -474,13 +474,39 @@ Currently this is called by `erc-send-input'."
|
|||
nil t))
|
||||
(split-string (buffer-string) "\n"))))
|
||||
|
||||
(defun erc-forward-word ()
|
||||
"Moves forward one word, ignoring any subword settings. If no
|
||||
subword-mode is active, then this is (forward-word)."
|
||||
(skip-syntax-forward "^w")
|
||||
(> (skip-syntax-forward "w") 0))
|
||||
|
||||
(defun erc-word-at-arg-p (pos)
|
||||
"Reports whether the char after a given POS has word syntax.
|
||||
If POS is out of range, the value is nil."
|
||||
(let ((c (char-after pos)))
|
||||
(if c
|
||||
(eq ?w (char-syntax c))
|
||||
nil)))
|
||||
|
||||
(defun erc-bounds-of-word-at-point ()
|
||||
"Returns the bounds of a word at point, or nil if we're not at
|
||||
a word. If no subword-mode is active, then this
|
||||
is (bounds-of-thing-at-point 'word)."
|
||||
(if (or (erc-word-at-arg-p (point))
|
||||
(erc-word-at-arg-p (1- (point))))
|
||||
(save-excursion
|
||||
(let* ((start (progn (skip-syntax-backward "w") (point)))
|
||||
(end (progn (skip-syntax-forward "w") (point))))
|
||||
(cons start end)))
|
||||
nil))
|
||||
|
||||
;; Used by CTCP functions
|
||||
(defun erc-upcase-first-word (str)
|
||||
"Upcase the first word in STR."
|
||||
(with-temp-buffer
|
||||
(insert str)
|
||||
(goto-char (point-min))
|
||||
(upcase-word 1)
|
||||
(upcase-region (point) (progn (erc-forward-word) (point)))
|
||||
(buffer-string)))
|
||||
|
||||
(defun erc-server-setup-periodical-ping (buffer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue