From: Javier L. <jl...@ce...> - 2001-06-15 20:52:49
|
RE: Line Wrap problems with ECBThe truncate-lines variable is overridden = by the variable truncate-partial-width-windows if that variable is non-nil and the buffer is not full-frame width. You can customize this variable. Set truncate-partial-width-windows to nil and toggle-truncate-lines will work. Javier -----Original Message----- From: Don Coleman [mailto:don...@em...] Sent: Friday, June 15, 2001 4:27 PM To: 'jl...@ce...'; Don Coleman Cc: 'JDE'; 'ECB-Mailing List' Subject: RE: Line Wrap problems with ECB toggle-truncate-lines has no effect when ecb is activated. It works fi= ne when ecb is not activated. Maybe I have a conflict with some other packa= ge? Emacs 20.6.1 on WindowsNT 4.0 JDE-2.2.6 ECB-1.32 eieio-0.15 semantic-1.3.2 elib-1.0 speedbar-0.13a -----Original Message----- From: Javier Lopez [mailto:jl...@ce...] Sent: Friday, June 15, 2001 12:29 PM To: Don Coleman Cc: 'JDE'; 'ECB-Mailing List' Subject: RE: Line Wrap problems with ECB try M-x toggle-truncate-lines Javier -----Original Message----- From: Don Coleman [mailto:don...@em...] Sent: Friday, June 15, 2001 12:13 PM To: 'Berndl, Klaus'; Don Coleman Cc: 'JDE'; 'ECB-Mailing List' Subject: RE: Line Wrap problems with ECB I'm not sure my approach is correct either. The effect I'm looking for is to be able to switch between line wra= p non line-wrap. In JDE (without ECB) I get the following behavior. I'd l= ike to do this in EBC too. with hscroll-mode on public Container getContainer(String barcode) throws Remote$ with hscroll-mode off public Container getContainer(String barcode) throws Remote\ Exception, ContainerException; In ECB lines always display like public Container getContainer(String barcode) throws Remote$ If hscroll-mode is on I can scroll to the end of the line. If hscroll-mode is off, the buffer behaves as if the line is truncated. This seems to behave the same no matter what I have truncate-lines = set to. What group is truncate-partial-width-windows under? > -----Original Message----- > From: Berndl, Klaus [mailto:kla...@sd...] > Sent: Friday, June 15, 2001 11:26 AM > To: 'Don Coleman' > Cc: 'JDE'; 'ECB-Mailing List' > Subject: RE: Line Wrap problems with ECB > > > I dont know, if your approach is the right one, means if this > should be done by > toggling hscroll-mode. > > IMO toggling line-wrapping should be done by toggling the variabl= es > truncate-lines and truncate-partial-width-windows appropriately. > > But i don=B4t know if this solve your problem?! > > But i will look if ECB affects hscroll-mode in any way! > > Klaus > > -----Original Message----- > From: Don Coleman [mailto:don...@em...] > Sent: Friday, June 15, 2001 5:11 PM > To: jd...@su... > Subject: Line Wrap problems with ECB > > > > I sent this problem to the ECB list and didn't get any > response. Can any of you help? > > I have a function that toggles line wrapping on and off > (technically it enables and disables scrolling). This works > fine in JDE/Emacs until I load ecb. Once ecb is loaded, > calling toggle-line-wrap no longer wraps lines. Does anyone > have ideas on how to fix this? > > (global-set-key "\C-c$" 'toggle-line-wrap) > > (defun toggle-line-wrap() > "toggles line wrap on and off" > (interactive) > (hscroll-mode)) > > > |