* Cut and open commands?
@ 2008-02-23 13:06 saneman
2008-02-23 13:28 ` saneman
` (2 more replies)
0 siblings, 3 replies; 17+ messages in thread
From: saneman @ 2008-02-23 13:06 UTC (permalink / raw)
To: help-gnu-emacs
I would like to redefine cut and open to: C-x and C-o regardless of the
built in definitions. But I cannot redefine cut:
(global-set-key "\C-x" 'kill)
when I select some text and press C-x I just get:
symbols function definition is void:kill
And what are the function called that opens a new file?
Currently I have to press C-space to start a mark in the text that I can
use to select some text. Is it possible to just redefine to shift
instead of C-space?
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-23 13:06 Cut and open commands? saneman
@ 2008-02-23 13:28 ` saneman
2008-02-23 17:22 ` Tassilo Horn
[not found] ` <mailman.7830.1203787374.18990.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 17+ messages in thread
From: saneman @ 2008-02-23 13:28 UTC (permalink / raw)
To: help-gnu-emacs
saneman wrote:
> I would like to redefine cut and open to: C-x and C-o regardless of the
> built in definitions. But I cannot redefine cut:
>
> (global-set-key "\C-x" 'kill)
>
> when I select some text and press C-x I just get:
>
> symbols function definition is void:kill
>
> And what are the function called that opens a new file?
>
>
> Currently I have to press C-space to start a mark in the text that I can
> use to select some text. Is it possible to just redefine to shift
> instead of C-space?
Problems solved. Now I only need to find a way to use the shift modifier
for set-mark-command:
(global-set-key "\S" 'set-mark-command)
S does not not work. Have tried Shift but that does not work either. Is
shift not part of the keymap in emacs?
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-23 13:06 Cut and open commands? saneman
2008-02-23 13:28 ` saneman
@ 2008-02-23 17:22 ` Tassilo Horn
[not found] ` <mailman.7830.1203787374.18990.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 17+ messages in thread
From: Tassilo Horn @ 2008-02-23 17:22 UTC (permalink / raw)
To: help-gnu-emacs
saneman <asdfsdf@asd.com> writes:
> I would like to redefine cut and open to: C-x and C-o regardless of
> the built in definitions.
Don't cripple your emacs yourself, use cua-mode.
,----[ C-h f cua-mode RET ]
| cua-mode is an interactive autoloaded Lisp function in `cua-base'.
|
| It is bound to <menu-bar> <options> <cua-mode>, <menu-bar> <options>
| <cua-emulation-mode>.
|
| (cua-mode &optional ARG)
|
| Toggle CUA key-binding mode.
| When enabled, using shifted movement keys will activate the
| region (and highlight the region using `transient-mark-mode'),
| and typed text replaces the active selection.
|
| Also when enabled, you can use C-z, C-x, C-c, and C-v to undo,
| cut, copy, and paste in addition to the normal Emacs bindings.
| The C-x and C-c keys only do cut and copy when the region is
| active, so in most cases, they do not conflict with the normal
| function of these prefix keys.
|
| If you really need to perform a command which starts with one of
| the prefix keys even when the region is active, you have three
| options:
| - press the prefix key twice very quickly (within 0.2 seconds),
| - press the prefix key and the following key within 0.2 seconds, or
| - use the SHIFT key with the prefix key, i.e. C-S-x or C-S-c.
|
| You can customize `cua-enable-cua-keys' to completely disable the
| CUA bindings, or `cua-prefix-override-inhibit-delay' to change
| the prefix fallback behavior.
|
| CUA mode manages Transient Mark mode internally. Trying to disable
| Transient Mark mode while CUA mode is enabled does not work; if you
| only want to highlight the region when it is selected using a
| shifted movement key, set `cua-highlight-region-shift-only'.
`----
Bye,
Tassilo
--
People sometimes ask me if it is a sin in the Church of Emacs to use
vi. Using a free version of vi is not a sin; it is a penance. So happy
hacking. (Richard M. Stallman)
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
[not found] ` <mailman.7830.1203787374.18990.help-gnu-emacs@gnu.org>
@ 2008-02-25 10:02 ` saneman
2008-02-25 17:07 ` Joel J. Adamson
2008-02-25 18:15 ` Sven Joachim
0 siblings, 2 replies; 17+ messages in thread
From: saneman @ 2008-02-25 10:02 UTC (permalink / raw)
To: help-gnu-emacs
Tassilo Horn wrote:
> saneman <asdfsdf@asd.com> writes:
>
>> I would like to redefine cut and open to: C-x and C-o regardless of
>> the built in definitions.
>
> Don't cripple your emacs yourself, use cua-mode.
>
> ,----[ C-h f cua-mode RET ]
> | cua-mode is an interactive autoloaded Lisp function in `cua-base'.
> |
> | It is bound to <menu-bar> <options> <cua-mode>, <menu-bar> <options>
> | <cua-emulation-mode>.
> |
> | (cua-mode &optional ARG)
> |
> | Toggle CUA key-binding mode.
> | When enabled, using shifted movement keys will activate the
> | region (and highlight the region using `transient-mark-mode'),
> | and typed text replaces the active selection.
> |
> | Also when enabled, you can use C-z, C-x, C-c, and C-v to undo,
> | cut, copy, and paste in addition to the normal Emacs bindings.
> | The C-x and C-c keys only do cut and copy when the region is
> | active, so in most cases, they do not conflict with the normal
> | function of these prefix keys.
> |
> | If you really need to perform a command which starts with one of
> | the prefix keys even when the region is active, you have three
> | options:
> | - press the prefix key twice very quickly (within 0.2 seconds),
> | - press the prefix key and the following key within 0.2 seconds, or
> | - use the SHIFT key with the prefix key, i.e. C-S-x or C-S-c.
> |
> | You can customize `cua-enable-cua-keys' to completely disable the
> | CUA bindings, or `cua-prefix-override-inhibit-delay' to change
> | the prefix fallback behavior.
> |
> | CUA mode manages Transient Mark mode internally. Trying to disable
> | Transient Mark mode while CUA mode is enabled does not work; if you
> | only want to highlight the region when it is selected using a
> | shifted movement key, set `cua-highlight-region-shift-only'.
> `----
>
> Bye,
> Tassilo
When I type:
C-h f cua-mode
followed by enter I get:
[No match]
I have installed: emacs-goodies-el where I can see that cua is listed,
but I still get the error.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-25 10:02 ` saneman
@ 2008-02-25 17:07 ` Joel J. Adamson
2008-02-25 19:38 ` saneman
2008-02-25 18:15 ` Sven Joachim
1 sibling, 1 reply; 17+ messages in thread
From: Joel J. Adamson @ 2008-02-25 17:07 UTC (permalink / raw)
To: help-gnu-emacs
saneman <asdfsdf@asd.com> writes:
[...]
>
> I have installed: emacs-goodies-el where I can see that cua is listed,
> but I still get the error.
You have to load it; make sure the .el file is in your load-path (M-x
describe-variable RET load-path) and then use (require 'emacs-goodies).
I'm guessing you're using a Debian system, so it probably installed into
your load-path and all you need is the require statement in your .emacs.
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-25 10:02 ` saneman
2008-02-25 17:07 ` Joel J. Adamson
@ 2008-02-25 18:15 ` Sven Joachim
1 sibling, 0 replies; 17+ messages in thread
From: Sven Joachim @ 2008-02-25 18:15 UTC (permalink / raw)
To: help-gnu-emacs
On 2008-02-25 11:02 +0100, saneman wrote:
> When I type:
>
> C-h f cua-mode
>
> followed by enter I get:
>
> [No match]
>
> I have installed: emacs-goodies-el where I can see that cua is listed,
> but I still get the error.
You need to use CUA-mode for the cua version in emacs-goodies-el. Or
upgrade to Emacs 22, where the cua package is included and you can type
cua-mode in lowercase letters.
Sven
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-25 17:07 ` Joel J. Adamson
@ 2008-02-25 19:38 ` saneman
2008-02-25 20:45 ` Joel J. Adamson
2008-02-25 22:46 ` Peter Dyballa
0 siblings, 2 replies; 17+ messages in thread
From: saneman @ 2008-02-25 19:38 UTC (permalink / raw)
To: help-gnu-emacs
Joel J. Adamson wrote:
> saneman <asdfsdf@asd.com> writes:
>
>
> [...]
>
>> I have installed: emacs-goodies-el where I can see that cua is listed,
>> but I still get the error.
>
> You have to load it; make sure the .el file is in your load-path (M-x
> describe-variable RET load-path) and then use (require 'emacs-goodies).
> I'm guessing you're using a Debian system, so it probably installed into
> your load-path and all you need is the require statement in your .emacs.
>
> Joel
>
I have added this to my .emacs file:
(setq load-path (cons "~/work/mylisp" load-path))
(setq load-path (cons "/usr/share/emacs21/site-lisp/emacs-goodies-el"
load-path))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Load .el files
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'emacs-goodies)
But I get the error:
File error: "Cannot open load file", "emacs-goodies"
So even though I have added the directory:
/usr/share/emacs21/site-lisp/emacs-goodies-el
To the load-path, its not found.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-25 19:38 ` saneman
@ 2008-02-25 20:45 ` Joel J. Adamson
2008-02-25 22:27 ` saneman
2008-02-25 22:46 ` Peter Dyballa
1 sibling, 1 reply; 17+ messages in thread
From: Joel J. Adamson @ 2008-02-25 20:45 UTC (permalink / raw)
To: help-gnu-emacs
saneman <asdfsdf@asd.com> writes:
> Joel J. Adamson wrote:
>> saneman <asdfsdf@asd.com> writes:
>>
>>
>> [...]
>>
>>> I have installed: emacs-goodies-el where I can see that cua is listed,
>>> but I still get the error.
>>
>> You have to load it; make sure the .el file is in your load-path (M-x
>> describe-variable RET load-path) and then use (require 'emacs-goodies).
>> I'm guessing you're using a Debian system, so it probably installed into
>> your load-path and all you need is the require statement in your .emacs.
>>
>> Joel
>>
>
> I have added this to my .emacs file:
>
>
> (setq load-path (cons "~/work/mylisp" load-path))
> (setq load-path (cons "/usr/share/emacs21/site-lisp/emacs-goodies-el"
> load-path))
Sorry I forgot to mention: use add-to-list as in
(add-to-list 'load-path
(expand-file-name "~/lisp/el/"))
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-25 20:45 ` Joel J. Adamson
@ 2008-02-25 22:27 ` saneman
2008-02-26 7:51 ` Thierry Volpiatto
[not found] ` <mailman.7948.1204011578.18990.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 17+ messages in thread
From: saneman @ 2008-02-25 22:27 UTC (permalink / raw)
To: help-gnu-emacs
Joel J. Adamson wrote:
> saneman <asdfsdf@asd.com> writes:
>
>> Joel J. Adamson wrote:
>>> saneman <asdfsdf@asd.com> writes:
>>>
>>>
>>> [...]
>>>
>>>> I have installed: emacs-goodies-el where I can see that cua is listed,
>>>> but I still get the error.
>>> You have to load it; make sure the .el file is in your load-path (M-x
>>> describe-variable RET load-path) and then use (require 'emacs-goodies).
>>> I'm guessing you're using a Debian system, so it probably installed into
>>> your load-path and all you need is the require statement in your .emacs.
>>>
>>> Joel
>>>
>> I have added this to my .emacs file:
>>
>>
>> (setq load-path (cons "~/work/mylisp" load-path))
>> (setq load-path (cons "/usr/share/emacs21/site-lisp/emacs-goodies-el"
>> load-path))
>
> Sorry I forgot to mention: use add-to-list as in
>
> (add-to-list 'load-path
> (expand-file-name "~/lisp/el/"))
>
> Joel
>
I still get the same error. This is how my .emacs file looks:
;;; Emacs Load Path
(setq load-path (cons "~/work/mylisp" load-path))
(add-to-list 'load-path
(expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Load .el files
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'emacs-goodies)
I have tried to comment out:
(add-to-list 'load-path
(expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el"))
and then print the content of my load-path with:
M-x describe-variable RET load-path
and the result is:
load-path's value is
("~/work/mylisp" "/usr/share/emacs21/site-lisp/emacs-goodies-el"
"/usr/share/emacs21/site-lisp/dictionaries-common" "/etc/emacs21"
"/etc/emacs" "/usr/local/share/emacs/21.4/site-lisp"
"/usr/local/share/emacs/site-lisp" "/usr/share/emacs/21.4/site-lisp"
"/usr/share/emacs/21.4/site-lisp/dictionaries-common"
"/usr/share/emacs/21.4/site-lisp/emacs-goodies-el"
"/usr/share/emacs/site-lisp" "/usr/share/emacs/21.4/leim"
"/usr/share/emacs/21.4/lisp" "/usr/share/emacs/21.4/lisp/toolbar"
"/usr/share/emacs/21.4/lisp/textmodes"
"/usr/share/emacs/21.4/lisp/progmodes" "/usr/share/emacs/21.4/lisp/play"
"/usr/share/emacs/21.4/lisp/obsolete" "/usr/share/emacs/21.4/lisp/net"
"/usr/share/emacs/21.4/lisp/mail" "/usr/share/emacs/21.4/lisp/language"
"/usr/share/emacs/21.4/lisp/international"
"/usr/share/emacs/21.4/lisp/gnus" "/usr/share/emacs/21.4/lisp/eshell"
"/usr/share/emacs/21.4/lisp/emulation"
"/usr/share/emacs/21.4/lisp/emacs-lisp"
"/usr/share/emacs/21.4/lisp/calendar")
As can be seen the /usr/share/emacs21/site-lisp/emacs-goodies-el path is
already in my load-path without adding it in my .emacs file. So the
error must have something to do with the:
(require 'emacs-goodies)
command...
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-25 19:38 ` saneman
2008-02-25 20:45 ` Joel J. Adamson
@ 2008-02-25 22:46 ` Peter Dyballa
1 sibling, 0 replies; 17+ messages in thread
From: Peter Dyballa @ 2008-02-25 22:46 UTC (permalink / raw)
To: saneman; +Cc: help-gnu-emacs
Am 25.02.2008 um 20:38 schrieb saneman:
> (require 'emacs-goodies)
>
>
>
>
> But I get the error:
>
> File error: "Cannot open load file", "emacs-goodies"
You can only require what has been provided before.
Not every ELisp files provides itself. Check your emacs-goodies'
provision! Load will always work.
--
Greetings
Pete
Clovis' Consideration of an Atmospheric Anomaly:
The perversity of nature is nowhere better demonstrated
than by the fact that, when exposed to the same atmosphere,
bread becomes hard while crackers become soft.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-25 22:27 ` saneman
@ 2008-02-26 7:51 ` Thierry Volpiatto
[not found] ` <mailman.7948.1204011578.18990.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 17+ messages in thread
From: Thierry Volpiatto @ 2008-02-26 7:51 UTC (permalink / raw)
To: saneman; +Cc: help-gnu-emacs
saneman <asdfsdf@asd.com> writes:
> Joel J. Adamson wrote:
>> saneman <asdfsdf@asd.com> writes:
>>
>>> Joel J. Adamson wrote:
>>>> saneman <asdfsdf@asd.com> writes:
>>>>
>>>>
>>>> [...]
>>>>
>>>>> I have installed: emacs-goodies-el where I can see that cua is listed,
>>>>> but I still get the error.
>>>> You have to load it; make sure the .el file is in your load-path (M-x
>>>> describe-variable RET load-path) and then use (require 'emacs-goodies).
>>>> I'm guessing you're using a Debian system, so it probably installed into
>>>> your load-path and all you need is the require statement in your .emacs.
>>>>
>>>> Joel
>>>>
>>> I have added this to my .emacs file:
>>>
>>>
>>> (setq load-path (cons "~/work/mylisp" load-path))
>>> (setq load-path (cons "/usr/share/emacs21/site-lisp/emacs-goodies-el"
>>> load-path))
>>
>> Sorry I forgot to mention: use add-to-list as in
>>
>> (add-to-list 'load-path
>> (expand-file-name "~/lisp/el/"))
>>
>> Joel
>>
>
> I still get the same error. This is how my .emacs file looks:
>
>
> ;;; Emacs Load Path
> (setq load-path (cons "~/work/mylisp" load-path))
>
> (add-to-list 'load-path
> (expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el"))
>
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;; Load .el files
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> (require 'emacs-goodies)
>
>
>
>
> I have tried to comment out:
>
> (add-to-list 'load-path
> (expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el"))
>
> and then print the content of my load-path with:
>
> M-x describe-variable RET load-path
>
> and the result is:
>
> load-path's value is
> ("~/work/mylisp" "/usr/share/emacs21/site-lisp/emacs-goodies-el"
> "/usr/share/emacs21/site-lisp/dictionaries-common" "/etc/emacs21"
> "/etc/emacs" "/usr/local/share/emacs/21.4/site-lisp"
> "/usr/local/share/emacs/site-lisp" "/usr/share/emacs/21.4/site-lisp"
> "/usr/share/emacs/21.4/site-lisp/dictionaries-common"
> "/usr/share/emacs/21.4/site-lisp/emacs-goodies-el"
> "/usr/share/emacs/site-lisp" "/usr/share/emacs/21.4/leim"
> "/usr/share/emacs/21.4/lisp" "/usr/share/emacs/21.4/lisp/toolbar"
> "/usr/share/emacs/21.4/lisp/textmodes"
> "/usr/share/emacs/21.4/lisp/progmodes"
> "/usr/share/emacs/21.4/lisp/play"
> "/usr/share/emacs/21.4/lisp/obsolete" "/usr/share/emacs/21.4/lisp/net"
> "/usr/share/emacs/21.4/lisp/mail"
> "/usr/share/emacs/21.4/lisp/language"
> "/usr/share/emacs/21.4/lisp/international"
> "/usr/share/emacs/21.4/lisp/gnus" "/usr/share/emacs/21.4/lisp/eshell"
> "/usr/share/emacs/21.4/lisp/emulation"
> "/usr/share/emacs/21.4/lisp/emacs-lisp"
> "/usr/share/emacs/21.4/lisp/calendar")
>
> As can be seen the /usr/share/emacs21/site-lisp/emacs-goodies-el path
> is already in my load-path without adding it in my .emacs file. So the
> error must have something to do with the:
>
> (require 'emacs-goodies)
>
> command...
>
This code:
(add-to-list 'load-path
(expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el"))
is wrong
And this one as Peter told you is wrong also:
(require 'emacs-goodies)
You have to add to load-path a directory and not a file
You have to require a name of file without the extension (what is in
provide at the end of this file) and not a directory.
--
A + Thierry
Pub key: http://pgp.mit.edu
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
[not found] ` <mailman.7948.1204011578.18990.help-gnu-emacs@gnu.org>
@ 2008-02-26 9:12 ` saneman
2008-02-26 9:17 ` saneman
0 siblings, 1 reply; 17+ messages in thread
From: saneman @ 2008-02-26 9:12 UTC (permalink / raw)
To: help-gnu-emacs
Thierry Volpiatto wrote:
> saneman <asdfsdf@asd.com> writes:
>
>> Joel J. Adamson wrote:
>>> saneman <asdfsdf@asd.com> writes:
>>>
>>>> Joel J. Adamson wrote:
>>>>> saneman <asdfsdf@asd.com> writes:
>>>>>
>>>>>
>>>>> [...]
>>>>>
>>>>>> I have installed: emacs-goodies-el where I can see that cua is listed,
>>>>>> but I still get the error.
>>>>> You have to load it; make sure the .el file is in your load-path (M-x
>>>>> describe-variable RET load-path) and then use (require 'emacs-goodies).
>>>>> I'm guessing you're using a Debian system, so it probably installed into
>>>>> your load-path and all you need is the require statement in your .emacs.
>>>>>
>>>>> Joel
>>>>>
>>>> I have added this to my .emacs file:
>>>>
>>>>
>>>> (setq load-path (cons "~/work/mylisp" load-path))
>>>> (setq load-path (cons "/usr/share/emacs21/site-lisp/emacs-goodies-el"
>>>> load-path))
>>> Sorry I forgot to mention: use add-to-list as in
>>>
>>> (add-to-list 'load-path
>>> (expand-file-name "~/lisp/el/"))
>>>
>>> Joel
>>>
>> I still get the same error. This is how my .emacs file looks:
>>
>>
>> ;;; Emacs Load Path
>> (setq load-path (cons "~/work/mylisp" load-path))
>>
>> (add-to-list 'load-path
>> (expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el"))
>>
>>
>> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>> ;; Load .el files
>> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>>
>> (require 'emacs-goodies)
>>
>>
>>
>>
>> I have tried to comment out:
>>
>> (add-to-list 'load-path
>> (expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el"))
>>
>> and then print the content of my load-path with:
>>
>> M-x describe-variable RET load-path
>>
>> and the result is:
>>
>> load-path's value is
>> ("~/work/mylisp" "/usr/share/emacs21/site-lisp/emacs-goodies-el"
>> "/usr/share/emacs21/site-lisp/dictionaries-common" "/etc/emacs21"
>> "/etc/emacs" "/usr/local/share/emacs/21.4/site-lisp"
>> "/usr/local/share/emacs/site-lisp" "/usr/share/emacs/21.4/site-lisp"
>> "/usr/share/emacs/21.4/site-lisp/dictionaries-common"
>> "/usr/share/emacs/21.4/site-lisp/emacs-goodies-el"
>> "/usr/share/emacs/site-lisp" "/usr/share/emacs/21.4/leim"
>> "/usr/share/emacs/21.4/lisp" "/usr/share/emacs/21.4/lisp/toolbar"
>> "/usr/share/emacs/21.4/lisp/textmodes"
>> "/usr/share/emacs/21.4/lisp/progmodes"
>> "/usr/share/emacs/21.4/lisp/play"
>> "/usr/share/emacs/21.4/lisp/obsolete" "/usr/share/emacs/21.4/lisp/net"
>> "/usr/share/emacs/21.4/lisp/mail"
>> "/usr/share/emacs/21.4/lisp/language"
>> "/usr/share/emacs/21.4/lisp/international"
>> "/usr/share/emacs/21.4/lisp/gnus" "/usr/share/emacs/21.4/lisp/eshell"
>> "/usr/share/emacs/21.4/lisp/emulation"
>> "/usr/share/emacs/21.4/lisp/emacs-lisp"
>> "/usr/share/emacs/21.4/lisp/calendar")
>>
>> As can be seen the /usr/share/emacs21/site-lisp/emacs-goodies-el path
>> is already in my load-path without adding it in my .emacs file. So the
>> error must have something to do with the:
>>
>> (require 'emacs-goodies)
>>
>> command...
>>
> This code:
>
> (add-to-list 'load-path
> (expand-file-name "/usr/share/emacs21/site-lisp/emacs-goodies-el"))
> is wrong
>
> And this one as Peter told you is wrong also:
>
> (require 'emacs-goodies)
>
> You have to add to load-path a directory and not a file
/usr/share/emacs21/site-lisp/emacs-goodies-el
is a directory containing the file (symlink):
emacs-goodies-el.el
> You have to require a name of file without the extension (what is in
> provide at the end of this file) and not a directory.
this made it work:
(require 'emacs-goodies-el)
instead of:
(require 'emacs-goodies)
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-26 9:12 ` saneman
@ 2008-02-26 9:17 ` saneman
2008-02-26 16:45 ` Joel J. Adamson
0 siblings, 1 reply; 17+ messages in thread
From: saneman @ 2008-02-26 9:17 UTC (permalink / raw)
To: help-gnu-emacs
>> This code:
>>
>> (add-to-list 'load-path
>> (expand-file-name
>> "/usr/share/emacs21/site-lisp/emacs-goodies-el"))
>> is wrong
>>
>> And this one as Peter told you is wrong also:
>>
>> (require 'emacs-goodies)
>>
>> You have to add to load-path a directory and not a file
>
>
> /usr/share/emacs21/site-lisp/emacs-goodies-el
>
> is a directory containing the file (symlink):
>
> emacs-goodies-el.el
>
>> You have to require a name of file without the extension (what is in
>> provide at the end of this file) and not a directory.
>
> this made it work:
> (require 'emacs-goodies-el)
>
> instead of:
> (require 'emacs-goodies)
...but I still get [No match] when I type:
C-h f cua-mode
followed by return
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-26 9:17 ` saneman
@ 2008-02-26 16:45 ` Joel J. Adamson
2008-02-27 9:04 ` saneman
0 siblings, 1 reply; 17+ messages in thread
From: Joel J. Adamson @ 2008-02-26 16:45 UTC (permalink / raw)
To: help-gnu-emacs
saneman <asdfsdf@asd.com> writes:
>> this made it work:
>> (require 'emacs-goodies-el)
>>
>> instead of:
>> (require 'emacs-goodies)
>
>
>
> ...but I still get [No match] when I type:
>
> C-h f cua-mode
>
> followed by return
Can you load cua-mode with "M-x cua-mode"?
Is this package ("emacs-goodies-el") comaptible with your version of
Emacs? Emacs 22 has been out for a long time now.
Is this your system? Perhaps you should upgrade to Emacs 22 --- it's
quite an improvement. I'm already using Emacs 23 ;)
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-26 16:45 ` Joel J. Adamson
@ 2008-02-27 9:04 ` saneman
2008-02-27 14:53 ` Joel J. Adamson
2008-02-28 4:58 ` Kevin Rodgers
0 siblings, 2 replies; 17+ messages in thread
From: saneman @ 2008-02-27 9:04 UTC (permalink / raw)
To: help-gnu-emacs
Joel J. Adamson wrote:
> saneman <asdfsdf@asd.com> writes:
>
>
>>> this made it work:
>>> (require 'emacs-goodies-el)
>>>
>>> instead of:
>>> (require 'emacs-goodies)
>>
>>
>> ...but I still get [No match] when I type:
>>
>> C-h f cua-mode
>>
>> followed by return
>
> Can you load cua-mode with "M-x cua-mode"?
>
> Is this package ("emacs-goodies-el") comaptible with your version of
> Emacs? Emacs 22 has been out for a long time now.
>
> Is this your system? Perhaps you should upgrade to Emacs 22 --- it's
> quite an improvement. I'm already using Emacs 23 ;)
>
> Joel
Ok I have installed:
emacs
emacs21
emacs22
cua-mode works when I run emacs22.
As default emacs 21.4a is used. I thought it was the latest stable
release and that and emacs22 was unstable.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-27 9:04 ` saneman
@ 2008-02-27 14:53 ` Joel J. Adamson
2008-02-28 4:58 ` Kevin Rodgers
1 sibling, 0 replies; 17+ messages in thread
From: Joel J. Adamson @ 2008-02-27 14:53 UTC (permalink / raw)
To: help-gnu-emacs
saneman <asdfsdf@asd.com> writes:
> Joel J. Adamson wrote:
>> saneman <asdfsdf@asd.com> writes:
[...]
>
> Ok I have installed:
>
> emacs
> emacs21
> emacs22
>
> cua-mode works when I run emacs22.
>
> As default emacs 21.4a is used. I thought it was the latest stable
> release and that and emacs22 was unstable.
Even Emacs from CVS is pretty darn stable. I've been using it for
months without problems. It's crashed once in a while (maybe once a
month), but I have never lost data.
Joel
--
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA 02114
(617) 643-1432
(303) 880-3109
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Cut and open commands?
2008-02-27 9:04 ` saneman
2008-02-27 14:53 ` Joel J. Adamson
@ 2008-02-28 4:58 ` Kevin Rodgers
1 sibling, 0 replies; 17+ messages in thread
From: Kevin Rodgers @ 2008-02-28 4:58 UTC (permalink / raw)
To: help-gnu-emacs
saneman wrote:
> As default emacs 21.4a is used. I thought it was the latest stable
> release and that and emacs22 was unstable.
Just curious: Why led you to think that Emacs 22 is unstable?
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2008-02-28 4:58 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-23 13:06 Cut and open commands? saneman
2008-02-23 13:28 ` saneman
2008-02-23 17:22 ` Tassilo Horn
[not found] ` <mailman.7830.1203787374.18990.help-gnu-emacs@gnu.org>
2008-02-25 10:02 ` saneman
2008-02-25 17:07 ` Joel J. Adamson
2008-02-25 19:38 ` saneman
2008-02-25 20:45 ` Joel J. Adamson
2008-02-25 22:27 ` saneman
2008-02-26 7:51 ` Thierry Volpiatto
[not found] ` <mailman.7948.1204011578.18990.help-gnu-emacs@gnu.org>
2008-02-26 9:12 ` saneman
2008-02-26 9:17 ` saneman
2008-02-26 16:45 ` Joel J. Adamson
2008-02-27 9:04 ` saneman
2008-02-27 14:53 ` Joel J. Adamson
2008-02-28 4:58 ` Kevin Rodgers
2008-02-25 22:46 ` Peter Dyballa
2008-02-25 18:15 ` Sven Joachim
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.