Skip to main content
Impvored formatting, added relevant tags and made it clear which mode is affected
Source Link

White space being inserted before a semicolon in asm-mode

When I try to insert a semicolon in my code (in asm-mode) it seems to indent a certain number of tabs like this (usually 4 it seems):

D ; 

And if I put another semicolon on the next line it will indent one tab so it looks like this and add another semicolon even though I only pressed it once:

D ; ;; 

I am sure this is some helpful auto-complete technique, but I am just trying to do commands with a semicolon inside of it like 0;JEQ0;JEQ but since I am an Emacs noob I don't know where to look to deactivate this. I searched with different queries looking for this problem, but I am having trouble finding it which is weird since everything else I looked up was easily answerable either from the Emacs manual or some other site. Can anyone point me to which option I can change so no white space is inserted?

Edit: Here is what option I changed my comment button to:

asm comment char

Is this correct? Basically, I just deleted the comment char which was ";" to what it is now which is "/", but like I say the same problem happens where when I press the semicolon key I get a slash instead and my slash key still gives me a slash.

White space being inserted before a semicolon

When I try to insert a semicolon in my code it seems to indent a certain number of tabs like this (usually 4 it seems):

D ; 

And if I put another semicolon on the next line it will indent one tab so it looks like this and add another semicolon even though I only pressed it once:

D ; ;; 

I am sure this is some helpful auto-complete technique, but I am just trying to do commands with a semicolon inside of it like 0;JEQ but since I am an Emacs noob I don't know where to look to deactivate this. I searched with different queries looking for this problem, but I am having trouble finding it which is weird since everything else I looked up was easily answerable either from the Emacs manual or some other site. Can anyone point me to which option I can change so no white space is inserted?

Edit: Here is what option I changed my comment button to:

asm comment char

Is this correct? Basically, I just deleted the comment char which was ";" to what it is now which is "/", but like I say the same problem happens where when I press the semicolon key I get a slash instead and my slash key still gives me a slash.

White space being inserted before a semicolon in asm-mode

When I try to insert a semicolon in my code (in asm-mode) it seems to indent a certain number of tabs like this (usually 4 it seems):

D ; 

And if I put another semicolon on the next line it will indent one tab so it looks like this and add another semicolon even though I only pressed it once:

D ; ;; 

I am sure this is some helpful auto-complete technique, but I am just trying to do commands with a semicolon inside of it like 0;JEQ but since I am an Emacs noob I don't know where to look to deactivate this. I searched with different queries looking for this problem, but I am having trouble finding it which is weird since everything else I looked up was easily answerable either from the Emacs manual or some other site. Can anyone point me to which option I can change so no white space is inserted?

Edit: Here is what option I changed my comment button to:

asm comment char

Is this correct? Basically, I just deleted the comment char which was ";" to what it is now which is "/", but like I say the same problem happens where when I press the semicolon key I get a slash instead and my slash key still gives me a slash.

added 391 characters in body
Source Link

When I try to insert a semicolon in my code it seems to indent a certain number of tabs like this (usually 4 it seems):

D ; 

And if I put another semicolon on the next line it will indent one tab so it looks like this and add another semicolon even though I only pressed it once:

D ; ;; 

I am sure this is some helpful auto-complete technique, but I am just trying to do commands with a semicolon inside of it like 0;JEQ but since I am an Emacs noob I don't know where to look to deactivate this. I searched with different queries looking for this problem, but I am having trouble finding it which is weird since everything else I looked up was easily answerable either from the Emacs manual or some other site. Can anyone point me to which option I can change so no white space is inserted?

Edit: Here is what option I changed my comment button to:

asm comment char

Is this correct? Basically, I just deleted the comment char which was ";" to what it is now which is "/", but like I say the same problem happens where when I press the semicolon key I get a slash instead and my slash key still gives me a slash.

When I try to insert a semicolon in my code it seems to indent a certain number of tabs like this (usually 4 it seems):

D ; 

And if I put another semicolon on the next line it will indent one tab so it looks like this and add another semicolon even though I only pressed it once:

D ; ;; 

I am sure this is some helpful auto-complete technique, but I am just trying to do commands with a semicolon inside of it like 0;JEQ but since I am an Emacs noob I don't know where to look to deactivate this. I searched with different queries looking for this problem, but I am having trouble finding it which is weird since everything else I looked up was easily answerable either from the Emacs manual or some other site. Can anyone point me to which option I can change so no white space is inserted?

When I try to insert a semicolon in my code it seems to indent a certain number of tabs like this (usually 4 it seems):

D ; 

And if I put another semicolon on the next line it will indent one tab so it looks like this and add another semicolon even though I only pressed it once:

D ; ;; 

I am sure this is some helpful auto-complete technique, but I am just trying to do commands with a semicolon inside of it like 0;JEQ but since I am an Emacs noob I don't know where to look to deactivate this. I searched with different queries looking for this problem, but I am having trouble finding it which is weird since everything else I looked up was easily answerable either from the Emacs manual or some other site. Can anyone point me to which option I can change so no white space is inserted?

Edit: Here is what option I changed my comment button to:

asm comment char

Is this correct? Basically, I just deleted the comment char which was ";" to what it is now which is "/", but like I say the same problem happens where when I press the semicolon key I get a slash instead and my slash key still gives me a slash.

Source Link

White space being inserted before a semicolon

When I try to insert a semicolon in my code it seems to indent a certain number of tabs like this (usually 4 it seems):

D ; 

And if I put another semicolon on the next line it will indent one tab so it looks like this and add another semicolon even though I only pressed it once:

D ; ;; 

I am sure this is some helpful auto-complete technique, but I am just trying to do commands with a semicolon inside of it like 0;JEQ but since I am an Emacs noob I don't know where to look to deactivate this. I searched with different queries looking for this problem, but I am having trouble finding it which is weird since everything else I looked up was easily answerable either from the Emacs manual or some other site. Can anyone point me to which option I can change so no white space is inserted?