Merge remote-tracking branch 'origin/master' into feature/android
This commit is contained in:
commit
91da696bbc
8 changed files with 40 additions and 15 deletions
|
@ -602,6 +602,8 @@ disabled by default.
|
|||
@cmindex egrep
|
||||
@itemx fgrep
|
||||
@cmindex fgrep
|
||||
@itemx rgrep
|
||||
@cmindex rgrep
|
||||
@itemx glimpse
|
||||
@cmindex glimpse
|
||||
The @command{grep} commands are compatible with GNU @command{grep},
|
||||
|
|
5
etc/NEWS
5
etc/NEWS
|
@ -192,6 +192,11 @@ correctly unloads Eshell and all of its modules.
|
|||
After manually editing 'eshell-aliases-file', you can use this command
|
||||
to load the edited aliases.
|
||||
|
||||
+++
|
||||
*** 'rgrep' is now a builtin command.
|
||||
Running "rgrep" in Eshell now uses the Emacs grep facility instead of
|
||||
calling external rgrep.
|
||||
|
||||
** Shell Mode
|
||||
|
||||
+++
|
||||
|
|
|
@ -5390,7 +5390,7 @@ Defaults:
|
|||
;; not specified -- default it:
|
||||
(setq tobuf (concat "*" (buffer-name frombuf) " exposed*")))
|
||||
(if (listp format)
|
||||
(nreverse format))
|
||||
(setq format (reverse format)))
|
||||
|
||||
(let* ((listified
|
||||
(progn (set-buffer frombuf)
|
||||
|
|
|
@ -145,9 +145,10 @@ Otherwise, Emacs will attempt to use rsh to invoke du on the remote machine."
|
|||
(add-hook 'pcomplete-try-first-hook
|
||||
'eshell-complete-host-reference nil t))
|
||||
(setq-local eshell-complex-commands
|
||||
(append '("grep" "egrep" "fgrep" "agrep" "glimpse" "locate"
|
||||
"cat" "time" "cp" "mv" "make" "du" "diff")
|
||||
eshell-complex-commands)))
|
||||
(append '("grep" "egrep" "fgrep" "agrep" "rgrep"
|
||||
"glimpse" "locate" "cat" "time" "cp" "mv"
|
||||
"make" "du" "diff")
|
||||
eshell-complex-commands)))
|
||||
|
||||
(defalias 'eshell/date 'current-time-string)
|
||||
(defalias 'eshell/basename 'file-name-nondirectory)
|
||||
|
@ -773,6 +774,10 @@ external command."
|
|||
"Use Emacs grep facility instead of calling external agrep."
|
||||
(eshell-grep "agrep" args))
|
||||
|
||||
(defun eshell/rgrep (&rest args)
|
||||
"Use Emacs grep facility instead of calling external rgrep."
|
||||
(eshell-grep "grep" (append '("-rH") args) t))
|
||||
|
||||
(defun eshell/glimpse (&rest args)
|
||||
"Use Emacs grep facility instead of calling external glimpse."
|
||||
(let (null-device)
|
||||
|
|
|
@ -1373,10 +1373,10 @@ all. This may very well take some time.")
|
|||
(setq day (+ 7 day))))
|
||||
;; Finally, if we have some days, they are valid
|
||||
(when days
|
||||
(sort days #'>)
|
||||
(throw 'found
|
||||
(encode-time 0 minute hour
|
||||
(car days) month year time-zone)))
|
||||
(apply #'max days)
|
||||
month year time-zone)))
|
||||
)))))
|
||||
;; There's an upper limit, but we didn't find any last occurrence.
|
||||
;; This means that the schedule is undecidable. This can happen if
|
||||
|
|
|
@ -909,6 +909,7 @@ article came from is also searched."
|
|||
;; now work on each originating group one at a time
|
||||
(pcase-dolist (`(,artgroup . ,artlist)
|
||||
(numbers-by-group gnus-newsgroup-articles))
|
||||
(setq artlist (sort artlist #'<))
|
||||
(let* ((group-info (gnus-get-info artgroup))
|
||||
(old-unread (gnus-list-of-unread-articles artgroup))
|
||||
newmarked delta-marks)
|
||||
|
|
|
@ -2861,7 +2861,7 @@ list, `literal' is for the format specifier L."
|
|||
(if lispp
|
||||
(if (eq lispp 'literal)
|
||||
elements
|
||||
(if (and (eq elements "") (not keep-empty))
|
||||
(if (and (equal elements "") (not keep-empty))
|
||||
""
|
||||
(prin1-to-string
|
||||
(if numbers (string-to-number elements) elements))))
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
;; Author: Pavel Kobyakov <pk_at_work@yahoo.com>
|
||||
;; Maintainer: João Távora <joaotavora@gmail.com>
|
||||
;; Version: 1.2.2
|
||||
;; Version: 1.3.2
|
||||
;; Keywords: c languages tools
|
||||
;; Package-Requires: ((emacs "26.1") (eldoc "1.1.0") (project "0.7.1"))
|
||||
;; Package-Requires: ((emacs "26.1") (eldoc "1.14.0") (project "0.7.1"))
|
||||
|
||||
;; This is a GNU ELPA :core package. Avoid functionality that is not
|
||||
;; compatible with the version of Emacs recorded above.
|
||||
|
@ -371,6 +371,12 @@ diagnostics at BEG."
|
|||
(flymake--diag-accessor flymake-diagnostic-end flymake--diag-end end)
|
||||
(flymake--diag-accessor flymake-diagnostic-buffer flymake--diag-locus locus)
|
||||
|
||||
(defun flymake-diagnostic-oneliner (diag)
|
||||
"Get truncated one-line text string for diagnostic DIAG."
|
||||
(let ((txt (flymake-diagnostic-text diag)))
|
||||
(substring txt 0 (cl-loop for i from 0 for a across txt
|
||||
when (eq a ?\n) return i))))
|
||||
|
||||
(cl-defun flymake--overlays (&key beg end filter compare key)
|
||||
"Get flymake-related overlays.
|
||||
If BEG is non-nil and END is nil, consider only `overlays-at'
|
||||
|
@ -1254,10 +1260,17 @@ START and STOP and LEN are as in `after-change-functions'."
|
|||
(defun flymake-eldoc-function (report-doc &rest _)
|
||||
"Document diagnostics at point.
|
||||
Intended for `eldoc-documentation-functions' (which see)."
|
||||
(let ((diags (flymake-diagnostics (point))))
|
||||
(when diags
|
||||
(funcall report-doc
|
||||
(mapconcat #'flymake-diagnostic-text diags "\n")))))
|
||||
(when-let ((diags (flymake-diagnostics (point))))
|
||||
(funcall report-doc
|
||||
(mapconcat #'flymake-diagnostic-text diags "\n")
|
||||
:echo (mapconcat (lambda (d)
|
||||
(propertize (flymake-diagnostic-oneliner d)
|
||||
'face
|
||||
(flymake--lookup-type-property
|
||||
(flymake-diagnostic-type d)
|
||||
'face
|
||||
'flymake-error)))
|
||||
diags "\n"))))
|
||||
|
||||
(defun flymake-goto-next-error (&optional n filter interactive)
|
||||
"Go to Nth next Flymake diagnostic that matches FILTER.
|
||||
|
@ -1582,8 +1595,7 @@ filename of the diagnostic relative to that directory."
|
|||
"\\1\\2" bname)
|
||||
"(anon)")
|
||||
'help-echo (format "From `%s' backend" backend))
|
||||
(,(replace-regexp-in-string "\n.*" ""
|
||||
(flymake-diagnostic-text diag))
|
||||
(,(flymake-diagnostic-oneliner diag)
|
||||
mouse-face highlight
|
||||
help-echo "mouse-2: visit this diagnostic"
|
||||
face nil
|
||||
|
|
Loading…
Add table
Reference in a new issue