Discussion:
[Jed-users-l] wrapping line
bartek
2014-02-09 15:28:20 UTC
Permalink
hello,



I'd like to know how to force the jed editor to wrap the text in the
created file. My file has quite long lines so I'd like wrap them to the
lenght of terminal. Similar to the vim.
Parke
2014-02-09 19:01:27 UTC
Permalink
Post by bartek
I'd like to know how to force the jed editor to wrap the text in the
created file. My file has quite long lines so I'd like wrap them to the
lenght of terminal. Similar to the vim.
What mode is jed in? Text mode? Some other mode?

Have you tried setting WRAP_DEFAULT to the column number you want to wrap at?

-Parke
bartek
2014-02-09 20:56:06 UTC
Permalink
Post by Parke
Post by bartek
I'd like to know how to force the jed editor to wrap the text in the
created file. My file has quite long lines so I'd like wrap them to the
lenght of terminal. Similar to the vim.
What mode is jed in? Text mode? Some other mode?
Have you tried setting WRAP_DEFAULT to the column number you want to wrap at?
-Parke
_______________________________________________
Jed-users-l mailing list
http://mailman.jtan.com/mailman/listinfo/jed-users-l
Probably mode c.


I need to force jed to wrap the text to the lenght of the terminal when
I start jed script.php. Probably jed is linked to mode c but Im not
sure. In jedrc I have set up WRAP-DEFAULT=2000
Syntax is gone when I push esc x and enter text-mode and that's all.
Parke
2014-02-09 21:48:33 UTC
Permalink
Post by bartek
I need to force jed to wrap the text to the lenght of the terminal when
I start jed script.php. Probably jed is linked to mode c but Im not
sure. In jedrc I have set up WRAP-DEFAULT=2000
Syntax is gone when I push esc x and enter text-mode and that's all.
You probably do not want jed to wrap lines when you write source code
in any language. Jed "wraps" lines by inserting newline characters,
which turns a single line into two separate lines.

Jed is not able to display long lines by just wrapping the display. I
believe John said in recent email that he wanted to add the ability to
display a single line across multiple terminal lines, but that ability
does not exist at present.

If, however, you do want to wrap lines of PHP/C source code, you'll
need to set the wrap bit. See below for an example you may be able to
adapt.

-Parke

% Some alternative ways to disable word wrapping
%
% method 1 - set wrap length to INT_MAX
%
% WRAP_DEFAULT = INT_MAX;
%
% method 2 - unset the wrap bit
%
% define global_mode_hook (mode) {
% variable flags, name;
% ( name, flags ) = what_mode ();
% set_mode ( name, flags & ~1 ); % unset wrap bit
% ;;; }
%
% method 3 - install a custom wrapok_hook that returns 0
%
% public define custom_wrapok_hook () { return 0; }
%
% public define global_mode_hook () {
% set_buffer_hook ( "wrapok_hook", & customwrapok_hook );
% ;;; }
bartek
2014-02-11 09:52:55 UTC
Permalink
Post by Parke
Jed is not able to display long lines by just wrapping the display. I
believe John said in recent email that he wanted to add the ability to
display a single line across multiple terminal lines, but that ability
does not exist at present.
It is a pity that jed doesn’t have the possibility to show wrapped, long lines of the code. This feature would be useful to create code in case of very long lines.
In other hand I can say that it is very nice program. I like it. I also hope that this function will be implemented soon in jed.
bartek
2014-02-09 21:04:35 UTC
Permalink
Post by Parke
Post by bartek
I'd like to know how to force the jed editor to wrap the text in the
created file. My file has quite long lines so I'd like wrap them to the
lenght of terminal. Similar to the vim.
What mode is jed in? Text mode? Some other mode?
Have you tried setting WRAP_DEFAULT to the column number you want to wrap at?
-Parke
_______________________________________________
Jed-users-l mailing list
http://mailman.jtan.com/mailman/listinfo/jed-users-l
Similar wrap line 50 in the img
Loading Image...
Loading...