Skip to content
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

File-Out functionality for the different browsers #18

Open
zecke opened this issue Dec 25, 2012 · 5 comments
Open

File-Out functionality for the different browsers #18

zecke opened this issue Dec 25, 2012 · 5 comments

Comments

@zecke
Copy link

zecke commented Dec 25, 2012

It would be very nice if the various browsers (Class, Namespace, Category, Selectors) would allow to file-out to a file.

@dmatveev
Copy link
Owner

Hello Holger,

Fileouts are actually implemented for GNU Smalltalk (in the recent git), but not documented yet. You can press C-c C-f in a list to fileout a particular namespare or a class.

Dmitry

@zecke
Copy link
Author

zecke commented Dec 27, 2012

Dear Dmitry,

this might be a genuine GST bug but the fileout does not include the proper namespaces and doesn't work. On top of that the indention for selectors appears to be wrong.

sorry for filing so many bug reports but I find Shampoo quite promising for GST.

@zecke
Copy link
Author

zecke commented Apr 29, 2013

The indention is wrong. Class pragmas are lost. as well (e.g. in GSM48RejectCause)

@dmatveev
Copy link
Owner

dmatveev commented Jun 2, 2013

Reproduced. The original source is on the left pane, and the exported one is on the right. Class pragmas were lost. Is there any way to query it from a particular class at all?

2013-06-02-135301_1680x1050_scrot

Regarding indentation, the current implementation assumes that your methods are not one-liners (i.e. at least the method name, its category pragma and the source code has its own lines). The pretty printer will be improved in the future, of course, but it would be hard to make it cover all 100% formatting cases and coding styles. :)

@zecke
Copy link
Author

zecke commented Jun 3, 2013

I will ask on the GNU Smalltalk mailinglist. But I think I should override OBJ class >> classPragmas and list my class pragmas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants