OVH Cloud OVH Cloud

Accès au menu parfois impossible

13 réponses
Avatar
Jean Magnan de Bornier
Bonjour =E0 tous,
Il m'arrive de cliquer sur le menu d'emacs...(oui, je sais..)
Il lui arrive de me r=E9pondre vertement:

Debugger entered--Lisp error: (mark-inactive)
signal(mark-inactive nil)
mark()
(and comment-start (not buffer-read-only) (mark))

Cela fait quelques semaines que =E7a dure et c'est aga=E7ant; je ne compren=
ds
pas pourquoi le fait que la marque soit inactive emp=EAcherait les menus
d=E9roulants de s'afficher; d'ailleurs ce n'est pas syst=E9matique, et =E7a
n'arrive jamais avec certains types de buffers, par exemple ceux de gnus.

emacs-cvs, gentoo-linux

merci d'avance,
--=20
Jean=20

3 réponses

1 2
Avatar
Jean Magnan de Bornier
Le 27 mai à 21:47:26 Benoit Izac
écrit notamment:

| Bonjour,



| le 27/05/2006 à 09:43, Jean Magnan de Bornier a écrit dans le message
| :



| >>> Debugger entered--Lisp error: (mark-inactive)
| >>> signal(mark-inactive nil)
| >>> mark()
| >>> (and comment-start (not buffer-read-only) (mark))
| >>
| >> J'ai déjà eu ce problème du à l'utilisation d'un module mais j e ne
| >> sais plus lequel :( (il me semble que c'était template.el).
| >>
| >> fait une recherche du genre :
| >> # grep -r '(and comment-start (not buffer-read-only) (mark))' /
| >> pour savoir d'où ça vient.
| >
| > Oui, en utilisant cette commande, j'ai "concorde" sur template.elc et
| > "active" sur template.el
| >
| > Qu'en déduire?



| Essaye avec :
| (setq mark-even-if-inactive t)

Merci, ça a l'air de bien fonctionner; mais je n'en sais guère plus...
--
Jean
Avatar
Benoit Izac
Bonjour,

le 31/05/2006 à 08:43, Jean Magnan de Bornier a écrit dans le message
:

| >>> Debugger entered--Lisp error: (mark-inactive)
| >>> signal(mark-inactive nil)
| >>> mark()
| >>> (and comment-start (not buffer-read-only) (mark))
| >>
| >> J'ai déjà eu ce problème du à l'utilisation d'un module mais je ne
| >> sais plus lequel :( (il me semble que c'était template.el).
| >>
| >> fait une recherche du genre :
| >> # grep -r '(and comment-start (not buffer-read-only) (mark))' /
| >> pour savoir d'où ça vient.
| >
| > Oui, en utilisant cette commande, j'ai "concorde" sur template.elc et
| > "active" sur template.el
| >
| > Qu'en déduire?



| Essaye avec :
| (setq mark-even-if-inactive t)

Merci, ça a l'air de bien fonctionner; mais je n'en sais guère plus...



| mark is a compiled Lisp function in `simple.el'.
| (mark &optional FORCE)
|
| Return this buffer's mark value as integer, or nil if never set.
|
| In Transient Mark mode, this function signals an error if
| the mark is not active. However, if `mark-even-if-inactive' is non-nil,
| or the argument FORCE is non-nil, it disregards whether the mark
| is active, and returns an integer or nil in the usual way.

Il se trouve que tu dois utiliser le mode « Transient Mark » en même
temps. Le mieux est encore de modifier directement template.el :

--- template.el Mon Sep 27 10:43:43 2004
+++ template.el_new Fri Jun 2 16:42:01 2006
@@ -246,11 +246,11 @@
["Continue Comment" indent-new-comment-line
:active (and comment-start (not buffer-read-only))]
["Comment Region" comment-region
- :enable (and comment-start (not buffer-read-only) (mark))]
+ :enable (and comment-start (not buffer-read-only) (mark t))]
["Comment Region 2" (comment-region 2)
- :enable (and comment-start (not buffer-read-only) (mark))]
+ :enable (and comment-start (not buffer-read-only) (mark t))]
["Comment Region 3" (comment-region 3)
- :enable (and comment-start (not buffer-read-only) (mark))]
+ :enable (and comment-start (not buffer-read-only) (mark t))]
"---"
["Update Buffer" template-update-buffer
:active (and template-update-buffer-alist (not buffer-read-only))])

--
Benoit Izac
Avatar
Jean Magnan de Bornier
Le 02 juin à 16:45:35 Benoit Izac écrit
notamment:

| Bonjour,



| le 31/05/2006 à 08:43, Jean Magnan de Bornier a écrit dans le message
| :



| > | >>> Debugger entered--Lisp error: (mark-inactive)
| > | >>> signal(mark-inactive nil)
| > | >>> mark()
| > | >>> (and comment-start (not buffer-read-only) (mark))
| > | >>
| > | >> J'ai déjà eu ce problème du à l'utilisation d'un module ma is je ne
| > | >> sais plus lequel :( (il me semble que c'était template.el).
| > | >>
| > | >> fait une recherche du genre :
| > | >> # grep -r '(and comment-start (not buffer-read-only) (mark))' /
| > | >> pour savoir d'où ça vient.
| > | >
| > | > Oui, en utilisant cette commande, j'ai "concorde" sur template.elc et
| > | > "active" sur template.el
| > | >
| > | > Qu'en déduire?
| >>
| > | Essaye avec :
| > | (setq mark-even-if-inactive t)
| >
| > Merci, ça a l'air de bien fonctionner; mais je n'en sais guère plus ...



| | mark is a compiled Lisp function in `simple.el'.
| | (mark &optional FORCE)
| |
| | Return this buffer's mark value as integer, or nil if never set.
| |
| | In Transient Mark mode, this function signals an error if
| | the mark is not active. However, if `mark-even-if-inactive' is non-nil,
| | or the argument FORCE is non-nil, it disregards whether the mark
| | is active, and returns an integer or nil in the usual way.



| Il se trouve que tu dois utiliser le mode « Transient Mark » en même
| temps. Le mieux est encore de modifier directement template.el :



| --- template.el Mon Sep 27 10:43:43 2004
| +++ template.el_new Fri Jun 2 16:42:01 2006
| @@ -246,11 +246,11 @@
| ["Continue Comment" indent-new-comment-line
| :active (and comment-start (not buffer-read-only))]
| ["Comment Region" comment-region
| - :enable (and comment-start (not buffer-read-only) (mark))]
| + :enable (and comment-start (not buffer-read-only) (mark t))]
| ["Comment Region 2" (comment-region 2)
| - :enable (and comment-start (not buffer-read-only) (mark))]
| + :enable (and comment-start (not buffer-read-only) (mark t))]
| ["Comment Region 3" (comment-region 3)
| - :enable (and comment-start (not buffer-read-only) (mark))]
| + :enable (and comment-start (not buffer-read-only) (mark t))]
| "---"
| ["Update Buffer" template-update-buffer
| :active (and template-update-buffer-alist (not buffer-read-only))])

Merci; je n'ai pas exactement ces lignes (j'ai bien la dernière version):

["Indent for Comment" indent-for-comment
:active (and comment-start (not buffer-read-only))]
["Continue Comment" indent-new-comment-line
:active (and comment-start (not buffer-read-only))]
["Comment Region" comment-region
:active (and comment-start (not buffer-read-only) (mark t))]
["Comment Region 2" (comment-region 2)
:active (and comment-start (not buffer-read-only) (mark t))]
["Comment Region 3" (comment-region 3)
:active (and comment-start (not buffer-read-only) (mark t))]
"---"
["Update Buffer" template-update-buffer
:active (and template-update-buffer-alist (not buffer-read-only))])

Mais en rajoutant les "t" comme indiqué dans ton post ça a l'air de
résoudre la question.
bye,
--
Jean
1 2