-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Bonjour,
I have a problem with Emacs and as I ask the question on usenet emacs lists and as other people using other linux distro do not have this problem, I ask my question here:
1- Clipboard: it seems that there is a specific clipboard for Emacs under Fedora/Gnome; I am unable to copy something from any other application and paste it in emacs. It is always the last thing copied/cut *in* emacs which is pasted in emacs whatever you could have selected and copied in other windows (say: terminal, acroread...)
2- The dead key circumflex/trema of my french keyboard is not working in Emacs: the sequence ^a doesn't give â but a (same with ^e,^i,...).
Thanks for any suggestion. - -- François Patte UFR de mathématiques et informatique Université René Descartes http://www.math-info.univ-paris5.fr/~patte
François Patte wrote:
I have a problem with Emacs and as I ask the question on usenet emacs lists and as other people using other linux distro do not have this problem, I ask my question here:
1- Clipboard: it seems that there is a specific clipboard for Emacs under Fedora/Gnome; I am unable to copy something from any other application and paste it in emacs. It is always the last thing copied/cut *in* emacs which is pasted in emacs whatever you could have selected and copied in other windows (say: terminal, acroread...)
Can't answer this one. I use KDE, and there we have klipper. :-)
2- The dead key circumflex/trema of my french keyboard is not working in Emacs: the sequence ^a doesn't give â but a (same with ^e,^i,...).
Is this behaviour general to all applications? Or does it only ocurre with emacs?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Martin Marques a écrit : | François Patte wrote: |
|> 2- The dead key circumflex/trema of my french keyboard is not working in |> Emacs: the sequence ^a doesn't give â but a (same with ^e,^i,...). | | | Is this behaviour general to all applications? Or does it only ocurre | with emacs?
Only in emacs: in terminals, oowriter, .... thunderbird: â î ô ê û
no problem!
- -- François Patte UFR de mathématiques et informatique Université René Descartes http://www.math-info.univ-paris5.fr/~patte
On Wed, Mar 21, 2007 at 11:00:25AM +0530, François Patte wrote:
Bonjour,
I have a problem with Emacs and as I ask the question on usenet emacs lists and as other people using other linux distro do not have this problem, I ask my question here:
1- Clipboard: it seems that there is a specific clipboard for Emacs under Fedora/Gnome; I am unable to copy something from any other application and paste it in emacs. It is always the last thing copied/cut *in* emacs which is pasted in emacs whatever you could have selected and copied in other windows (say: terminal, acroread...)
Emacs has its own clipboard, a ring buffer. The top item in emacs' ring buffer is supposed to also be the clipboard entry for X. For example, I just went to a gnome terminal, highlighted some text, and returned to emacs. With C-Y, I had the text in emacs.
I've occasionally had problems moving text between Acroread or OpenOffice.org and Emacs, but they do weird things with their clipboard code. My workaround is to shut both applications down and restart them. To make life easier, look into desktop mode for emacs (desktop.el).
2- The dead key circumflex/trema of my french keyboard is not working in Emacs: the sequence ^a doesn't give � but a (same with ^e,^i,...).
Emacs has its own text entry methods. You may want to look into leim, the Library of Emacs Input Methods. "yum install emacs-leim".
On Wed, 2007-03-21 at 09:52 -0600, Charles Curley wrote:
On Wed, Mar 21, 2007 at 11:00:25AM +0530, François Patte wrote:
Bonjour,
I have a problem with Emacs and as I ask the question on usenet emacs lists and as other people using other linux distro do not have this problem, I ask my question here:
1- Clipboard: it seems that there is a specific clipboard for Emacs under Fedora/Gnome; I am unable to copy something from any other application and paste it in emacs. It is always the last thing copied/cut *in* emacs which is pasted in emacs whatever you could have selected and copied in other windows (say: terminal, acroread...)
Emacs has its own clipboard, a ring buffer. The top item in emacs' ring buffer is supposed to also be the clipboard entry for X. For example, I just went to a gnome terminal, highlighted some text, and returned to emacs. With C-Y, I had the text in emacs.
I've occasionally had problems moving text between Acroread or OpenOffice.org and Emacs, but they do weird things with their clipboard code. My workaround is to shut both applications down and restart them. To make life easier, look into desktop mode for emacs (desktop.el).
Something that has worked for me in the past is to paste into gedit and save - and them open the gedit text file in an emacs.
On 3/20/07, François Patte francois.patte@math-info.univ-paris5.fr wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Bonjour,
I have a problem with Emacs and as I ask the question on usenet emacs lists and as other people using other linux distro do not have this problem, I ask my question here:
1- Clipboard: it seems that there is a specific clipboard for Emacs under Fedora/Gnome; I am unable to copy something from any other application and paste it in emacs. It is always the last thing copied/cut *in* emacs which is pasted in emacs whatever you could have selected and copied in other windows (say: terminal, acroread...)
2- The dead key circumflex/trema of my french keyboard is not working in Emacs: the sequence ^a doesn't give â but a (same with ^e,^i,...).
Thanks for any suggestion.
François Patte UFR de mathématiques et informatique Université René Descartes http://www.math-info.univ-paris5.fr/~patte
Have you tried xemacs?
Bonjour,
I have a problem with Emacs and as I ask the question on usenet emacs lists and as other people using other linux distro do not have this problem, I ask my question here:
1- Clipboard: it seems that there is a specific clipboard for Emacs under Fedora/Gnome; I am unable to copy something from any other application and paste it in emacs. It is always the last thing copied/cut *in* emacs which is pasted in emacs whatever you could have selected and copied in other windows (say: terminal, acroread...)
This is a configuration item. I use emacs and have no problems cutting in emacs and pasting in other apps, even XP apps when using a terminal emulator from my XP laptop.
I can be no help on the other question.
<snip>
dlg
Le Wed, 21 Mar 2007 11:00:25 +0530, François Patte francois.patte@math-info.univ-paris5.fr a écrit :
I fear I do not have any solutions, but only comments that "everything works".
1- Clipboard: it seems that there is a specific clipboard for Emacs under Fedora/Gnome; I am unable to copy something from any other application and paste it in emacs. It is always the last thing copied/cut *in* emacs which is pasted in emacs whatever you could have selected and copied in other windows (say: terminal, acroread...)
I use FC6 and I see no problem in copy-paste from/to emacs. I select text using the mouse in a terminal then I paste it in emacs' scratch pad using the middle mouse button. Same with open office, sylpheed, etc.. With the pdf viewer there's a special function to select text. Once this function is used, then I can paste the copied text im emacs using Ctrl-Ins.
I must say that I compile my own emacs that I've picked up sometime ago (about 2 years) at the cvs on Savannah. It reports to be of the 22.0.51.1 variety. I compile it using no special switches, just a simple configure, make bootstrap, make install.
2- The dead key circumflex/trema of my french keyboard is not working in Emacs: the sequence ^a doesn't give â but a (same with ^e,^i,...).
I do not use a French kybd, but a German one. Nevertheless, the French accentuated letters are all available in emacs, as well as when doing copy-paste from other apps. In fact, I reguarly write text in emacs and copy-paste it in Windows' Outlook running in vmware.
Cordialement.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
lanas a écrit : | Le Wed, 21 Mar 2007 11:00:25 +0530, | François Patte francois.patte@math-info.univ-paris5.fr a écrit : | | I fear I do not have any solutions, but only comments that "everything | works". | | |>1- Clipboard: it seems that there is a specific clipboard for Emacs |>under Fedora/Gnome; I am unable to copy something from any other |>application and paste it in emacs. It is always the last thing |>copied/cut *in* emacs which is pasted in emacs whatever you could have |>selected and copied in other windows (say: terminal, acroread...) | | | I use FC6 and I see no problem in copy-paste from/to emacs. I select | text using the mouse in a terminal then I paste it in emacs' scratch | pad using the middle mouse button. Same with open office, sylpheed, | etc.. With the pdf viewer there's a special function to select text. | Once this function is used, then I can paste the copied text im emacs | using Ctrl-Ins.
Yes, I can do the same: select a text in... whatever and copy it to the clipboard, then copy it in Emacs window, using the middle mouse button or Ctrl-y *but* I can do it *only* untill I cut a text in Emacs window (mouse or keyboard), after that, in no way I can copy and paste a text from another window: it is always the last selected text in Emacs which can copied.... That's very strange, it is as if there were two clipboards, one I can use *out* of Emacs, and one in Emacs, but I cannot go from an application to Emacs....
- -- François Patte UFR de mathématiques et informatique Université René Descartes http://www.math-info.univ-paris5.fr/~patte
On Wed, 21 Mar 2007, François Patte wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Martin Marques a écrit : | François Patte wrote: |
|> 2- The dead key circumflex/trema of my french keyboard is not working in |> Emacs: the sequence ^a doesn't give â but a (same with ^e,^i,...). | | | Is this behaviour general to all applications? Or does it only ocurre | with emacs?
Only in emacs: in terminals, oowriter, .... thunderbird: â î ô ê û
See if this helps:
http://www.iecn.u-nancy.fr/~ammann/tex/TeX-live3/doc/html/auctex/auc-tex_8.h...
-- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 --------------------------------------------------------- Lic. Martín Marqués | SELECT 'mmarques' || Centro de Telemática | '@' || 'unl.edu.ar'; Universidad Nacional | DBA, Programador, del Litoral | Administrador ---------------------------------------------------------
François Patte francois.patte@math-info.univ-paris5.fr writes:
1- Clipboard: it seems that there is a specific clipboard for Emacs under Fedora/Gnome; I am unable to copy something from any other application and paste it in emacs. It is always the last thing copied/cut *in* emacs which is pasted in emacs
I get that *sometimes* too, but only when text in emacs is actively selected, but I use transient-mark-mode. If you use transient-mark-mode then try clicking in the emacs window to un-select whatever was selected, then you can select from another window.
François Patte wrote:
... 1- Clipboard: it seems that there is a specific clipboard for Emacs under Fedora/Gnome; I am unable to copy something from any other application and paste it in emacs. It is always the last thing copied/cut *in* emacs which is pasted in emacs whatever you could have selected and copied in other windows (say: terminal, acroread...) ...
I am by no means an expert here, but I will try to explain what I know.
Right off the top, people see different behavior with emacs because (a) the default behavior is unusual and awkward for new users, and (therefore, b) emacs is often customized. I'm not sure what configuration Fedora ships with anymore, I've fiddled with mine so much.
The first problem is that emacs is an old-style X application, and X clipboard usage has evolved since emacs design was adopted. The status quo for X on Linux now is that there are actually TWO clipboards, as you experienced. One supports the old X usage, one supports the newer, Windows-style "CUA" clipboard. Most newer GUI apps also support both, but the interface hides the old-style, whereas in emacs, the old-style clipboard is the "normal" emacs UI.
The old-style clipboard works like this: as soon as you select text with the mouse in any X application, the text is available for pasting using the middle mouse button. No keys to press at all, but it only holds one item and if you select something else, the previous clipboard contents are replaced. This selection/clipboard is named PRIMARY. It works perfectly well for using the mouse to copy and paste text within emacs as well.
Emacs also has it's own "clipboard" independent of X, which is called the "kill-ring" it holds a bunch (configurable; mine is 60) of items. Many editing operations in emacs automatically copy text to the kill-ring; the top item can be retrieved with Ctrl-Y ("yank").
All the recent emacs installs that I've seen configure emacs to make the top item in the kill-ring _equivalent to the X selection PRIMARY_. Thus, whatever you can yank in emacs, you can also paste into any X app using the middle mouse button, and whatever you select in another X application, emacs will put that on the kill-ring.
The new-style X clipboard is the one that all newer apps connect to Ctrl+C/X/V. This is named CLIPBOARD, and it also holds only one item, but it is filled only when you issue a copy or cut request. The two buffers, PRIMARY and CLIPBOARD, are completely independent and you can have two different things "in the clipboard" at the same time: one (PRIMARY) pasted by the middle mouse button, and one pasted by Ctrl+V (CLIPBOARD).
Emacs can also use CLIPBOARD, but by default (AFAIK) there is no interactive interface, i.e. Ctrl+C/X/V do not do have anything to do with the clipboard in emacs. The emacs functions for accessing CLIPBOARD are:
clipboard-yank ;; paste CLIPBOARD, like Ctrl+V clipboard-kill-ring-save ;; copy the top kill-ring item to CLIPBOARD clipboard-kill-region ;; kill text in region and copy to CLIPBOARD
These functions can be run (like any emacs function) by M-x function-name; they may or may not be bound to some key (e.g. a function key) or mouse button, depending on your configuration. If you run them by name, emacs will tell you what altenate key bindings exist--watch the minibuffer at the bottom.
There is a package called "cua.el" that provides more "normal" key bindings for these, but I prefer to stick to the emacs standard bindings. There is another configurable setting that automatically copies items to CLIPBOARD as well as PRIMARY, but again, I prefer to just keep them separate.
There you go, FMTYEWTK.
If you're just a glutton for punishment, you can read more about the X clipboard here: http://standards.freedesktop.org/clipboards-spec/clipboards-0.1.txt
and about emacs and the clipboard here: http://www.jwz.org/doc/x-cut-and-paste.html
<Joe