emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bugfix for utf-8 XTerm/MinTTY and (set-input-meta-mode t)


From: Max Mikhanosha
Subject: Re: Bugfix for utf-8 XTerm/MinTTY and (set-input-meta-mode t)
Date: Tue, 01 Jun 2021 17:36:41 +0000

On Tuesday, June 1st, 2021 at 1:04 PM, Andreas Schwab <schwab@linux-m68k.org> 
wrote:

> On Jun 01 2021, Max Mikhanosha wrote:
>
> > +bool utf_8_input_coding_system_p(struct coding_system *coding)
> >
> > +{
> >
> > -   return (coding->decoder == decode_coding_utf_8) ? true : false;
>
> The == operator already produces a bool value.

Its a cut-n-paste of  existing function below, where you can make same 
argument, I figured it was written in that more verbose way for clarity, so did 
not change it to follow the style.

bool
raw_text_coding_system_p (struct coding_system *coding)
{
  return (coding->decoder == decode_coding_raw_text
          && coding->encoder == encode_coding_raw_text) ? true : false;
}







reply via email to

[Prev in Thread] Current Thread [Next in Thread]