all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo Liu <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] trunk r114517: * progmodes/octave.el (inferior-octave-error-regexp-alist)
Date: Fri, 04 Oct 2013 10:09:41 -0400	[thread overview]
Message-ID: <jwvk3htceqy.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <E1VS21S-00059s-RL@vcs.savannah.gnu.org> (Leo Liu's message of "Fri, 04 Oct 2013 09:50:10 +0000")

We probably need some calls to compilation-forget-errors.


        Stefan


>>>>> "Leo" == Leo Liu <sdl.web@gmail.com> writes:

> ------------------------------------------------------------
> revno: 114517
> revision-id: sdl.web@gmail.com-20131004094525-ae7071jdtzf429au
> parent: eggert@cs.ucla.edu-20131004073622-ufxif9xzy0bih1ts
> committer: Leo Liu <sdl.web@gmail.com>
> branch nick: trunk
> timestamp: Fri 2013-10-04 17:45:25 +0800
> message:
>   * progmodes/octave.el (inferior-octave-error-regexp-alist)
>   (inferior-octave-compilation-font-lock-keywords): New variables.
>   (compilation-error-regexp-alist)
>   (compilation-mode-font-lock-keywords): Defvar to pacify compiler.
>   (inferior-octave-mode): Use compilation-shell-minor-mode.
> modified:
>   lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
>   lisp/progmodes/octave.el       octavemod.el-20091113204419-o5vbwnq5f7feedwu-1028

> === modified file 'lisp/ChangeLog'
> --- a/lisp/ChangeLog	2013-10-04 02:12:16 +0000
> +++ b/lisp/ChangeLog	2013-10-04 09:45:25 +0000
> @@ -1,3 +1,11 @@
> +2013-10-04  Leo Liu  <sdl.web@gmail.com>
> +
> +	* progmodes/octave.el (inferior-octave-error-regexp-alist)
> +	(inferior-octave-compilation-font-lock-keywords): New variables.
> +	(compilation-error-regexp-alist)
> +	(compilation-mode-font-lock-keywords): Defvar to pacify compiler.
> +	(inferior-octave-mode): Use compilation-shell-minor-mode.
> +
>  2013-10-04  Jorgen Schaefer  <forcer@forcix.cx>
 
>  	* minibuffer.el (completion--replace): Be careful that `end' might be

> === modified file 'lisp/progmodes/octave.el'
> --- a/lisp/progmodes/octave.el	2013-09-30 01:13:19 +0000
> +++ b/lisp/progmodes/octave.el	2013-10-04 09:45:25 +0000
> @@ -631,6 +631,24 @@
>    :type 'hook
>    :group 'octave)
 
> +(defcustom inferior-octave-error-regexp-alist
> +  '(("error:\\s-*\\(.*?\\) at line \\([0-9]+\\), column \\([0-9]+\\)"
> +     1 2 3 2 1)
> +    ("warning:\\s-*\\([^:\n]+\\):.*at line \\([0-9]+\\), column \\([0-9]+\\)"
> +     1 2 3 1 1))
> +  "Value for `compilation-error-regexp-alist' in inferior octave."
> +  :type '(repeat (choice (symbol :tag "Predefined symbol")
> +                         (sexp :tag "Error specification")))
> +  :group 'octave)
> +
> +(defvar inferior-octave-compilation-font-lock-keywords
> +  '(("\\_<PASS\\_>" . compilation-info-face)
> +    ("\\_<FAIL\\_>" . compilation-error-face)
> +    ("\\_<\\(warning\\):" 1 compilation-warning-face)
> +    ("\\_<\\(error\\):" 1 compilation-error-face)
> +    ("^\\s-*!!!!!.*\\|^.*failed$" . compilation-error-face))
> +  "Value for `compilation-mode-font-lock-keywords' in inferior octave.")
> +
>  (defvar inferior-octave-process nil)
 
>  (defvar inferior-octave-mode-map
> @@ -673,6 +691,8 @@
>  in the Inferior Octave buffer.")
 
>  (defvar info-lookup-mode)
> +(defvar compilation-error-regexp-alist)
> +(defvar compilation-mode-font-lock-keywords)
 
>  (define-derived-mode inferior-octave-mode comint-mode "Inferior Octave"
>    "Major mode for interacting with an inferior Octave process."
> @@ -698,10 +718,14 @@
>    (setq-local comint-prompt-read-only inferior-octave-prompt-read-only)
>    (add-hook 'comint-input-filter-functions
>              'inferior-octave-directory-tracker nil t)
> +  (comint-read-input-ring t)
>    ;; http://thread.gmane.org/gmane.comp.gnu.octave.general/48572
>    (add-hook 'window-configuration-change-hook
>              'inferior-octave-track-window-width-change nil t)
> -  (comint-read-input-ring t))
> +  (setq-local compilation-error-regexp-alist inferior-octave-error-regexp-alist)
> +  (setq-local compilation-mode-font-lock-keywords
> +              inferior-octave-compilation-font-lock-keywords)
> +  (compilation-shell-minor-mode 1))
 
>  ;;;###autoload
>  (defun inferior-octave (&optional arg)



> _______________________________________________
> Emacs-diffs mailing list
> Emacs-diffs@gnu.org
> https://lists.gnu.org/mailman/listinfo/emacs-diffs



       reply	other threads:[~2013-10-04 14:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1VS21S-00059s-RL@vcs.savannah.gnu.org>
2013-10-04 14:09 ` Stefan Monnier [this message]
2013-10-04 15:12   ` [Emacs-diffs] trunk r114517: * progmodes/octave.el (inferior-octave-error-regexp-alist) Leo Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvk3htceqy.fsf-monnier+emacsdiffs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.