-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tedit: line positioning, find and substitute "didn't", and break while saving #2055
Comments
The Find from the expanded menu was a bug. The substitute from the expanded menu may be a confusion about the way it (currently) works: Currently, the substitution takes place only within the current selection. It doesn't run from the current caret forward. (It may be more convenient if it went forward if the confirmflg is on, but the documentation says that it substitutes within the selection.) I haven't yet been able to replicate the problems with selection misalignment or the break in Put. If you can get the break to happen again, could you show a BT! and also show the arguments to the image object? |
I realized that the selection was missing for the Substitute, and have since verified that it worked, although it left the display incorrect (some lines duplicated, and scattered underlining throughout). I tried just opening the file in Tedit and then immediately doing the Put, without any changes, and that worked. The BREAK on Put appears to be related to the Expanded menu. I closed that Tedit and opened it again. I selected everything, did the Substitute from the title bar menu, then repeated the Put and it did not BREAK. (I never opened the Expanded Menu in this test.) |
PR #2058 addresses the substitute and find issues. I still have not been able to replicated the break-on-put. @MattHeffron , can you first test the find and substitute behaviors. Then tell me more precisely what you are inputting to get the put failure. Exactly how did you modify the file before putting? |
Here's the detailed steps of the Put problem (with the same loadups as before): in a fresh Full sysyout (including my INIT-loaded files) in the Interlisp Exec: ^ from the break |
Regarding Find and Substitute:
|
I see it now, thanks. |
For the Put problem, it only happened when the expanded menu is open, and it is trying to fill in the Put and Get fields of that menu with the name of the file that it is trying to Put to. I don't think it matters whether you had actually done anything to the file--it was just doing the Put with the open menu. Tha code for that didn't get updated when I was working through the new menu conventions with Frank. |
In terms of substitution looks, if you choose Use New Looks it will use the looks of the replacement string. But then, how do you get change those looks? If you select the replacement string from the document, then it will carry along those looks. But it ought to be the case that you can use the charlooks menu to change the looks in the replacement field, and that needs some work. If you don't choose the new looks, then I think it uses the default character looks at each substitution rather than the looks of the target string. Which seems wrong. I probably won't be able to do anything more on this until I'm able to get a new loadup in my working directory. |
) Selection highlighting should be correct if line contains a preceding diacritic. Find from expanded menu should work. Screen and selection should not be garbled after substitute. I have not yet replicated the break-on-put also reported in #2055
Is it appropriate to close this issue since the Break on Put problem is not yet resolved? |
In the newer TEDIT-KEY branch I don't see that particular behavior. Before it was crucial that the extended menu with the Put field was open, because it was trying to update that field when you Put from the other menu. That was breaking. There is still some odd stuff in the coordination between the menu field and what you type in the prompt window when you use the Put in the main menu. But I don't see a break. Just to lock it down, can you do a loadup in the new Tedit key branch and see if you get the break (independent of other oddities)? One odd thing is that if you put a file in the Put field and Put from there, the Put happens, the prompt is updated with the new filename, but the Put menu item didn't is empty. But redisplaying puts in the file name (without the version number). Also, it doesn't use the field in the extended menu as the prompt when you click Put in the main menu, so they are out of step at least during that interaction. If the current file is TEDIT-TEST.TEDIT (shown in the title bar) and you change the extended menu-field to FOO-TEST.TEDIT, a Put from the menu field will go to FOO-TEST, but a Put from the main menu will still go to TEDIT-TEST. Should it use the prompt from the menu, replace the field in the menu with the promptwindow prompt? What if the menu had a value but then was closed? |
@rmkaplan In the rmk76 branch the Put BREAK issue is resolved. |
Describe the bug
Arrow key positioning seems to be off by one sometimes.
Find and Substitute commands didn't search the file.
Also, trying to save a file gave a BREAK.
To Reproduce
Steps to reproduce the behavior:
loadups
directory and built theloadups
locallylispusers>000-docs>LispUsers-Template.TEdit
tolispusers>READ-BDF.TEDIT
READ-BDF.TEDIT
file, and opened the attached "Expanded Menu">>MODULE NAME<<
)READ-BDF
but it was inserted between the 2<
characters.>>MODULE NAME<<
in the Find field. Clicking on Find did nothing.Note the underline starts 1 character right of correct, and the cursor position is not at the end of the found text, but is one position to the right of the end of the line.
>>DATE<<
, and the highlighting was incorrect to the left!^ from the BREAK resulted in no file written, but the Tedit Window still showed version 2.
Context (please complete the following information):
The text was updated successfully, but these errors were encountered: