all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: "Jostein Kjønigsen" <jostein@kjonigsen.net>,
	"Jostein Kjønigsen" <jostein@secure.kjonigsen.net>,
	"Andy Moreton" <andrewjmoreton@gmail.com>,
	"Emacs developers" <emacs-devel@gnu.org>
Subject: Re: Include modern-cpp-font-lock into GNU Emacs
Date: Wed, 22 Aug 2018 08:46:11 -0400	[thread overview]
Message-ID: <CAM-tV-_r-2fRMu5bgX2VnfFg8fwXGW88ZScy9D31Fezzk-0daw@mail.gmail.com> (raw)
In-Reply-To: <87k1okddoz.fsf@gmx.de>

On 20 August 2018 at 15:45, Michael Albinus <michael.albinus@gmx.de> wrote:

> (defun my-executable-find (command &optional remote)
>   "Run `executable-find', and ignore optional REMOTE on older Emacsen."
>   (condition-case err
>       (executable-find command remote)
>     (wrong-number-of-arguments (executable-find command))
>     (error (signal (car err) (cdr err)))))

The last line can be dropped: if you don't handle the error type, it
will already propagate upward so there is no need to catch and
re-signal.



      reply	other threads:[~2018-08-22 12:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-06 20:24 Include modern-cpp-font-lock into GNU Emacs Ludwig PACIFICI
2018-08-11 14:51 ` Alan Mackenzie
2018-08-12  0:22   ` Stefan Monnier
2018-08-19 11:16   ` Ludwig PACIFICI
2018-08-19 12:31     ` Stefan Monnier
2018-08-20  3:03       ` Richard Stallman
2018-08-20  8:38         ` Andy Moreton
2018-08-20  9:28           ` Jostein Kjønigsen
2018-08-20 10:51             ` Noam Postavsky
2018-08-20 11:28             ` Andy Moreton
2018-08-20 17:54               ` Jostein Kjønigsen
2018-08-20 19:45                 ` Michael Albinus
2018-08-22 12:46                   ` Noam Postavsky [this message]

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=CAM-tV-_r-2fRMu5bgX2VnfFg8fwXGW88ZScy9D31Fezzk-0daw@mail.gmail.com \
    --to=npostavs@gmail.com \
    --cc=andrewjmoreton@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=jostein@kjonigsen.net \
    --cc=jostein@secure.kjonigsen.net \
    --cc=michael.albinus@gmx.de \
    /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.