Coder Social home page Coder Social logo

hughbarney / atto Goto Github PK

View Code? Open in Web Editor NEW
117.0 117.0 25.0 333 KB

Atto Emacs is a minimal functional Emacs in less than 2000 lines of C code. It is derived from Anthony's Editor and uses a buffer-gap to represent the file in memory.

C 97.74% Makefile 2.26%

atto's People

Contributors

aeriavelocity avatar hughbarney avatar magneticrealms avatar polluks avatar ulm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atto's Issues

Filename length is constrained.

The maximum length of a filename is limited to 255, and exceeding that will cause a buffer-overflow:

   helsinki ~/atto $ ./atto $(perl -e 'print "X" x3333')
   Segmentation fault

Suggest we change b_fname in header.h to a char * instead of a fixed buffer. Then rather than testing if strlen(b_fname)>0, in get_buffer_name() we can test for != NULL, etc.

I'm happy to contribute a pull-request, if you wish. It should be easy to use malloc/free and similar. Hardest part will be avoiding the whitespace changes ;)

Text not displaying when entered

Got atto up and running but when I entered text into the scratch buffer nothing would show up.
C-v and other coords did move the cursor but no text would show up when I entered it.
I thought that it might have been my font (dejavu mono) but the font was showing up fine in the modelines.
Then I thought it may have been my terminal colorscheme so I made all of them contrasting, and that too did not change anything.
Any ideas?

2015-12-14-010502_1366x768_scrot

'make install' installs to ~/bin

When running make install, the makefile is set to install atto into ~/bin (a bin folder or file in the home folder, not the root directory), which isn't even included in PATH.

I've made a pull request that changes it to /usr/local/bin/, like many programs you would usually compile from source do.

File descriptor leaks in getfilename()

Atto leaks a file descriptor for every call to getfilename(), and a further file descriptor if tab completion is used. Additionally, an empty file is left behind in /tmp

opening ~/file does not work

Hi,

Inside of atto, I tried to load a ~/file and it says "new file" and is empty.
Though the file exists and is not empty
Thanks

Cannot handle UTF-8 characters

I compiled atto on a RaspberryPi2 (armv7h) with termcap-1.3.1.

When I entered Frække frølår in a buffer, atto displayed Fr kke fr l r but the file had the right contents.

Linking with ncursesw6 instead of curses didn't help.

Any suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.