all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* comment-beginning
@ 2007-11-18 15:34 Andreas Röhler
  2007-11-18 15:45 ` comment-beginning Sven Joachim
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Röhler @ 2007-11-18 15:34 UTC (permalink / raw)
  To: emacs-devel

Hi all,

Emacs -Q

C-h f comment-beginning fails

with message: [no match]

whereas comment-beginning is present in newcomment.el

in contrast 
C-h f comment-dwim displays documentation as expected.

Can't see a reason.

Thanks

Andreas Röhler


In GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.8.3)
 of 2007-09-24 

Windowing system distributor `The X.Org Foundation', version 11.0.70199902
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
C-h f c o m m e n t - b e g <tab> <backspace> <backspace> 
<tab> <tab> <backspace> <backspace> <backspace> d w 
<tab> <return> <help-echo> C-x C-f e m <tab> / 2 0 
0 7 1 1 <tab> l i <tab> s <tab> / n e w c <tab> <return> 
C-x 1 C-s c o m m e n t - b e g i n n C-s C-l M-> <prior> 
<prior> <next> <next> <prior> <prior> <prior> M-< <next> 
C-h f c o m m e n t - b e g <tab> M-< C-x C-f <M-backspace> 
<M-backspace> <M-backspace> C-g C-h f c o m m e n t 
- b e g i n n i n g <return> M-x r e p o r t - e m 
a c s - b u g <return>

Recent messages:
Loading /usr/local/share/emacs/23.0.50/leim/leim-list.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Type C-x 1 to remove help window.  
Making completion list...
Loading vc-cvs...done
Mark saved where search started
Mark set [2 times]
Quit
Mark set
Quit

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

* Re: comment-beginning
  2007-11-18 15:34 comment-beginning Andreas Röhler
@ 2007-11-18 15:45 ` Sven Joachim
  2007-11-18 16:58   ` comment-beginning Andreas Röhler
  0 siblings, 1 reply; 6+ messages in thread
From: Sven Joachim @ 2007-11-18 15:45 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: emacs-devel

Andreas Röhler <andreas.roehler@online.de> writes:

> C-h f comment-beginning fails
>
> with message: [no match]
>
> whereas comment-beginning is present in newcomment.el
>
> in contrast 
> C-h f comment-dwim displays documentation as expected.
>
> Can't see a reason.

The reason is that comment-dwim is autoloaded, while comment-beginning
is not.  And that's probably reasonable, given that comment-beginning
is not interactive.

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

* Re: comment-beginning
  2007-11-18 15:45 ` comment-beginning Sven Joachim
@ 2007-11-18 16:58   ` Andreas Röhler
  2007-11-18 17:39     ` comment-beginning Sven Joachim
  2007-11-19  7:53     ` comment-beginning Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Röhler @ 2007-11-18 16:58 UTC (permalink / raw)
  To: emacs-devel; +Cc: Sven Joachim

Am Sonntag, 18. November 2007 16:45 schrieb Sven Joachim:
> Andreas Röhler <andreas.roehler@online.de> writes:
> > C-h f comment-beginning fails
> >
> > with message: [no match]
> >
> > whereas comment-beginning is present in newcomment.el
> >
> > in contrast
> > C-h f comment-dwim displays documentation as expected.
> >
> > Can't see a reason.
>
> The reason is that comment-dwim is autoloaded, while comment-beginning
> is not.  And that's probably reasonable, given that comment-beginning
> is not interactive.
>
>

Hmm, thanks.

Thought to call it from a program...

It works, if newcomment.el is explicitly loaded
(again). Which doesn't look clever OTOH.

Andreas Röhler

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

* Re: comment-beginning
  2007-11-18 16:58   ` comment-beginning Andreas Röhler
@ 2007-11-18 17:39     ` Sven Joachim
  2007-11-19  7:53     ` comment-beginning Stefan Monnier
  1 sibling, 0 replies; 6+ messages in thread
From: Sven Joachim @ 2007-11-18 17:39 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: emacs-devel

On So, Nov 18 2007, Andreas Röhler wrote:

> Am Sonntag, 18. November 2007 16:45 schrieb Sven Joachim:
>> The reason is that comment-dwim is autoloaded, while comment-beginning
>> is not.  And that's probably reasonable, given that comment-beginning
>> is not interactive.
>>
>>
>
> Hmm, thanks.
>
> Thought to call it from a program...
>
> It works, if newcomment.el is explicitly loaded
> (again). Which doesn't look clever OTOH.

No, but you could (and should) just (require 'newcomment) in your
program.

Sven

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

* Re: comment-beginning
  2007-11-18 16:58   ` comment-beginning Andreas Röhler
  2007-11-18 17:39     ` comment-beginning Sven Joachim
@ 2007-11-19  7:53     ` Stefan Monnier
  2007-11-19 18:20       ` comment-beginning Andreas Röhler
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2007-11-19  7:53 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: Sven Joachim, emacs-devel

> Thought to call it from a program...

> It works, if newcomment.el is explicitly loaded
> (again). Which doesn't look clever OTOH.

You need to call comment-normalize-vars first anyway.


        Stefan


PS: Fell free to lobby for newcomment.el to be preloaded, tho.

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

* Re: comment-beginning
  2007-11-19  7:53     ` comment-beginning Stefan Monnier
@ 2007-11-19 18:20       ` Andreas Röhler
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Röhler @ 2007-11-19 18:20 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Sven Joachim, emacs-devel

Am Montag, 19. November 2007 08:53 schrieben Sie:
> > Thought to call it from a program...
> >
> > It works, if newcomment.el is explicitly loaded
> > (again). Which doesn't look clever OTOH.
>
> You need to call comment-normalize-vars first anyway.
>
>
>         Stefan
>
>
> PS: Fell free to lobby for newcomment.el to be preloaded, tho.

Thanks. I'll make up a new thread `sh-script beg-end of
function' with the code employed now.

Andreas Röhler

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

end of thread, other threads:[~2007-11-19 18:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-18 15:34 comment-beginning Andreas Röhler
2007-11-18 15:45 ` comment-beginning Sven Joachim
2007-11-18 16:58   ` comment-beginning Andreas Röhler
2007-11-18 17:39     ` comment-beginning Sven Joachim
2007-11-19  7:53     ` comment-beginning Stefan Monnier
2007-11-19 18:20       ` comment-beginning Andreas Röhler

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.