[Pkg-jed-commit] [SCM] Debian packaging of JED branch, jo-0.99.19, updated. 1%3A0.99.18+dfsg.1-10-178-gbb38541
Jörg Sommer
joerg at alea.gnuu.de
Mon May 19 16:07:04 UTC 2008
The following commit has been merged in the jo-0.99.19 branch:
commit bb3854176069606893100c4d56f7455bae51545f
Author: Jörg Sommer <joerg at alea.gnuu.de>
Date: Mon May 19 00:34:05 2008 +0200
Move the FAQ from README.Debian to jed_faq.txt
This was already done in 62c6578fa47204d20ca62cfead24f031cdfa861e, but
the merge of the 1:0.99.18 series brought it back to README.Debian and
included some changes. I've integrated these changes in the patch for
jed_faq.txt in the hope we can push it to upstream.
diff --git a/debian/README.Debian b/debian/README.Debian
index b06974a..7404ad9 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -72,109 +72,6 @@ for personal Jed-related files, e.g.
ATTENTION: If "~/.jed/" exists, Jed will not find a "~/.jedrc" startup file.
The user needs to move an eventually existing "~/.jedrc" to "~/.jed/jed.rc".
-
-Some frequently asked questions
--------------------------------
-
-(see also txt/jed_faq.txt)
-
-Q: I define keybindings in jed.rc but they are not working. What is wrong?
-A: Jed will load a fallback keybinding-file if you do not specify an
- emulation in jed.rc overwriting your bindings (see also
- README.Debian-startup).
-
- Either select an emulation in jed.rc (as in the example files),
- or put your keybindings inside a keybindings_hook(), e.g.::
-
- define keybindings_hook(emulation)
- {
- setkey("menu_select_menu(\"Global.&Help\")", Key_F1);
- % ...
- }
-
- If you define all your keybindings without ressorting to an emulation
- mode, set the variable _Jed_Emulation (e.g. _Jed_Emulation = "cool") to
- prevent loading the _Jed_Default_Emulation fallback.
-
-Q: My color settings are not working. What's wrong?
-A: If you're using set_color() calls without loading a pre-defined scheme
- with set_color_scheme(), Jed falls back to the _Jed_Default_Color_Scheme.
- To fix your problem, you can set _Jed_Color_Scheme, like
- _Jed_Color_Scheme = "cool".
-
-Q: When I paste indented text into Jed, it misaligns everything (i.e. every
- succeeding line is indented more than the previous, yielding horizontally
- cascading text).
-A: In Jed, carriage return is bound to `newline_and_indent'. While this
- auto-indention is a great help in normal editing, it stands in the way
- when text is pasted via the mouse. Unfortunately, Jed cannot tell whether
- its input comes from a keyboard, another program, or the mouse (XJed can).
-
-Q: How can I prevent this?
-A: There are several options:
-
- a) Use xjed.
- b) Use the `paste' function
- 1. M-x paste (or bind "paste" to a key)
- 2. Now paste your text...
- c) Install jed-extra and use newline_indent().
- See Help>Describe_Function newline_indent for details.
- d) Bind "newline_and_indent" to a different key.
- In jed.rc do e.g.:
-
- #ifndef XWINDOWS IBMPC_SYSTEM
- % Fix staircase effect with mouse-pasting in an x-terminal
- setkey("newline", "^M");
- setkey("newline_and_indent", "\eM"); % Alt_Return
- % Some modes overwrite the Key_Return binding. Restore it:
- define global_mode_hook (hook)
- {
- if (wherefirst(what_keymap() == ["C", "DCL", "IDL", "perl", "PHP"])
- != NULL)
- local_setkey("newline", "^M");
- }
- #endif
-
-Q: TAB does not generate a TAB! Why?
-A: It does something more useful: indenting the line according to the
- mode's rules. Use `quoted_insert' for a hard TAB. For the full story,
- see /usr/share/doc/jed-common/jed_faq.txt.gz, question #13.
-
-Q: When running Jed in an xterm, alt is not sending meta (and meta is not
- sending escape) so that alt-f and alt-b e.g. don't skip words forwards and
- backwards respectively.
-A: According to Thomas Dickey (do a google search to see that there is NO
- arguing here :) this is normal for xterm. To have alt "work", add
- 'xterm*metaSendsEscape: true' to your .Xresources (or equivalent) and
- make sure 'xmodmap -e "keysym Alt_L = Meta_L Alt_L"' is executed
- somewhere at X-startup (modify e.g. ~/.Xmodmap).
-
-Q: Jed makes a difference between a single '/' and multiple '/'
- in pathnames - e.g. '/usr//bin/' is *not* equal to '/usr/bin/' ! Why?
-A: According to John E. Davis, the author, this is like Emacs behaves, too.
-
-Q: My S-Lang scripts do no longer work.
-Q: After upgrading jed (or xjed), some jed-extra modes are broken.
-A: Since version 0.99.18, jed uses S-Lang 2. See "S-Lang 2 Interpreter NEWS"
- of /usr/share/doc/libslang2/slang.txt for further explanation.
-
-Q: Why is copy/paste not working on the console?
-A: First, be sure that the gpm package is installed and correctly
- configured. Copying and pasting in a JED window on the console should
- then work like in X-Window (with a three button mouse, for instance,
- select with left button and paste with middle button). However, for
- inserting text selected outside the JED window, you should press down
- the Alt key when pasting with the mouse.
-
-Q: How do I cancel a command that prompts me with "y/n" choices, without a
- "cancel" otpion?
-A: In Jed, (almost all) actions can be aborted by pressing a configurable
- "abort character" or calling the function kbd_quit(). The most used
- default abort character is `Ctrl-G'. Some emulations use a different
- default:
- CUA: `Ctrl-D' (and optional ESC, see cua_escape_cmd())
- Wordstar: `Ctrl-6'
-
.. Copyright © 2006 the Debian JED Group
Released under the terms of the GNU General Public License (ver. 2 or later)
diff --git a/debian/patches/extend-jed_faq.dpatch b/debian/patches/extend-jed_faq.dpatch
index ddfdb95..58cc1cc 100755
--- a/debian/patches/extend-jed_faq.dpatch
+++ b/debian/patches/extend-jed_faq.dpatch
@@ -4,10 +4,10 @@
## DP: A few more questions and answers about Jed.
@DPATCH@
-diff -urNad 0.99.19~/doc/txt/jed_faq.txt 0.99.19/doc/txt/jed_faq.txt
---- 0.99.19~/doc/txt/jed_faq.txt 2006-02-13 18:51:58.000000000 +0100
-+++ 0.99.19/doc/txt/jed_faq.txt 2007-06-19 18:26:56.894136829 +0200
-@@ -20,6 +20,14 @@
+diff --git a/doc/txt/jed_faq.txt b/doc/txt/jed_faq.txt
+--- a/doc/txt/jed_faq.txt
++++ b/doc/txt/jed_faq.txt
+@@ -20,6 +20,17 @@ Frequently asked questions:
12. How can I use edt.sl with jed386.exe?
13. The TAB key is broken--- it does not insert TABs!
14. How do I set custom tab stops in jed?
@@ -19,15 +19,18 @@ diff -urNad 0.99.19~/doc/txt/jed_faq.txt 0.99.19/doc/txt/jed_faq.txt
+18. Why is jed linked against libncurses when it uses slang?
+19. When running Jed in an xterm, alt is not sending meta. So, how to make
+ alt-f skips word forwards?
++20. How do I cancel a command that prompts me with "y/n" choices, without a
++ "cancel" otpion?
++21. I define keybindings in jed.rc but they are not working. What is wrong?
----------------------------------------------------------------------------
Answers:
-@@ -362,7 +370,53 @@
+@@ -362,7 +373,99 @@ Answers:
etc...
-<14>
-+<15> When I paste text into Jed, it misaligns everything (i.e. every
++<15> When I paste indented text into Jed, it misaligns everything (i.e. every
+ succeeding line is indented more than the previous, yielding horizontally
+ cascading text). How can I prevent this?
+
@@ -42,10 +45,28 @@ diff -urNad 0.99.19~/doc/txt/jed_faq.txt 0.99.19/doc/txt/jed_faq.txt
+ 2: Use the `paste' function
+ 1. M-x paste (or bind "paste" to a key)
+ 2. Now paste your text...
-+ 3: Temporarily change the keybinding by doing:
++ 3: Install txtutils [1] from jedmodes and use newline_indent().
++ See Help>Describe_Function newline_indent for details.
++ [1] http://jedmodes.sourceforge.net/mode/txtutils/
++ 4: Temporarily change the keybinding by doing:
+ 1. M-X local_setkey("newline","^M") (Alt-Shift-X: the S-Lang prompt)
+ 3. Now paste your text...
+ 4. M-X local setkey("newline_and_indent","^M")
++ 5: Bind "newline_and_indent" to a different key.
++ In jed.rc do e.g.:
++
++ #ifndef XWINDOWS IBMPC_SYSTEM
++ % Fix staircase effect with mouse-pasting in an x-terminal
++ setkey("newline", "^M");
++ setkey("newline_and_indent", "\eM"); % Alt_Return
++ % Some modes overwrite the Key_Return binding. Restore it:
++ define global_mode_hook (hook)
++ {
++ if (wherefirst(what_keymap() == ["C", "DCL", "IDL", "perl", "PHP"])
++ != NULL)
++ local_setkey("newline", "^M");
++ }
++ #endif
+
+<16> Why is copy/paste not working on the console?
+
@@ -74,11 +95,34 @@ diff -urNad 0.99.19~/doc/txt/jed_faq.txt 0.99.19/doc/txt/jed_faq.txt
+ 'xterm*metaSendsEscape: true' to your .Xresources (or equivalent) and
+ make sure 'xmodmap -e "keysym Alt_L = Meta_L Alt_L"' is executed
+ somewhere at X-startup (modify e.g. ~/.Xmodmap).
++
++<20> How do I cancel a command that prompts me with "y/n" choices, without a
++ "cancel" otpion?
++
++ In Jed, (almost all) actions can be aborted by pressing a configurable
++ "abort character" or calling the function kbd_quit(). The most used
++ default abort character is `Ctrl-G'. Some emulations use a different
++ default:
++ CUA: `Ctrl-D' (and optional ESC, see cua_escape_cmd())
++ Wordstar: `Ctrl-6'
++
++<21> I define keybindings in jed.rc but they are not working. What is wrong?
++
++ Jed will load a fallback keybinding-file if you do not specify an
++ emulation in jed.rc overwriting your bindings.
++
++ Either select an emulation in jed.rc (as in the example files),
++ or put your keybindings inside a keybindings_hook(), e.g.::
++
++ define keybindings_hook(emulation)
++ {
++ setkey("menu_select_menu(\"Global.&Help\")", Key_F1);
++ % ...
++ }
++
++ If you define all your keybindings without ressorting to an emulation
++ mode, set the variable _Jed_Emulation (e.g. _Jed_Emulation = "cool") to
++ prevent loading the _Jed_Default_Emulation fallback.
-------------------------------------------------------------------------------
This is a useful function used to maintain numbers in this faq.
-@@ -390,4 +444,3 @@
- ++n;
- }
- }
--
--
Debian packaging of JED
More information about the Pkg-jed-commit
mailing list