Comments (11)
What do you mean by "Can not type the code"? Does Emacs raise an error when you try to enter the }
character? Does syntax highlighting stop working?
Please try it from a clean launch of Emacs with emacs -Q
and loading only prelude
and php-mode
. Also, what is your Emacs version?
from php-mode.
Hi @saharabear
It can be difficult to track down bugs caused by a conflict between two packages. Definitely take the good advice from @haxney and run emacs -Q
. After that try loaded only php-mode and see if you have the same problem. If it works fine, close Emacs and run emacs -Q
again, and this time load prelude and php-mode. Then try to repeat the problem again.
If any error happens there may be output in the *Messages*
buffer which could be useful to help pin-point the problem.
from php-mode.
Hi,
I have tried to use emacs -Q, then load the last version of php-mode, then everything works well.
then I tried to load php-mode and prelude-prelude.el, then everything works well.
but then I load all stack of prelude and php-mode, when I try to enter that codes, at last, when I input the last "})", emacs auto delete the first line, if I wrote " })->name(", I can not go on, because I want to write '-name("something")', when I type '("something")', then emacs auto delete this part. '})->'
My Emacs is 24.2.1, I have tested on ubuntu, centos, freebsd.
Nothing useful messages output in the Messages
buffer.
I know this is a strange problem, any tips for me to debug the problem? or I can give some of you a shell to login to my system and find out the problem?
Thanks.
from php-mode.
additional information:
I find the code in prelude,
(setq-default indent-tabs-mode nil) ;; don't use tabs to indent
(setq-default tab-width 8) ;; but maintain correct appearance
I think that means use blank space instead of tab, I tried tab with python-mode, c-mode, all tabs auto convert to blank space, but can not auto convert in php-mode.
This auto convert works with php-mode-20121128, not works with php-mode-current.
sorry for my poor english and lisp skills, if it's not easy to find out the problem, you can give me some tips, then I could have a try to find out.
from php-mode.
Thanks for the information @saharabear
Prelude provides a lot of modules. Which ones are you using? I am going to try to duplicate the problem on my computer by using the same ones you are.
sorry for my poor english and lisp skills
No need to apologize. If users feel like they need Elisp skills to use php-mode then I am doing something wrong, heh. Also feel free to explain things in your native language if that would be easier, although there is nothing wrong with your English either.
from php-mode.
Thanks, Eric(@ejmr), I have sent you an email, hope the information could help you to duplicate the problem.
I use the following command: $curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
to install prelude, then open php file, emacs auto install php-mode for me.
then I meet the issue.
Thanks.
from php-mode.
Thanks for the email @saharabear. I was able to duplicate the problem on your system. That is definitely a bizarre bug. I thought maybe it was a display error, but it is actually deleting characters.
I am going to try to duplicate the problem on my own computer because that will make it easier to debug, and I'll let you know if I have any success. In the mean time unfortunately all I can suggest is to revert back to the last version of php-mode you used which did not cause this bug.
from php-mode.
Thanks very much, now I switch to php-mode 20121128.
from php-mode.
Not sure what we did to fix this problem, but it's fixed at least, so time to close this issue.
from php-mode.
Now on opensuse 12.3, GNU Emacs 24.2.1 (x86_64-suse-linux-gnu, GTK+ Version 3.6.4) of 2013-02-21 on build16.
Not fixed.
from php-mode.
I cannot reproduce this issue.
Please reopen if you still have this issue.
from php-mode.
Related Issues (20)
- (define-key map [tab] 'indent-for-tab-command) is a bug HOT 2
- Text inside Heredoc breaks indentation.
- Syntax highlighting for SQL strings HOT 2
- Please tag release (prerelease or beta is ok) for Emacs 28 compatibility HOT 1
- Error in ternary operator indentation HOT 1
- Unexpected syntax highlights after "new" in string HOT 1
- Automatic, overly-clever brace-matching is annoying and how to turn it off is non-obvious HOT 2
- Function faces HOT 1
- Commented out array elements break indentation HOT 2
- Drop Emacs 25 Support
- WordPress coding style removing spaces around function args HOT 1
- The last argument of the method is not highlighted
- PEAR method chaining wrong indentation HOT 5
- File mode specification error HOT 5
- Indentation issue with closure/anonymous functions
- Lineup Cascaded Calls doesn't work properly
- emacs master results in error HOT 2
- Drop Emacs 26 Support
- Newline Indentation aligning with equal sign HOT 3
- while keyword says 'At top level' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-mode.