unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Unmatched parenthesis. Okay, but if this is a smiley?
       [not found] <87eifunap5.fsf@merciadriluca-station.MERCIADRILUCA>
@ 2010-06-25 20:12 ` Pascal J. Bourguignon
       [not found]   ` <87k4pmqm6a.fsf@merciadriluca-station.MERCIADRILUCA>
  0 siblings, 1 reply; 3+ messages in thread
From: Pascal J. Bourguignon @ 2010-06-25 20:12 UTC (permalink / raw)
  To: help-gnu-emacs

Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> writes:
> It sometimes happens to use smileys (e.g. in e-mails, through
> e.g. Gnus) in emacs. The problem is that it always gives me `Unmatched
> parenthesis' in the minibuffer. Is there some .el script to solve this
> `issue?'

Check the mode.  In message buffers, no parenthesis checking should be done.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unmatched parenthesis. Okay, but if this is a smiley?
       [not found]   ` <87k4pmqm6a.fsf@merciadriluca-station.MERCIADRILUCA>
@ 2010-06-26 14:00     ` Pascal J. Bourguignon
  2010-06-26 17:18       ` Merciadri Luca
  0 siblings, 1 reply; 3+ messages in thread
From: Pascal J. Bourguignon @ 2010-06-26 14:00 UTC (permalink / raw)
  To: help-gnu-emacs

Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> writes:

> pjb@informatimago.com (Pascal J. Bourguignon) writes:
>
>> Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> writes:
>>> It sometimes happens to use smileys (e.g. in e-mails, through
>>> e.g. Gnus) in emacs. The problem is that it always gives me `Unmatched
>>> parenthesis' in the minibuffer. Is there some .el script to solve this
>>> `issue?'
>>
>> Check the mode.  In message buffers, no parenthesis checking should be done.
> Could you be more explicit? Thanks.

The behavior you describe is not 'normal'.  When you have a normal
GNUS message buffer, like the one I'm typing right now ;-), you can
insert any number of unbalanced parentheses because no checking is
done.

Here are the major-mode and currently active minor modes in my GNUS message buffer:


major-mode            --> message-mode

(defun current-minor-modes (&optional buffer)
  "The list of the minor modes currently active in the buffer (or current buffer)."
  (let ((result '()))
    (with-current-buffer (or buffer (current-buffer))
      (dolist (mode minor-mode-list result)
        (when (and (boundp mode) (symbol-value mode))
          (push mode result))))))

(current-minor-modes)  --> (abbrev-mode transient-mark-mode
                            line-number-mode auto-compression-mode
                            auto-encryption-mode
                            unify-8859-on-encoding-mode
                            unify-8859-on-decoding-mode
                            blink-cursor-mode font-lock-mode
                            global-font-lock-mode
                            file-name-shadow-mode mouse-wheel-mode
                            tooltip-mode shell-dirtrack-mode
                            auto-image-file-mode display-time-mode
                            mml-mode)


So you must have some hook or some other minor mode configured that
activates such mismatched parentheses dectection and signaling an
error.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unmatched parenthesis. Okay, but if this is a smiley?
  2010-06-26 14:00     ` Pascal J. Bourguignon
@ 2010-06-26 17:18       ` Merciadri Luca
  0 siblings, 0 replies; 3+ messages in thread
From: Merciadri Luca @ 2010-06-26 17:18 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

pjb@informatimago.com (Pascal J. Bourguignon) writes:

> Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> writes:
>
>> pjb@informatimago.com (Pascal J. Bourguignon) writes:
>>
>>> Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> writes:
>>>> It sometimes happens to use smileys (e.g. in e-mails, through
>>>> e.g. Gnus) in emacs. The problem is that it always gives me `Unmatched
>>>> parenthesis' in the minibuffer. Is there some .el script to solve this
>>>> `issue?'
>>>
>>> Check the mode.  In message buffers, no parenthesis checking should be done.
>> Could you be more explicit? Thanks.
>
> The behavior you describe is not 'normal'.  When you have a normal
> GNUS message buffer, like the one I'm typing right now ;-), you can
> insert any number of unbalanced parentheses because no checking is
> done.
>
> Here are the major-mode and currently active minor modes in my GNUS message buffer:
>
> major-mode            --> message-mode
>
> (defun current-minor-modes (&optional buffer)
>   "The list of the minor modes currently active in the buffer (or current buffer)."
>   (let ((result '()))
>     (with-current-buffer (or buffer (current-buffer))
>       (dolist (mode minor-mode-list result)
>         (when (and (boundp mode) (symbol-value mode))
>           (push mode result))))))
>
> (current-minor-modes)  --> (abbrev-mode transient-mark-mode
>                             line-number-mode auto-compression-mode
>                             auto-encryption-mode
>                             unify-8859-on-encoding-mode
>                             unify-8859-on-decoding-mode
>                             blink-cursor-mode font-lock-mode
>                             global-font-lock-mode
>                             file-name-shadow-mode mouse-wheel-mode
>                             tooltip-mode shell-dirtrack-mode
>                             auto-image-file-mode display-time-mode
>                             mml-mode)
>
> So you must have some hook or some other minor mode configured that
> activates such mismatched parentheses dectection and signaling an
> error.
Very probable. I use built-in code-syntax helper (for C, Java, etc.),
which checks parentheses, etc., but it should not be launched if the
file is not such a code file, should it?

- -- 
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
- -- 

If it's too good to be true, then it probably is.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iEYEARECAAYFAkwmNmEACgkQM0LLzLt8MhztqgCgmglLBm2w197R4GzkVyUnRQK1
KiwAoIwmt5MJkT7ZqRNjsKVBFv99DcVb
=kRIb
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-26 17:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87eifunap5.fsf@merciadriluca-station.MERCIADRILUCA>
2010-06-25 20:12 ` Unmatched parenthesis. Okay, but if this is a smiley? Pascal J. Bourguignon
     [not found]   ` <87k4pmqm6a.fsf@merciadriluca-station.MERCIADRILUCA>
2010-06-26 14:00     ` Pascal J. Bourguignon
2010-06-26 17:18       ` Merciadri Luca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).