all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Disable automatic Perl indentation
@ 2003-02-05 18:20 Joel Konkle-Parker
  2003-02-06 13:43 ` Kai Großjohann
  0 siblings, 1 reply; 14+ messages in thread
From: Joel Konkle-Parker @ 2003-02-05 18:20 UTC (permalink / raw)


I want to disable the Emacs 19 feature that indents a line in Perl when 
I type the terminating ';' character. How do I do something like this? 
(in .emacs, preferably)

- Joel

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

* Re: Disable automatic Perl indentation
  2003-02-05 18:20 Disable automatic Perl indentation Joel Konkle-Parker
@ 2003-02-06 13:43 ` Kai Großjohann
  2003-02-06 14:25   ` Joel Konkle-Parker
  0 siblings, 1 reply; 14+ messages in thread
From: Kai Großjohann @ 2003-02-06 13:43 UTC (permalink / raw)


Joel Konkle-Parker <j.j.konkle-parker@larc.nasa.gov> writes:

> I want to disable the Emacs 19 feature that indents a line in Perl
> when I type the terminating ';' character. How do I do something like
> this? (in .emacs, preferably)

What does C-h k ; say in such a Perl buffer?
-- 
A turnip curses Elvis

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

* Re: Disable automatic Perl indentation
  2003-02-06 13:43 ` Kai Großjohann
@ 2003-02-06 14:25   ` Joel Konkle-Parker
  2003-02-06 16:13     ` Kai Großjohann
  0 siblings, 1 reply; 14+ messages in thread
From: Joel Konkle-Parker @ 2003-02-06 14:25 UTC (permalink / raw)


> What does C-h k ; say in such a Perl buffer?
> 


-----------

; runs the command electric-perl-terminator:

Insert character and adjust indentation.
If at end-of-line, and not in a comment or a quote, correct the's 
indentation.
-----------

What now?

- Joel

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

* Re: Disable automatic Perl indentation
  2003-02-06 14:25   ` Joel Konkle-Parker
@ 2003-02-06 16:13     ` Kai Großjohann
  2003-02-06 17:17       ` Joel Konkle-Parker
  0 siblings, 1 reply; 14+ messages in thread
From: Kai Großjohann @ 2003-02-06 16:13 UTC (permalink / raw)


Joel Konkle-Parker <j.j.konkle-parker@larc.nasa.gov> writes:

>> What does C-h k ; say in such a Perl buffer?
>
> -----------
>
> ; runs the command electric-perl-terminator:
>
> Insert character and adjust indentation.
> If at end-of-line, and not in a comment or a quote, correct the's
> indentation.
> -----------
>
> What now?

You could do

(require 'perl-mode)
(define-key perl-mode-map (kbd ";") 'self-insert-command)

Does it work?
-- 
A turnip curses Elvis

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

* Re: Disable automatic Perl indentation
  2003-02-06 16:13     ` Kai Großjohann
@ 2003-02-06 17:17       ` Joel Konkle-Parker
  2003-02-06 18:57         ` Kai Großjohann
  0 siblings, 1 reply; 14+ messages in thread
From: Joel Konkle-Parker @ 2003-02-06 17:17 UTC (permalink / raw)


> You could do
> 
> (require 'perl-mode)
> (define-key perl-mode-map (kbd ";") 'self-insert-command)
> 
> Does it work?
> 


"Required feature perl-mode not provided"

- joel

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

* Re: Disable automatic Perl indentation
  2003-02-06 17:17       ` Joel Konkle-Parker
@ 2003-02-06 18:57         ` Kai Großjohann
  2003-02-06 19:08           ` Joel Konkle-Parker
  0 siblings, 1 reply; 14+ messages in thread
From: Kai Großjohann @ 2003-02-06 18:57 UTC (permalink / raw)


Joel Konkle-Parker <j.j.konkle-parker@larc.nasa.gov> writes:

>> You could do
>> (require 'perl-mode)
>> (define-key perl-mode-map (kbd ";") 'self-insert-command)
>> Does it work?
>
> "Required feature perl-mode not provided"

Hm.  This appears fishy.  Which version of Emacs have you got?
As a workaround, it might be useful to say (load "perl-mode") instead
of (require 'perl-mode).
-- 
A turnip curses Elvis

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

* Re: Disable automatic Perl indentation
  2003-02-06 18:57         ` Kai Großjohann
@ 2003-02-06 19:08           ` Joel Konkle-Parker
  2003-02-06 19:10             ` Edward O'Connor
  0 siblings, 1 reply; 14+ messages in thread
From: Joel Konkle-Parker @ 2003-02-06 19:08 UTC (permalink / raw)


> Hm.  This appears fishy.  Which version of Emacs have you got?
> As a workaround, it might be useful to say (load "perl-mode") instead
> of (require 'perl-mode).
> 

I have GNU Emacs 19.34.2

With the (load "perl-mode") statement in there, it gives me: "Symbol's 
function definition is void: kbd"

- Joel

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

* Re: Disable automatic Perl indentation
  2003-02-06 19:08           ` Joel Konkle-Parker
@ 2003-02-06 19:10             ` Edward O'Connor
  2003-02-06 19:26               ` Joel Konkle-Parker
  0 siblings, 1 reply; 14+ messages in thread
From: Edward O'Connor @ 2003-02-06 19:10 UTC (permalink / raw)


> I have GNU Emacs 19.34.2
> 
> With the (load "perl-mode") statement in there, it gives me:
> "Symbol's function definition is void: kbd"

Toss this in your ~/.emacs:

(unless (fboundp 'kbd)
  (defmacro kbd (key-sequence)
    (read-kbd-macro key-sequence)))


Ted

-- 
Edward O'Connor
oconnor@soe.ucsd.edu

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

* Re: Disable automatic Perl indentation
  2003-02-06 19:10             ` Edward O'Connor
@ 2003-02-06 19:26               ` Joel Konkle-Parker
  2003-02-06 20:22                 ` Edward O'Connor
  2003-02-06 20:48                 ` Kai Großjohann
  0 siblings, 2 replies; 14+ messages in thread
From: Joel Konkle-Parker @ 2003-02-06 19:26 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 196 bytes --]


> Toss this in your ~/.emacs:
> 
> (unless (fboundp 'kbd)
>   (defmacro kbd (key-sequence)
>     (read-kbd-macro key-sequence)))
> 
> 
> Ted
> 
> 

"Symbol's function definition is void: unless"

[-- Attachment #2: .emacs --]
[-- Type: text/plain, Size: 379 bytes --]

(setq kill-whole-line t)
(setq next-line-add-newlines nil)
(setq require-final-newline t)
(setq make-backup-files nil)
(setq line-number-mode t)
(setq column-number-mode t)
(setq default-major-mode 'text-mode)

(unless (fboundp 'kbd)
  (defmacro kbd (key-sequence)
    (read-kbd-macro key-sequence)))

(load "perl-mode")
(define-key perl-mode-map (kbd ";") 'self-insert-command)

[-- Attachment #3: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: Disable automatic Perl indentation
  2003-02-06 19:26               ` Joel Konkle-Parker
@ 2003-02-06 20:22                 ` Edward O'Connor
  2003-02-06 20:48                 ` Kai Großjohann
  1 sibling, 0 replies; 14+ messages in thread
From: Edward O'Connor @ 2003-02-06 20:22 UTC (permalink / raw)


>> Toss this in your ~/.emacs:
>> (unless (fboundp 'kbd)
>>   (defmacro kbd (key-sequence)
>>     (read-kbd-macro key-sequence)))
>> Ted
>>
> 
> "Symbol's function definition is void: unless"

Oh, right.

(if (not (fboundp 'kbd))

instead of

(unless (fboundp 'kbd)


Ted

-- 
Edward O'Connor
oconnor@soe.ucsd.edu

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

* Re: Disable automatic Perl indentation
  2003-02-06 19:26               ` Joel Konkle-Parker
  2003-02-06 20:22                 ` Edward O'Connor
@ 2003-02-06 20:48                 ` Kai Großjohann
  2003-02-07 12:34                   ` Joel Konkle-Parker
  1 sibling, 1 reply; 14+ messages in thread
From: Kai Großjohann @ 2003-02-06 20:48 UTC (permalink / raw)


Joel Konkle-Parker <j.j.konkle-parker@larc.nasa.gov> writes:

> [[ various strange problems ]]

Just for the record, I'd like to mention that Emacs 19 is pretty
old.  Most people use Emacs 20 or 21 these days.  So people are wont
to give you advice which is good for 20 or 21 but doesn't work on 19.

So in a way, if you would upgrade, you'd avoid many of those
problems...
-- 
A turnip curses Elvis

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

* Re: Disable automatic Perl indentation
  2003-02-06 20:48                 ` Kai Großjohann
@ 2003-02-07 12:34                   ` Joel Konkle-Parker
  2003-02-07 17:24                     ` Kai Großjohann
  0 siblings, 1 reply; 14+ messages in thread
From: Joel Konkle-Parker @ 2003-02-07 12:34 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

> Just for the record, I'd like to mention that Emacs 19 is pretty
> old.  Most people use Emacs 20 or 21 these days.  So people are wont
> to give you advice which is good for 20 or 21 but doesn't work on 19.
> 
> So in a way, if you would upgrade, you'd avoid many of those
> problems...
> 

Unfortunately, I have no control over that, and our sysadmin obviously 
doesn't consider it a priority. Oh well...

Anyway, the lastest error:

"Symbol's function definition is void: kbd"

- Joel

[-- Attachment #2: .emacs --]
[-- Type: text/plain, Size: 375 bytes --]

(setq kill-whole-line t)
(setq next-line-add-newlines nil)
(setq require-final-newline t)
(setq make-backup-files nil)
(setq line-number-mode t)
(setq column-number-mode t)
(setq default-major-mode 'text-mode)

(if (fboundp 'kbd)
  (defmacro kbd (key-sequence)
    (read-kbd-macro key-sequence)))

(load "perl-mode")
(define-key perl-mode-map (kbd ";") 'self-insert-command)

[-- Attachment #3: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: Disable automatic Perl indentation
  2003-02-07 12:34                   ` Joel Konkle-Parker
@ 2003-02-07 17:24                     ` Kai Großjohann
  2003-02-10 13:26                       ` Joel Konkle-Parker
  0 siblings, 1 reply; 14+ messages in thread
From: Kai Großjohann @ 2003-02-07 17:24 UTC (permalink / raw)


Joel Konkle-Parker <j.j.konkle-parker@larc.nasa.gov> writes:

>> Just for the record, I'd like to mention that Emacs 19 is pretty
>> old.  Most people use Emacs 20 or 21 these days.  So people are wont
>> to give you advice which is good for 20 or 21 but doesn't work on 19.
>> So in a way, if you would upgrade, you'd avoid many of those
>> problems...
>
> Unfortunately, I have no control over that, and our sysadmin obviously
> doesn't consider it a priority. Oh well...

It won't hurt to ask, if you haven't already.  Or compile it for
yourself -- it's quite easy.

> Anyway, the lastest error:
>
> "Symbol's function definition is void: kbd"
>
> (load "perl-mode")
> (define-key perl-mode-map (kbd ";") 'self-insert-command)

Maybe just side-step the problem via

(load "perl-mode")
(define-key perl-mode-map ";" 'self-insert-command)

-- 
A turnip curses Elvis

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

* Re: Disable automatic Perl indentation
  2003-02-07 17:24                     ` Kai Großjohann
@ 2003-02-10 13:26                       ` Joel Konkle-Parker
  0 siblings, 0 replies; 14+ messages in thread
From: Joel Konkle-Parker @ 2003-02-10 13:26 UTC (permalink / raw)


> Maybe just side-step the problem via
> 
> (load "perl-mode")
> (define-key perl-mode-map ";" 'self-insert-command)
> 
> 

That worked; thanks guys

- Joel

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

end of thread, other threads:[~2003-02-10 13:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-05 18:20 Disable automatic Perl indentation Joel Konkle-Parker
2003-02-06 13:43 ` Kai Großjohann
2003-02-06 14:25   ` Joel Konkle-Parker
2003-02-06 16:13     ` Kai Großjohann
2003-02-06 17:17       ` Joel Konkle-Parker
2003-02-06 18:57         ` Kai Großjohann
2003-02-06 19:08           ` Joel Konkle-Parker
2003-02-06 19:10             ` Edward O'Connor
2003-02-06 19:26               ` Joel Konkle-Parker
2003-02-06 20:22                 ` Edward O'Connor
2003-02-06 20:48                 ` Kai Großjohann
2003-02-07 12:34                   ` Joel Konkle-Parker
2003-02-07 17:24                     ` Kai Großjohann
2003-02-10 13:26                       ` Joel Konkle-Parker

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.